Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
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-451) 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.
• AryOut[] is not a BYTE array.
• An array without a subscript is passed to AryOut[].
2-450
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]

NJ-series Instructions Reference Manual (W502)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents