Writenbit - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions

WriteNbit_**

The WriteNbit_** instructions write zero or more bits to a bit string.
Instruction
WriteNbit_**
N-bit Write Group FUN
Variables
Name
Meaning
In
Read
source
Pos
Write
position
Size
Write size
InOut
Write target In-out
Out
Return
value
Bit strings
In
OK OK OK OK
Pos
Size
InOut
Out
OK
Function
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.
2-1368
Name
FB/FUN
I/O
Description
Bit string from which to read
bits to write to InOut
Input
Bit position to which to write
Number of bits to write
Write result
Always TRUE
Output
OK
OK
Must be same data type as In
Graphic expression
(@)WriteNbit_**
EN
ENO
In
Out
InOut
Pos
Size
"**" must be a bit string data type.
Valid range
Depends on data type.
0 to No. of bits in InOut
−1
0 to No. of bits in In
Depends on data type.
TRUE only
Integers
NY-series Instructions Reference Manual (W560)
ST expression
WriteNbit_**(In, Pos, Size,
InOut);
"**" must be a bit string data
type.
Unit
Default
0
---
1
---
---
---
---
Times, durations,
dates, and text strings

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents