[quote='steve.milici' pid='946' dateline='1292448869']
[quote='LaserSteve' pid='927' dateline='1291924709']
Hi, I am new to Delta Tau and the Pmac system.
Our machine is a laser cutting machine. The bed is driven by a Geo Brick and Pmac nc software. I need to open and close a laser shutter. A relay has been wired into pin 12 of the geo brick J7 plug. By addressing the pin I can open the shutter by supplying 24v with the command m33 value 1 using Pwin32 config software.
How do I transfer this to cnc code in the PHMI front end. I need to assign an m code somehow but am a bit lost at the moment.
[/quote]
Also - don't forget to download the edited Mill.m file to the PMAC.
[/quote]
Thanks for all your help guys.
I eventually got things working with the following code
In Mill.M
I added:
#define SHUTTER M1102
M1102->Y:$78802,0,8
then
N21000
DWE0
SHUTTER== 1
DWE0
RET
N22000
DWE0
SHUTTER== 0
DWE0
RET
This code is almost Identical to to Ronn22's except for the M1102 not M3001
It seems I/0 inputs and output variables reside at M1100 to M11032
with address range Y:$78802 to Y:$78832. The only reason I chose M1102 was for ease of assigning if I need to use any other I/O's
thanks for your help.