Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 385

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

• When the pointer number in operands is same and there is one label, the following operation is caused:
X20
X21
P9
• When a label number (including labels for CALL instructions described later) is used two or more times, an error is caused.
X20
X30
P9
P9
A: User program
• No label can be shared by CALL instruction and CJ instruction.
X0
X1
X2
SM400
P15
RUN Monitor
A: User program
(1): Subroutine program dedicated to CALL instruction
(2): Program a label (P) after FEND 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:
SM400
RUN Monitor
P5
A*: User program (It is skipped, and is not executed.)
A: User program
Operation error
Error code
Description
(SD0/SD8067)
3380H
A pointer number which is not used as a label in the same program file is specified.
(1)
CJ
P9
(2)
CJ
P9
CJ
P9
CJ
P9
A
A
END
CJ
P15
CALL
P15
K10
C0
FEND
(1)
A
(2)
RET
CJ
P5
A*
A
(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.
8 APPLICATION INSTRUCTION
8.2 Program Branch Instruction
8
383

Hide quick links:

Advertisement

loading