Hello goodnight. I am writing to you because I want to learn to do macros in VBScript mainly to be able to do AutoToolZero.
I've been reading and researching programming using Cypress Basic (CB). What I've been reading about is that it has Dros functions, Button Commands and Leds functions. I was also reading the manual of Macro Programmers Reference Manual 2010 but I do not understand it very well.
Noce how to use this type of commands to program, I would greatly appreciate if someone could explain how it works, or put an example explained, a manual or book explaining all this.
This is an example that comes in the manual Mach3 Version 3.x Macro Programmers Reference Manual :
‘ Define the axes C
Const XaxisMultiFunctionOEMDRONum = 800
Const YaxisMultiFunctionOEMDRONum = 801
Const ZaxisMultiFunctionOEMDRONum = 802
‘ Write 1.2345 to Z axis DRO using SetOEMDRO
SetOEMDRO(ZaxisMultiFunctionDRONum, 1.2345)
‘ Show the user the Z Axis DRO value, using
GetOEMDRO()
MsgBox “After using SetOEMDRO() the Z Axis DRO reads: “ & GetOEMDRO(ZaxisMultiFunctionDRONum)
I have no idea that it is stating with the constants and that it is equal to 800,801 and 802. I hope that someone can help me to understand how these commands work.
I attach the manual that I am using to learn