IF/SELECT

From Industrial Robotics & Automation - Fanuc Teach Pendant Programming
Revision as of 17:03, 7 April 2019 by Mike138 (talk | contribs) (Created page with "IF statements are the primary conditional instructions. They evaluate whether a condition is true, and execute a Jump or Call if it is. If it is not true, the instruction wil...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

IF statements are the primary conditional instructions. They evaluate whether a condition is true, and execute a Jump or Call if it is.

If it is not true, the instruction will occur as if the line were blank.

IF Variable = Variable Action Destination
IF R[1] = 1 Call Program1
IF DI[3] = ON JMP LBL2