EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FC 16 - I_STRNG - Convert INT to STRING

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...
15.2.17 FC 16 - I_STRNG - Convert INT to STRING
The function FC 16 converts a variable in DINT data format to a string. The string is
shown preceded by a sign. If the variable given at the return parameter is too short, no
conversion takes place and the BR bit is set to "0".
Parameter
Parameter Declaration Data type Memory area Description
I INPUT INT I, Q, M, D, L
Constant
Input value
RET_VAL* OUTPUT STRING D, L Result string
*) You can assign only a symbolically defined variable for the parameter.
15.2.18 FC 17 - INSERT - Insert in a STRING variable
The function FC 17 inserts a string at parameter IN2 into the string at parameter IN1 after
the character at position P.
n If P equals zero, the second string is inserted before the first string.
n If P is greater than the current length of the first string, the second string is appended
to the first.
n If P is negative, a blank string is output and the BR bit is set to "0". The binary result
bit is also set to "0" if the resulting string is longer than the variable given at the output
parameter; in this case the result string is limited to the maximum set length.
Parameter Declaration Data type Memory area Description
IN1* INPUT STRING D, L STRING variable to be inserted
into
IN2* INPUT STRING D, L STRING variable to be inserted
P INPUT INT I, Q, M, D, L
Constant
Insert position
RET_VAL* OUTPUT STRING D, L Result string
*) You can assign only a symbolically defined variable for the parameter.
15.2.19 FC 18 - LE_DT - Compare DT for smaller than or equal
The function FC 18 compares the contents of two variables in the format
DATE_AND_TIME to determine if one is smaller or equal to the other and outputs the
result of the comparison as a return value. The return value has the signal state "1" if the
time at parameter DT1 is smaller (older) than the time at parameter DT2 or if both
instants of time are the same. The function does not report any errors.
Description
Description
Parameter
Description
Parameter
VIPA SPEED7
Standard
IEC > FC 18 - LE_DT - Compare DT for smaller than or equal
HB00 | OPL_SP7 | Operation list | en | 18-30 811

Table of Contents

Related product manuals