I need to Activate / deactivate output ports in a macro, but cannot find how the port number is coded.
The direct approach (i.e. port #1 pin #5) or using an Output Number (i.e. Output #6)
I need to Activate / deactivate output ports in a macro, but cannot find how the port number is coded.
The direct approach (i.e. port #1 pin #5) or using an Output Number (i.e. Output #6)
DoOemButton (233) 'Output 4 ON
DoOemButton (234) 'Output 4 OFF
DoOemButton (235) 'Output 5 ON
DoOemButton (236) 'Output 5 OFF
DoOemButton (237) 'Output 6 ON
DoOemButton (238) 'Output 6 OFF
Macros deal with inputs and outputs, they are not aware of ports and pins.
There's also ActivateSignal() and DeActivateSignal().
https://www.machsupport.com/wp-conte...o_Prog_Ref.pdf
Gerry
UCCNC 2017 Screenset
http://www.thecncwoodworker.com/2017.html
Mach3 2010 Screenset
http://www.thecncwoodworker.com/2010.html
JointCAM - CNC Dovetails & Box Joints
http://www.g-forcecnc.com/jointcam.html
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Thank you for your quick response, I will try that. It has been holding me up a while.
Soon after posting this thread, I found that Activate() / Deactivate() work with pre-defined constants such as Output1 to address the port via Output #1.
The Mach3 customization Wiki used to have a lot of useful info, but unfortunately, it all disappeared a few weeks ago when they updated their forum. Artsoft apparently doesn't care about fixing it.
Gerry
UCCNC 2017 Screenset
http://www.thecncwoodworker.com/2017.html
Mach3 2010 Screenset
http://www.thecncwoodworker.com/2010.html
JointCAM - CNC Dovetails & Box Joints
http://www.g-forcecnc.com/jointcam.html
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Thanks again. I had that document, but all it said under Activatesignal() was refer CB constants, but no listing of them.
It is lucky they used OUTPUT2 in the example displayed, which was all I needed.
So now I can access all the outputs in this way I can now finalize my project (3 axis Mach3 lathe).