Sequence Output Instructions
0.01
3-3-7
SINGLE BIT SET/RESET: SETB(532)/RSTB(533)
Purpose
Ladder Symbols
Variations
Applicable Program Areas
Operands
RSTA(531) Example
When CIO 0.01 is turned ON in the following example, the 20 bits (0014 hexa-
decimal) beginning with bit 3 of CIO 210 are turned OFF.
210
D: 210
&3
211
&20
SETB(532) turns ON the specified bit.
RSTB(533) turns OFF the specified bit.
SETB(532)
D: Word address
N: Bit number
D
N
RSTB(533)
D: Word address
N: Bit number
D
N
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Combined
Executed Once and Bit Refreshed
Variations
Immediately for Upward Differentiation
Executed Once and Bit Refreshed
Immediately for Downward Differentiation
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Combined
Executed Once and Bit Refreshed
Variations
Immediately for Upward Differentiation
Executed Once and Bit Refreshed
Immediately for Downward Differentiation
Block program areas
OK
OK
D: Word Address
Specifies the word in which the bit will be turned ON or OFF.
N: Beginning Bit
Specifies the bit which will be turned ON or OFF. N must be #0000 to #000F
(&0 to &15).
Step program areas
Subroutines
OK
Section 3-3
N1: Bit 3
N2: 20 bits
SETB(532)
@SETB(532)
!SETB(532)
!@SETB(532)
Not supported
RSTB(533)
@RSTB(533)
!RSTB(533)
!@RSTB(533)
Not supported
Interrupt tasks
OK
127
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers