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 #339 background imageLoading...
Page #339 background image
2-291
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Bit String Processing Instructions
2
NOT
NOT
The NOT instruction reverses the value of a Boolean variable or the individual bits in a bit string.
* If you omit the input parameter, the default value is not applied. A building error will occur.
The NOT instruction reverses the value of a Boolean variable or the values of individual bits in a bit
string. The data to process is in In. In and processing result Out must have the same number of bits,
i.e., they must be the same data type.
The following example is for when In is BYTE#16#73.
Instruction Name FB/FUN Graphic expression ST expression
NOT Bit Reversal FUN Out:=NOT(In);
Variables
Name Meaning I/O Description Valid range Unit Default
In Data to
process
Input Data to process Depends on data type.
--- *
Out Processing
result
Output Processing result Depends on data type.
--- ---
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
In OK OK OK OK OK
Out Must be same data type as In
Function
(@)NOT
EN ENO
In Out
abc:=NOT(BYTE#16#73);
LD ST
abc
BYTE#16#73
NOT
EN ENO
In
1 0 0 0 1 1 0 0
0 1 1 1 0 0 1 1
Out=abc
In=BYTE#16#73
Individual bits reversed.

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