EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 Instruction Descriptions
2-442
NJ-series Instructions Reference Manual (W502)
The following example is for when In is ‘XYZ’.
The NULL character at the end of In is not stored in AryOut[].
If the In text string contains only the NULL character, the value of Out will be 0 and AryOut[] will not
change.
An error occurs in the following cases. ENO will be FALSE, and Out and AryOut[] will not change.
In does not end in a NULL character.
The number of bytes in In is larger than the number of elements in AryOut[].
Precautions for Correct Use
def:=StringToAry(’XYZ’, abc[1]);
LD ST
abc[1] abc[1]
def
‘XYZ’
StringToAry
EN ENO
In
AryOut
In
Character code for ‘Z’
Character code for ‘Y’
Character code for ‘X’
‘XYZ’
UINT#3
16#58
16#59
16#5A
AryOut[0]=abc[1]
AryOut[1]=abc[2]
AryOut[2]=abc[3]
Out=def

Table of Contents

Related product manuals