Testabit And Testabitn - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

TestABit and TestABitN

TestABit:
Outputs the value of the specified bit in a bit string.
TestABitN:
Outputs the inverse of the value of the specified bit in a bit string.
Instruction
TestABit
Test A Bit
TestABitN
Test A Bit NOT
Variables
Name
Meaning
In
Bit string
Pos
Bit position
Out
Bit value
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In
OK OK OK OK
Pos
Out
OK
NJ-series Instructions Reference Manual (W502)
Name
FB/FUN
FUN
FUN
I/O
Description
Bit string
Input
Specified bit position
Output
TestABit
Value of specified bit
TestABitN
Inverse of value of specified
bit
OK
Graphic expression
(@)TestABit
EN
Out
In
Pos
(@)TestABitN
EN
Out
In
Pos
Valid range
Depends on data type.
0 to No. of bits in In − 1
Depends on data type.
Integers
2 Instruction Descriptions
ST expression
Out:=TestABit (In, Pos);
Out:=TestABitN (In, Pos);
Unit
Default
*
---
0
---
---
Times, durations,
dates, and text strings
2
2-43

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents