NO OPERATION – NOP(00)
Precautions
Example
00000
5-10 NO OPERATION – NOP(00)
Description
Flags
5-11 END – END(01)
Description
Flags
5-12 INTERLOCK and INTERLOCK CLEAR – IL(02) and ILC(03)
Description
DIFU(13) and DIFD(14) operation can be uncertain when the instructions are
programmed between IL and ILC, between JMP and JME, or in subroutines.
Refer to 5-12 INTERLOCK and INTERLOCK CLEAR – IL(02) and ILC(03), 5-
13 JUMP and JUMP END – JMP(04) and JME(05), 5-27 Subroutine Instruc-
tions, and 5-28-8 INTERRUPT CONTROL – INT(89).
In this example, IR 10014 will be turned ON for one cycle when IR 00000 goes
from OFF to ON. IR 10015 will be turned ON for one cycle when IR 00000
goes from ON to OFF.
DIFU(13) 10014
DIFD(14) 10015
NOP(00) is not generally required in programming and there is no ladder sym-
bol for it. When NOP(00) is found in a program, nothing is executed and the
program execution moves to the next instruction. When memory is cleared
prior to programming, NOP(00) is written at all addresses. NOP(00) can be
input through the 00 function code.
There are no flags affected by NOP(00).
Ladder Symbol
END(01) is required as the last instruction in any program. If there are subrou-
tines, END(01) is placed after the last subroutine. No instruction written after
END(01) will be executed. END(01) can be placed anywhere in the program
to execute all instructions up to that point, as is sometimes done to debug a
program, but it must be removed to execute the remainder of the program.
If there is no END(01) in the program, no instructions will be executed and the
error message "NO END INST" will appear.
END(01) turns OFF the ER, CY, GR, EQ, LE, OF, and UF Flags.
Ladder Symbol
Ladder Symbol
IL(02) is always used in conjunction with ILC(03) to create interlocks. Inter-
locks are used to enable branching in the same way as can be achieved with
TR bits, but treatment of instructions between IL(02) and ILC(03) differs from
that with TR bits when the execution condition for IL(02) is OFF. If the execu-
tion condition of IL(02) is ON, the program will be executed as written, with an
ON execution condition used to start each instruction line from the point
where IL(02) is located through the next ILC(03). Refer to 4-3-8 Branching
Instruction Lines for basic descriptions of both methods.
Address Instruction
00000
LD
00001
DIFU(13)
00002
DIFD(14)
END(01)
IL(02)
ILC(03)
Section 5-10
Operands
00000
10014
10015
227
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?