Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

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

Advertisement

The following example shows the WriteNbit_BYTE instruction when In is BYTE#16#89, Pos is USINT#2
and Size is USINT#4.
LD
BYTE#16#89
abc
USINT#2
USINT#4
Size=USINT#4
Bit 7
1 0 0 0 1 0 0 1
In
Bit 7
InOut=abc
0 0 1 0 0 1 0 0
Additional Information
Use a ReadNbit_** instruction to read zero or more bits from a bit string.
Precautions for Correct Use
• The data types of In and InOut must be the same.
• The value of InOut does not change if the value of Size is 0.
• Return value Out is not used when the instruction is used in ST.
• An error occurs in the following cases. ENO will be FALSE, and InOut will not change.
• The value of Size is outside of the valid range.
• The value of Pos is outside of the valid range.
• The bit string in InOut does not have enough bits for the number of bits specified by Size from the
position specified by Pos.

NY-series Instructions Reference Manual (W560)

ST
WriteNbit_BYTE(BYTE#16#89, abc,
WriteNbit_BYTE
EN
ENO
In
InOut
abc
Pos
Size
Bit 0
Bit 0
Pos=USINT#2
2 Instruction Descriptions
USINT#2, USINT#4);
2
2-1369

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents