Can someone give me an example of the syntax for an "IF" statment ?
Heres what we would like to do. As of now they use two different programs for the same part, program one is for pallet 1 and program two is for pallet 2.
Would be nice to use one program and set a variable at the beginning to control what workshifts to use (yes, consistent fixtures would be nice ) .
Example.
P01 = pallet one
P21 = pallet two
N001 PL = 1
N002 IF PL = 1 THEN G54.1 P01 ELSE G54.1 P21
Then we would just edit line N001 when needed.
Is this possable, never did anything like this with a CNC program before, but seen some stuff which is close in a few threads around here.
Using a FANUC 16i control.
_