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 ReadNbit_BYTE instruction when In is BYTE#16#89, Pos is USINT#2
and Size is USINT#4.
LD
BYTE#16#89
USINT#2
USINT#4
Size=USINT#4
Bit 7
In
1 0
0 0 1 0 0 1
Bit 7
Out=abc
0 0 0 0 0 0 1 0
Additional Information
Use a WriteNbit_** instruction to write zero or more bits to a bit string.
Precautions for Correct Use
• The data types of In and Out must be the same.
• If the value of Size is 0, the value of Out is 16#0.
• An error occurs in the following cases. ENO will be FALSE, and Out 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 In 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
abc:=ReadNbit_BYTE(BYTE#16#89, USINT#2,
ReadNbit_BYTE
EN
ENO
abc
In
Pos
Size
Bit 0
Pos=USINT#2
Bit 0
2 Instruction Descriptions
USINT#4);
2
2-1367

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents