Conditional Jump: Cjp(221)/Cjpn(222); Conditional Jump: Cjp(221)/Cjpn - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

CONDITIONAL JUMP: CJP(221)/CJPN(222)

Precautions
Flags
Example

5-10 CONDITIONAL JUMP: CJP(221)/CJPN(222)

Ladder Symbol
(221)
CJP N
(222)
CJP N
Description
When the JMP(004) instruction's execution condition is turned OFF after tim-
ing has been started by turning ON the timer's execution condition (b), timing
will continue but the timer PV will not be refreshed.
Be sure to consider the effects of the JMP(004)/JME(005) instructions on timer
PVs when using the timer PVs as data in the program.
• As long as a timer is jumped (execution condition of JMP(004) OFF), its Timer
Completion Flag will not be turned ON even if the timer's SV has elapsed.
• When an operating timer has been jumped and the execution condition of
JMP(004) is then turned ON again, the elapsed time is subtracted from the
decrementing timer's PV (or added to an incrementing timer's PV) and the tim-
ing continues.
If the timer's SV has elapsed while it was jumped, its Completion Flag will be
turned ON when the execution condition of JMP(004) is turned ON again.
The jump number N must be BCD between 0000 and 0999.
When JMP(004) and JME(005) are not used in pairs, an error message will ap-
pear when the program check is performed. If a JME(005) instruction precedes
a JMP(004) instruction with the same jump number, a loop might occur, so the
END(001) instruction is never executed, causing a Cycle Time Over error.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
Jump number is not BCD or not between 0000 and 0999.
JMP(004) in the program without a corresponding JME(005).
Also turns ON the Jump Error Flag A40213.
Examples of jump programs are provided in 4-6 Jumps.
Operand Data Areas
N: Jump number
CJP(221) operates in the reverse of JMP(004). When the execution condition
turns ON, the program up until JME(005) is skipped. When the execution condi-
tion is OFF, the instructions after CJP(221) are executed normally.
The CJPN(222) operates similar to JMP(004). When the execution condition is
ON, the instructions after CJPN(222) are executed normally. When the execu-
tion condition is OFF, the program up until JME(005) is skipped.
JMP(004), CJP(221), and CJPN(222) all operate differently, however, when
used in a block program. With JMP(004), the program jumps to JME(005) un-
conditionally. With CJP(221), the program jumps to JME(005) when the condi-
tion just before the CJP(221) instruction is ON. With CJPN(222), the program
jumps to JME(005) when the condition just before the CJP(221) instruction is
OFF.
When a jump occurs, the status of outputs from the program (output bits, timers,
counters, shift registers, keep, etc.) is maintained and timing continues for TIM/
TIMH(015).
Section 5-10
CIO, G, A, T, C, #, DM, DR, IR
125

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents