Technical data

Table Of Contents
IEC Functions
System Software for S7-300/400 System and Standard Functions - Volume 2/2
A5E00739858-01
26-25
Description FC30 R_STRNG
The function FC30 converts a variable in REAL data type format to a string. The
string is shown with 14 digits:
±v.nnnnnnnE±xx ± Sign
v 1 digit before the
decimal point
n 7 digits after the
decimal point
x 2 exponential digits
If the variable given at the return parameter is too short or if no valid floating-point
number is given at parameter IN, no conversion takes place and the binary result
(BR) bit of the status word is set to “0".
Parameter Declaration Data Type Memory Area Description
IN INPUT REAL I, Q, M, D, L,
Const.
Input value
RET_VAL OUTPUT STRING D, L Result string
You can assign only a symbolically defined variable for the output parameter.
Description FC37 STRNG_DI
The function FC37 converts a string to a variable in DINT data type format. The
first character in the string may be a sign or a number, the characters which then
follow must be numbers. 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 binary result (BR) bit of the status word is set to “0". If the result of the
conversion is outside the DINT range, the result is limited to the corresponding
value and the binary result (BR) bit of the status word 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 input parameter.