G and M code help

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
wwenter
Posts: 22
Joined: Thu Feb 15, 2018 12:19 am
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

G and M code help

Post by wwenter »

Hello
I am using g and m code to cycle my tig welder high frequency start on and off and rotate the part 390 degrees. The high freq start is N/O and is connected to output 2. To begin the welding process I need to cycle output 2 on and off to start welding. This is my code
g20
g80
g90
g98
1) m94/62
2) g4 p1.4
3)m95/62
4)g1 w360 f650m 94/62
5)m95/62 w390 f650
6)g4 p6
7)g0 w540 f650
end program
Is there a way to take lines 4 and 5 and combined them to cycle output 2 on and off at 360 degrees with out stopping the motion to 390 degrees. The purpose of cycling output 2 at 360 is to initiate the ramp down amperage for 3 sec witch the tig welder does on its own.
Thanks


cncsnw
Community Expert
Posts: 4536
Joined: Wed Mar 24, 2010 5:48 pm

Re: G and M code help

Post by cncsnw »

Is there a way to take lines 4 and 5 and combined them to cycle output 2 on and off at 360 degrees with out stopping the motion to 390 degrees.
Yes, but not without some custom PLC programming.

See M300 in the operator's manual, and SV_FSIO in the PLC programming manual.


wwenter
Posts: 22
Joined: Thu Feb 15, 2018 12:19 am
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: G and M code help

Post by wwenter »

Thanks


Post Reply