Download FA-M3 Programming Tool WideField3 (Script)

Transcript
G10-5
G10.2 STR (Convert Numeric to String)
STR() is a function for converting a binary data into a string.
This function converts a binary data s into a string in a format specified by n and stores
the string in the return value.
Return value = STR(n, s)
Return
Value/
Arguments
W
A value that specifies
the format of the
converted string.
A binary data, or the
first device number of a
binary data.
The obtained string.
n*1
s
Return
value
Prefix
Description
L
D
F
E
S
B




Constant
Expression
Index
Modification







*1: Even if s is W, L, or F, specify W for n.
 Return Value/Arguments
Return
Value/
Arguments
Input/Output
Range
Behavior Restrictions
Input
0-5
s
Input
Numeric data
Return
value
Output
-
If the specified n is less than 0, or greater than or
equal to 6, an instruction processing error occurs
during execution in the CPU.
A numeric value or the device number of a device
in which a numeric value is stored.
The conversion result is stored.
If an instruction processing error occurs, an
indefinite value is returned.
n
 Available Devices
Arguments/
Return
Value
n
s
Return
value
Prefix
X
Y
I
E
L
M
T
C
W
















W
















L
















F

























S
D
B
F
W
Z
R
V
H
A
U
P
 Step Counts
Prefix
Step Count*1
W
75
L
75
F
76
*1: In addition, 21 steps are used for each script instruction.
IM 34M06Q16-04E
3rd Edition: Dec. 25, 2013-00