What's new
What's new

A20 Citizen Swiss Subprogram

jaredjc87

Plastic
Joined
Apr 19, 2024
Location
80005
Hello, I am a student using a Citizen A20 Swiss Machine and I am making a pen body that uses a lot of subprograms to make the file size smaller, I am running into an issue where the subprogram wont call up and we have no information on how to call up a and set up a subprogram. Any help and advice is appreciated.
N1
(OPERATION NO - 2)
(OPERATION TYPE - CAXIS CONTOUR)
T0600 ( 1/8 FLAT ENDMILL)
M52
M5
M18 C0.
G17
G0. C155.886
M80 S3=4584
Z1.6695
X1.1562 Y0.
X.8562
G98 G1 X.5827 F3.
M98 P1002

O1002 (PEN BODY SUB)
Theres just coordinates here
M99
 
The M98 near the end of your main program should bring you to the subprogram indicated in the following “P” word…in this case, program O1002. (M98P1234 would bring you to program O1234, etc). Then at the end of program O1002 the “M99” spits you back to the block following the “M98P…” block that directed you the sub program. Good luck!
 
As a side note, on the FANUC controller on the A20s, I believe the sub program must reside in the main memory of the controller and cannot be called from a memory card inserted in the controller.
 








 
Back
Top