5621
General Mach Discussion / Re: Auto Tool-Changer and LPT2
« on: February 06, 2012, 03:24:02 AM »
Hi Keith,
When you configure Mach Ports and Pins / Outputs you can set the Port# to 1 or 2 which then defines if it is your first or second parallel port.
The standard commands M3/M4 - M5 and M7/M8 - M9 would be probably be the easiest to use for switching your relays (that is what they were designed for) then your post- processor just has to insert these commands into your generated GCode at the appropriate place. (have another read through the Mach manual for details etc.). If you prefer to use the CB commands (Activate/Deactivate Signal) then you really need to study the CB manual to establish how CB and GCode can be combined effectively. It would take me forever to explain this properly but 99% of the details you need are in the manual.
Hope this helps.
Tweakie.
When you configure Mach Ports and Pins / Outputs you can set the Port# to 1 or 2 which then defines if it is your first or second parallel port.
The standard commands M3/M4 - M5 and M7/M8 - M9 would be probably be the easiest to use for switching your relays (that is what they were designed for) then your post- processor just has to insert these commands into your generated GCode at the appropriate place. (have another read through the Mach manual for details etc.). If you prefer to use the CB commands (Activate/Deactivate Signal) then you really need to study the CB manual to establish how CB and GCode can be combined effectively. It would take me forever to explain this properly but 99% of the details you need are in the manual.
Hope this helps.
Tweakie.