example of call statements simplifying, starting with this thread : http://www.cnczone.com/forums/okuma/...ock-codes.html
original :
Code:
from outside, is all quiet; this are the lines from a program that goes automatically, in a loop:
... CALL OPNL LV01=0 LV02=0 LV03=1 ( W @ safe before begining )
... CALL OPNL LV01=1 LV02=0 LV03=1 ( W comes after the 3rd operation )
... CALL OPNL LV01=0 LV02=1 LV03=1 ( W @ safe after almost cutting the part; turret does not go X_max )
when the program is finished, i send the tailstock to W_max, because i put the bar inside from the chuck, not from the back of the cnc
... CALL OPNL LV01=0 LV02=0 LV03=3 ( W @ safe position from line 3 )
simplified
Code:
from outside, is all quiet; this are the lines from a program that goes automatically, in a loop:
... CALL OPNL LV01 = 001 ( W @ safe before begining )
... CALL OPNL LV01 = 101 ( W comes after the 3rd operation )
... CALL OPNL LV01 = 011 ( W @ safe after almost cutting the part; turret does not go X_max )
when the program is finished, i send the tailstock to W_max, because i put the bar inside from the chuck, not from the back of the cnc
... CALL OPNL LV01 = 003 ( W @ safe position from line 3 )