Setbits And Resetbits - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

SetBits and ResetBits

SetBits:
ResetBits:
Instruction
SetBits
Set Bits
ResetBits
Reset Bits
Variables
Name
Meaning
InOut
Bit string
Pos
Bit position
Size
Number of
bits
Out
Return
value
Bit strings
InOut
OK OK OK OK
Pos
Size
Out
OK
Function
 SetBits
The SetBits instruction changes the value of Size bits from the bit position Pos in the bit string InOut
to TRUE. The status of the other bits will not change.
NY-series Instructions Reference Manual (W560)
Changes consecutive bits in bit string data to TRUE.
Changes consecutive bits in bit string data to FALSE.
Name
FB/FUN
FUN
FUN
I/O
Description
In-out
Bit string
Specified bit position
Input
Number of bits
Output
Always TRUE
OK
OK
Graphic expression
(@)SetBits
EN
ENO
InOut
Pos
Out
Size
(@)ResetBits
EN
ENO
InOut
Pos
Out
Size
Valid range
Depends on data type.
0 to No. of bits in InOut
− 1
0 to No. of bits in InOut
TRUE only
Integers
2 Instruction Descriptions
ST expression
SetBits(InOut, Pos, Size);
ResetBits(InOut, Pos, Size);
Unit
Default
---
---
0
---
1
---
---
Times, durations,
dates, and text strings
2
2-59

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents