EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #103 background imageLoading...
Page #103 background image
2-55
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Sequence Output Instructions
2
SetABit and ResetABit
SetABit and ResetABit
z SetABit
The SetABit instruction changes the value of the bit at bit position Pos in the bit string InOut to
TRUE.
The bits that are not specified do not change.
Even if EN changes to FALSE after execution, the Pos bit in InOut will not change.
SetABit: Changes the specified bit in bit string data to TRUE.
ResetABit: Changes the specified bit in bit string data to FALSE.
Instruction Name FB/FUN Graphic expression ST expression
SetABit Set A Bit FUN SetABit (InOut, Pos);
ResetABit Reset A Bit FUN ResetABit (InOut, Pos);
Variables
Name Meaning I/O Description Valid range Unit Default
InOut Bit string In-out Bit string Depends on data type.
--- ---
Pos Bit position Input Specified bit position 0 to No. of bits in InOut
− 1
--- 0
Out Return
value
Output Always TRUE TRUE only
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
InOut OKOKOKOK
Pos OK
Out OK
Function
(@)SetABit
EN ENO
InOut
Pos
Out
(@)ResetABit
EN ENO
InOut
Pos
Out

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals