EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FC 37 - STRNG_DI - Convert STRING to DINT

YASKAWA VIPA SPEED7
1007 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Parameter Declaration Data type Memory area Description
G INPUT BOOL I, Q, M, D, L
Constant
Selection switch
IN0 INPUT ANY I, Q, M, D, L 1. Input value
IN1 INPUT ANY I, Q, M, D, L 2. Input value
RET_VAL OUTPUT ANY I, Q, M, D, L Selected input value
15.2.38 FC 37 - STRNG_DI - Convert STRING to DINT
The function FC 37 converts a string to a variable in DINT data format.
n The first character in the string may be a sign or a number, the characters which then
follow must be numbers.
n If the length of the string is equal to zero or greater than 11, or if invalid characters are
found in the string, no conversion takes place and the BR bit is set to "0".
n If the result of the conversion is outside the DINT range, the result is limited to the
corresponding value and the BR bit is set to "0".
Parameter Declaration Data type Memory area Description
S* INPUT STRING D, L Input string
RET_VAL OUTPUT DINT I, Q, M, D, L Result
*) You can assign only a symbolically defined variable for the parameter.
15.2.39 FC 38 - STRNG_I - Convert STRING to INT
The function FC 38 converts a string to a variable in INT data format.
n The first character in the string may be a sign or a number, the characters which then
follow must be numbers.
n If the length of the string is equal to zero or greater than 6, or if invalid characters are
found in the string, no conversion takes place and the BR bit is set to "0".
n If the result of the conversion is outside the INT range, the result is limited to the cor-
responding value and the BR bit is set to "0".
Parameter Declaration Data type Memory area Description
S* INPUT STRING D, L Input string
RET_VAL OUTPUT INT I, Q, M, D, L Result
*) You can assign only a symbolically defined variable for the parameter.
Parameter
Description
Parameter
Description
Parameter
VIPA SPEED7
Standard
IEC > FC 38 - STRNG_I - Convert STRING to INT
HB00 | OPL_SP7 | Operation list | en | 18-30 820

Table of Contents

Related product manuals