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 In is 'XYZ'.
LD
StringToAry
EN
'XYZ'
In
AryOut
abc[1]
In
'XYZ'
Precautions for Correct Use
• 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.
• The number of bytes in In is larger than the number of elements in AryOut[].
2-464
ST
def:=StringToAry('XYZ', abc[1]);
ENO
def
abc[1]
AryOut[0]=abc[1]
16#58
16#59
AryOut[1]=abc[2]
16#5A
AryOut[2]=abc[3]
Out=def
UINT#3
Character code for 'X'
Character code for 'Y'
Character code for 'Z'

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents