Omron FZ4 Series User Manual page 283

Vision sensor
Table of Contents

Advertisement

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>
<Integer Part>
<Fractional Part>
<0 Suppression>
<Negative Expression>
Return Value
Returns the value of the character string.
The content of the value is the converted character string.
FZ4 User's Manual
The expression to be converted (integer type or double-precision type).
The number of digits for the integer part (integer)
The number of digits for the fractional part (integer).
The fill method for the region of empty spaces to the left (integer).
The method of expressing negatives (integer).
Using Custom Command
4
281

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents