Download FA-M3 Programming Tool WideField3 (Script)

Transcript
G10-42
G10.20 SUNIT (Byte-unit Characters to String)
SUNIT() is a function for combining characters in byte unit as many word-unit characters
as you specify to make a continuous string.
Return value = SUNIT(s, n)
Return
Value/
Arguments
Prefix
Description
W
The first device number
of a string consisting of
word-unit characters.
The number of
characters to be
combined, or the first
device number of the
number of characters to
be combined.
The string obtained by
combining byte-unit
characters.
s
n
Return
value
L
D
F
E
S
B
Constant
Expression
Index
Modification






 Return Value/Arguments
Return
Value/
Arguments
Input/Output
Range
Input
Input
1 to 2047
characters in
string length
1-2047
Output
-
s
n
Behavior Restrictions
If s is NULL, an instruction processing error
occurs during execution in the CPU.
If the specified n is 0 or less, an instruction
processing error occurs during execution in the
CPU.
The obtained string is stored.
If the string length of the combined result is
greater than 2047, an instruction processing error
occurs during execution in the CPU.
If an instruction processing error occurs, an
indefinite value is returned.
Return
value
 Available Devices
Arguments/
Return
Value
s
n
Return
value
Prefix
X
Y
I
E
L
M






T
C
W
W
S
D
B
F
W
Z
R
V
H
A
U






















P
 Step Counts
Prefix
Step Count*1
S
153
*1: In addition, 21 steps are used for each script instruction.
IM 34M06Q16-04E
3rd Edition: Dec. 25, 2013-00