A-5
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-2 Sequence Output Instructions
A-1-2 Sequence Output Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
OUTPUT OUT
!OUT
--- Outputs the result (execution condition) of the logical
processing to the specified bit.
Output Required
OUTPUT NOT OUT NOT
!OUT NOT
--- Reverses the result (execution condition) of the logical
processing, and outputs it to the specified bit.
Output Required
KEEP KEEP
!KEEP
011 Output Required
DIFFERENTI-
ATE UP
DIFU
!DIFU
013 Output Required
DIFFERENTI-
ATE DOWN
DIFD
!DIFD
014 Output Required
SET SET
@SET
%SET
!SET
!@SET
!%SET
--- Output Required
RESET RSET
@RSET
%RSET
!RSET
!@RSET
!%RSET
--- Output Required
MULTIPLE BIT
SET
SETA
@SETA
530 Output Required
KEEP(011)
S (Set)
R (Reset)
B
B: Bit
Reset
Status of B
S execution
condition
R execution
condition
Set
Operates as a latching relay.
DIFU(013)
B
B: Bit
Status of B
One cycle
DIFU(013) turns the designated bit ON for one cycle when
the execution condition goes from OFF to ON (rising edge).
Execution
condition
B
B: Bit
DIFD(014)
Status of B
One cycle
Execution
condition
DIFD(014) turns the designated bit ON for one cycle when
the execution condition goes from ON to OFF (falling edge).
B
B: Bit
SET
Status of B
Execution
condition of SET
SET turns the operand bit ON when the execution condition
is ON.
B
B: Bit
RSET
Status of B
Execution
condition of RSET
RSET turns the operand bit OFF when the execution condition
is ON.
SETA(530)
D: Beginning word
N1: Beginning bit
N2: Number of bits
N2 bits are set
to 1 (ON).
SETA(530) turns ON the specified number of consecutive bits.