Not; Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

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

Advertisement

NOT

The NOT instruction reverses the value of a Boolean variable or the individual bits in a bit string.
Instruction
NOT
Bit Reversal
Variables
Name
Meaning
In
Data to
process
Out
Processing
result
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In
OK OK OK OK OK
Out
Function
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.
LD
BYTE#16#73
In=BYTE#16#73
0 1 1 1 0 0 1 1
Out=abc
1 0 0 0 1 1 0 0

NJ-series Instructions Reference Manual (W502)

Name
FB/FUN
FUN
I/O
Description
Input
Data to process
Output
Processing result
Must be same data type as In
NOT
EN
ENO
In
abc
Individual bits reversed.
Graphic expression
(@)NOT
EN
ENO
In
Out
Valid range
Depends on data type.
Depends on data type.
Integers
ST
abc:=NOT(BYTE#16#73);
2 Instruction Descriptions
ST expression
Out:=NOT(In);
Unit
Default
*
---
---
---
Times, durations,
dates, and text strings
2
2-291

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents