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

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

Advertisement

2 Instruction Descriptions
The following example is for when Num is USINT#3.
LD
EN
abc
In
USINT#3
Num
AryOut
def[1]
Highest
byte
In=abc
A0
23
Additional Information
Use the Unite8Bit_** instruction (page 2-473) to join 1-byte units from array elements.
Precautions for Correct Use
• 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 AryOut[] will not change.
• The value of Num is outside of the valid range.
• The value of Num exceeds the number of bytes in In.
2-472
ST
Dispart8Bit(abc, USINT#3, def[1]);
Dispart8Bit
ENO
def[1]
Num=USINT#3
Byte 2
Byte 1
Byte 0
06
21
AA
36
AryOut[0]=def[1]
36
AryOut[1]=def[2]
Num=USINT#3
AA
21
AryOut[2]=def[3]

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents