Yaskawa YASNAC PC NC Programming Manual User Manual
Page 295
 
4 - 158
YASNAC PCNC Programming Manual
Chapter 4: Enhanced Level Commands
(1) Branch Instruction
By specifying “IF [< conditional expression>] GOTO <sequence number;”, the program 
jumps to the block of the specified sequence number in the same program if <conditional 
expression> is satisfied.
If <conditional expression:, is not satisfied, the program advances to the next block.
<sequence number> should be placed at the beginning of a block. Even if it is not placed at 
the beginning of a block, the commands in the block are executed from the beginning. When 
branch occurs, branch in the reverse direction takes a longer time than branch in the forward 
direction.
<sequence number: 5-digit positive integer, variable, [<expression>]
Figure 4.4.5.1
Branch Instruction (Conditional Expression Satisfied, Not Satisfied)
It is possible to omit “IF [<conditional expression>]. In this case, the block indicates a simple 
jump instruction. 
FIGURE 4.4.5.1 Branch Instruction (Simple Jump Instruction)