EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FC 24 - LT_STRNG - Compare STRING for Smaller

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
Parameter Declaration Data type Memory area Description
DT1* INPUT DATE_AND_TIME D, L Input variable in format TD
DT2* INPUT DATE_AND_TIME D, L Input variable in format TD
RET_VAL OUTPUT BOOL I, Q, M, D, L Comparison result
*) You can assign only a symbolically defined variable for the parameter.
15.2.25 FC 24 - LT_STRNG - Compare STRING for smaller
The function FC 24 compares the contents of two variables in the format STRING to
determine if one is smaller to the other and outputs the result of the comparison as a
return value. The return value has the signal state "1" if the string at parameter S1 is
smaller than the string at parameter S2. The characters are compared by their ASCII
code (e.g. 'A' smaller than 'a'), starting from the left. The first character to be different
decides the result of the comparison. If the left part of the longer character string and the
shorter character string are the same, the shorter string is smaller. The function does not
report any errors.
Parameter Declaration Data type Memory area Description
S1* INPUT STRING D, L Input variable in format STRING
S2* INPUT STRING D, L Input variable in format STRING
RET_VAL OUTPUT BOOL I, Q, M, D, L Comparison result
*) You can assign only a symbolically defined variable for the parameter.
15.2.26 FC 25 - MAX - Select maximum
The function FC 25 selects the largest of three numerical variable values.
n Variables of the data types INT, DINT, and REAL are permitted as input values.
n All variables with parameters assigned must be of the same data type.
n The variable type is recognized by the ANY pointer.
n The output value remains unchanged and the BR bit is set to "0" if:
a variable with parameters assigned has an invalid data type.
all variables with parameters assigned do not have the same data type.
a REAL variable does not represent a valid floating-point number.
Parameter Declaration Data type Memory area Description
IN1 INPUT ANY I, Q, M, D, L 1. Input value
IN2 INPUT ANY I, Q, M, D, L 2. Input value
IN3 INPUT ANY I, Q, M, D, L 3. Input value
RET_VAL OUTPUT ANY I, Q, M, D, L Largest of the input values
Description
Parameter
Description
Parameter
VIPA SPEED7
Standard
IEC > FC 25 - MAX - Select maximum
HB00 | OPL_SP7 | Operation list | en | 18-30 814

Table of Contents

Related product manuals