Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 384

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

Advertisement

• These instructions can specify and jump from the current step to a smaller step number. In this case, consider a method to
exit a loop so that the watchdog timer does not time out.
X0
P8
(1)
X7
X3
X6
P9
• The value in the device skipped with these instructions remains the same.
X2
X4
X2
P19
X7
• A label (P) occupies two steps.
X2
10
X3
15
M3
(1)
19
P9
M36
23
X5
29
• Only the pointer numbers within the same program file can be specified.
• During skip operation, if the program jumps to the pointer number within the skip range, the programs of the jump
destination pointer number and later are executed.
• The figure below shows programming of a label. When creating a circuit program, move the cursor to the left side of the bus
line in the ladder diagram, and input a label (P) at the head of the circuit block.
X30
X31
X32
P20
(1)
(2)
(1): Bus line
(2): Label
• A label can be programmed in a smaller number step than CJ instruction. However, note that a watchdog timer error occurs
when the scan time exceeds 200 ms (default setting).
P10
8 APPLICATION INSTRUCTION
382
8.2 Program Branch Instruction
Y4
CJ
P9
CJ
P8
(2)
Y5
CJ
P19
Y4
Y5
Y6
CJ
P9
Y2
Y5
Y6
Y7
CJ
P20
Y10
Y11
CJ
P10
(1) While X3 is on, the loop is repeated.
(2) To exit the loop, turn on X7.
When X2 turns on, the program jumps to the label, P19.
Y4 and Y5 remain the same even if X2 and X4 turn on/off during the
execution of the CJ instruction.
(1) A label occupies two steps.

Hide quick links:

Advertisement

loading