Appendices
A-4
CP2E CPU Unit Software User’s Manual(W614)
DIFFERENTI-
ATE UP
DIFU
!
DIFU(01
3
) turns the designated bit ON for one cycle when the
execution condition goes from OFF to ON (rising edge).
DIFFERENTI-
ATE DOWN
DIFD
!
DIFD(014) turns the designated bit ON for one cycle when the
execution condition goes from ON to OFF (falling edge).
SET
SET
@/%/!/!@/!%
SET turns the operand bit ON when the execution condition is ON.
RESET
RSET
@/%/!/!@/!%
RSET turns the operand bit OFF when the execution condition is ON.
MULTIPLE BIT
SET
SETA
@
SETA(5
3
0) turns ON the specified number of consecutive bits.
MULTIPLE BIT
RESET
RSTA
@
RSTA(5
3
1) turns OFF the specified number of consecutive bits.
SINGLE BIT
SET
SETB
@/!/!@
SETB(5
3
2) turns ON the specified bit in the specified word when
the execution condition is ON.
Unlike the SET instruction, SETB(5
3
2) can be used to reset a bit
in a DM word.
SINGLE BIT
RESET
RSTB
@/!/!@
RSTB(5
33
) turns OFF the specified bit in the specified word when
the execution condition is ON.
Unlike the RSET instruction, RSTB(5
33
) can be used to reset a bit
in a DM word.
Instruction
Mnemonic
Variations
Symbol/Operand
Function
DIFU(013)
B
B
:
Bit
Status of B
One cycle
Execution
condition
B
B
:
Bit
DIFD(014)
Status of B
One cycle
Execution
condition
B
B
:
Bit
SET
Status of B
Execution
condition of SET
B
B
:
Bit
RSET
Status of B
Execution
condition of RSET
D
:
Beginning word
N1
:
Beginning bit
N2
:
Number of bits
D
N1
N2
SETA(530)
N2 bits are set
to 1 (ON).
D
:
Beginning word
N1
:
Beginning bit
N2
:
Number of bits
D
N1
N2
RSTA(531)
N2 bits are
reset to 0
(OFF).
D
:
Word address
N
:
Bit number
D
N
SETB(532)
D
N
RSTB(533)
D
: Word address
N
: Bit number
Summary of Contents for SYSMAC CP Series
Page 3: ......
Page 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Page 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Page 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Page 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Page 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Page 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Page 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Page 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Page 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Page 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Page 577: ......