8 APPLICATION INSTRUCTION
8.2 Program Branch Instruction
383
8
• When the pointer number in operands is same and there is one label, the following operation is caused:
• When a label number (including labels for CALL instructions described later) is used two or more times, an error is caused.
• No label can be shared by CALL instruction and CJ instruction.
• Because SM400/SM8000 is normally ON while a PLC is operating, unconditional jump is applied when SM400 is used as
shown in the following example:
Operation error
(1) When X20 turns ON, the program execution jumps from CJ
instruction corresponding to X20 to the label P9.
(2) When X20 turns OFF and X21 turns ON, the program execution
jumps from CJ instruction corresponding to X21 to the label P9.
A: User program
A: User program
(1): Subroutine program dedicated to CALL instruction
(2): Program a label (P) after FEND instruction.
A*: User program (It is skipped, and is not executed.)
A: User program
Error code
(SD0/SD8067)
Description
3380H
A pointer number which is not used as a label in the same program file is specified.
P9
CJ
P9
CJ
X20
X21
(2)
(1)
P9
P9
CJ
P9
CJ
X20
X30
END
A
A
P9
P9
P15
CJ
P15
CALL
X1
RET
X2
C0
K10
FEND
SM400
X0
A
(2)
(1)
P15
RUN Monitor
P5
CJ
SM400
A
A*
RUN Monitor
P5
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......