![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222283.webp)
4
Using
Tool
FZ4 User's Manual
Using Custom Command
281
Converts a numeric value into a numeric character string.
Str$ (<Expression>)
Parameters
<Expression>
The expression to be converted (integer type or double-precision type)
Return Value
Returns the value of the character string.
The content of the value is the converted character string.
Description
The numeric value specified by the <Expression> is converted into a character string.A numeric value
cannot be directly assigned to a character variable. It is assigned to a character variable after it has been
converted to a number in character notation using the Str$ function.
There is the reverse function val in relation to Str$ where the character string of the number is converted
to a numeric value.
Example
Convert the measurement results of each processing unit to character strings.
A#=10
B#=11
Print Str$(A#)+Str$(B#)
The results are as follows:
1011
Converts to a numeric character string with the numeric value format specified.
Str2$ (<Expression>,<Integer Part>,<Fractional Part>,<0 Suppression>,<Negative Expression>)
Parameters
<Expression>
The expression to be converted (integer type or double-precision type).
<Integer Part>
The number of digits for the integer part (integer)
<Fractional Part>
The number of digits for the fractional part (integer).
<0 Suppression>
The fill method for the region of empty spaces to the left (integer).
<Negative Expression>
The method of expressing negatives (integer).
Return Value
Returns the value of the character string.
The content of the value is the converted character string.
Acesst 1.0 6251194
Summary of Contents for FZ4 Series
Page 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Page 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Page 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Page 566: ......
Page 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Page 654: ...652 FZ4 User s Manual...
Page 655: ......