EasyManua.ls Logo

Omron NJ501-1500

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
Loading...
2 Instruction Descriptions
2-866
NJ-series Instructions Reference Manual (W502)
WriteNbit_**
The WriteNbit_** instructions write zero or more bits to a bit string.
A WriteNbit_** instruction first reads the lower Size bits from read source In. Then it writes the values
that it read to write position Pos in write target InOut.
The name of the instruction is determined by the data types of In and Out. For example, if In and Out
are the WORD data type, the instruction is WriteNbit_WORD.
Instruction Name FB/FUN Graphic expression ST expression
WriteNbit_** N-bit Write Group FUN WriteNbit_**(In, Pos, Size,
InOut);
“**” must be a bit string data
type.
Variables
Name Meaning I/O Description Valid range Unit Default
In Read
source
Input
Bit string from which to read
bits to write to InOut
Depends on data type.
---
0
Pos Write posi-
tion
Bit position to which to write 0 to No. of bits in InOut
1
Size Write size Number of bits to write 0 to No. of bits in In 1
InOut Write target In-out Write result Depends on data type.
--- ---
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
In OK OK OK OK
Pos OK
Size OK
InOut Must be same data type as In
Out OK
Function
"**" must be a bit string data type.
(@)WriteNbit_**
EN ENO
In Out
InOut
Pos
Size

Table of Contents

Related product manuals