Flags
Operands
CS/CJ/NSJ Series Instructions Reference Manual (W474)
The following instructions are used in pairs to set and cancel certain instruc-
tion conditions. These paired instructions must be in the same task.
Instruction
condition
Interlocked
An interlock turns OFF part of the
program.
Special conditions, such as turning
OFF output bits, resetting timers,
and holding counters are in effect.
BREAK(514)
Ends a FOR(512) - NEXT(513) loop
execution
during execution.
(Prevents execution of all instruc-
tions until to the NEXT(513) instruc-
tion.)
Executes a JMP0(515) to
JME0(516) jump.
Block program
Executes a program block from
execution
BPRG(096) to BEND(801).
In this context, a flag is a bit that serves as an interface between instructions.
Input flags
Flag
Description
Carry (CY)
The Carry Flag is used as
Flag
an unspecified operand in
data shift instructions and
addition/subtraction
instructions.
Flags for
These include teaching
Special
flags for FPD(269) instruc-
Instructions
tions and network commu-
nications enabled flags.
Operands specify preset instruction parameters (boxes in ladder diagrams)
that are used to specify I/O memory area contents or constants. An instruction
can be executed entering an address or constant as the operands. Operands
are classified as source, destination, or number operands.
1. Basic Understanding of Instructions
Description
instruction
IL(002)
BREAK(514)
JMP0(515)
BPRG(096)
Flag
Condition
Condition Flags include the
Flags
Always ON/OFF Flags, as
well as flags that are
updated by results of
instruction execution.
In user programs, these
flags can be specified by
labels, such as P_On,
P_Off, P_ER, P_CY, P_EQ
rather than by addresses.
Flags for
These include memory card
Special
instruction flags and
Instructions
MSG(046) execution com-
pleted flags.
Setting
Canceling
instruction
ILC(003)
NEXT(513)
JME0(516)
BEND(801)
Output flags
Description
1
3
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers