EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FC 14 - GT_DT - Compare DT for Greater than

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
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.15 FC 14 - GT_DT - Compare DT for greater than
The function FC 14 compares the contents of two variables in the data format
DATE_AND_TIME to determine if one is greater 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 greater (younger) than the time at parameter DT2. The function does
not report any errors.
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.16 FC 15 - GT_STRNG - Compare STRING for greater than
The function FC 15 compares the contents of two variables in the data format STRING to
find out if the first is greater than 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
greater than the string at parameter S2. The characters are compared by their ASCII
code (e.g. 'a' is greater 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 string is identical to the
shorter string, the longer string is considered as greater. 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.
Parameter
Description
Parameter
Description
Parameter
VIPA SPEED7
Standard
IEC > FC 15 - GT_STRNG - Compare STRING for greater than
HB00 | OPL_SP7 | Operation list | en | 18-30 810

Table of Contents

Related product manuals