2-441
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Conversion Instructions
2
StringToAry
StringToAry
The StringToAry instruction converts a text string to a BYTE array.
The StringToAry instruction takes the character codes in text string In as numbers and stores them indi-
vidually in a BYTE array, AryOut[]. The number of bytes that was converted is stored in Out.
Instruction Name FB/FUN Graphic expression ST expression
StringToAry Text String-to-Array
Conversion
FUN Out:=StringToAry(In, Ary-
Out);
Variables
Name Meaning I/O Description Valid range Unit Default
In Text string Input Text string Depends on data type.
--- ''
AryOut[]
(array)
BYTE array In-out BYTE array Depends on data type.
--- ---
Out Number of
bytes to
convert
Output Number of bytes to convert 0 to 1985 Bytes ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In OK
AryOut[]
(array)
OK
Out OK
Function
(@)StringToAry
EN ENO
In Out
AryOut