90
tion 1 and then the status of IR 00002 would be loaded to form the execution
condition for the second INTERLOCK instruction. If IR 00002 is OFF, instruc-
tions 2 through 4 will be executed with OFF execution conditions. If IR 00002
is ON, IR 00003, IR 00005, and IR 00006 will determine the first execution
condition in new instruction lines.
4-6-8
Jumps
A specific section of a program can be skipped according to a designated
execution condition. Although this is similar to what happens when the exe-
cution condition for an INTERLOCK instruction is OFF, with jumps, the oper-
ands for all instructions maintain status. Jumps can therefore be used to con-
trol devices that require a sustained output, e.g., pneumatics and hydraulics,
whereas interlocks can be used to control devices that do not required a sus-
tained output, e.g., electronic instruments.
Jumps are created using the JUMP (JMP(04)) and JUMP END (JME(05))
instructions. If the execution condition for a JUMP instruction is ON, the pro-
gram is executed normally as if the jump did not exist. If the execution condi-
tion for the JUMP instruction is OFF, program execution moves immediately
to a JUMP END instruction without changing the status of anything between
the JUMP and JUMP END instruction.
All JUMP and JUMP END instructions are assigned jump numbers ranging
between 00 and 99. There are two types of jumps. The jump number used
determines the type of jump.
A jump can be defined using jump numbers 01 through 99 only once, i.e.,
each of these numbers can be used once in a JUMP instruction and once in
a JUMP END instruction. When a JUMP instruction assigned one of these
numbers is executed, execution moves immediately to the JUMP END in-
struction that has the same number as if all of the instruction between them
did not exist. Diagram B from the TR bit and interlock example could be re-
drawn as shown below using a jump. Although 01 has been used as the
jump number, any number between 01 and 99 could be used as long as it
has not already been used in a different part of the program. JUMP and
JUMP END require no other operand and JUMP END never has conditions
on the instruction line leading to it.
Instruction 1
00002
00000
Instruction 2
Diagram B: Corrected with a Jump
00001
JME(05) 01
JMP(04) 01
Address
Instruction
Operands
00000
LD
00000
00001
JMP(04)
01
00002
LD
00001
00003
Instruction 1
00004
LD
00002
00005
Instruction 2
00006
JME(05)
01
This version of diagram B would have a shorter execution time when 00000
was OFF than any of the other versions.
The other type of jump is created with a jump number of 00. As many jumps
as desired can be created using jump number 00 and JUMP instructions us-
ing 00 can be used consecutively without a JUMP END using 00 between
them. It is even possible for all JUMP 00 instructions to move program
execution to the same JUMP END 00, i.e., only one JUMP END 00
instruction is required for all JUMP 00 instruction in the program. When 00 is
used as the jump number for a JUMP instruction, program execution moves
to the instruction following the next JUMP END instruction with a jump num-
Inputting, Modifying, and Checking the Program
Section 4-6
Содержание SYSMAC C1000H
Страница 1: ...Cat No W140 E1 04 Programmable Controllers SYSMAC C1000H C2000H...
Страница 2: ...C1000H C2000H Programmable Controllers Operation Manual Revised May 2003...
Страница 3: ...iv...
Страница 5: ...vi...
Страница 395: ...Cat No W140 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor...
Страница 396: ...Cat No W140 E1 04 SYSMAC C1000H C2000H Programmable Controllers OPERATION MANUAL...