2. Summary of Instructions
Instruction
Symbol/Operand
Mnemonic
Code
DIFFERENTIATE
DIFD(014)
DOWN
DIFD
*1
!DIFD
B: Bit
014
SET
SET
@SET
%SET
B: Bit
*1
!SET
*1
!@SET
*1
!%SET
RESET
RSET
@RSET
%RSET
B: Bit
*1
!RSET
*1
!@RSET
*1
!%RSET
MULTIPLE BIT
SET
SETA(530)
SETA
@SETA
530
D: Beginning
word
N1: Beginning bit
N2: Number of
bits
MULTIPLE BIT
RESET
RSTA(531)
RSTA
@RSTA
531
D: Beginning
word
N1: Beginning bit
N2: Number of
bits
SINGLE BIT SET
(CJ2, CS1-H,
SETB(532)
CJ1-H, CJ1M, or
CS1D only)
SETB
@SETB
*1
D: Word address
!SETB
*1
N: Bit number
!@SETB
34
DIFD(014) turns the designated bit ON for one cycle when the
execution condition goes from ON to OFF (falling edge).
B
Execution condition
Status of B
SET turns the operand bit ON when the execution condition is ON.
SET
B
Execution condition
of SET
Status of B
RSET turns the operand bit OFF when the execution condition is ON.
RSET
Execution condition
B
of RSET
Status of B
SETA(530) turns ON the specified number of consecutive bits.
D
N1
N2
RSTA(531) turns OFF the specified number of consecutive bits.
D
N1
N2
SETB(532) turns ON the specified bit in the specified word when the exe-
cution condition is ON.
Unlike the SET instruction, SETB(532) can be used to set a bit in a DM or
D
EM word.
N
Function
One cycle
N2 bits are set to 1
(ON).
N2 bits are reset to
0 (OFF).
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Location
Page
Execution
condition
Output
166
Required
Output
168
Required
Output
168
Required
Output
170
Required
Output
170
Required
Output
172
Required