EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FC 34 - SB_DT_DT - Subtract Two Instants of Time

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.35 FC 34 - SB_DT_DT - Subtract two instants of time
The function FC 34 subtracts two instants of time DTx (date and time) and provides a
duration (time) as the result. The instants of time DTx must be in the range
DT#1990-01-01-00:00:00.000 ... DT#2089-12-31-23:59:59.999. The function does not
check the input parameters. It is valid:
n With DT1 > DT2 the result is positive.
n With DT1 < DT2 the result is negative.
n If the result of the subtraction is outside the TIME range, the result is limited to the
corresponding value and the binary result (BR) bit is set to "0".
Parameter Declaration Data type Memory area Description
DT1* INPUT DATE_AND_TIME D, L 1. instant of time in format DT
DT2* INPUT DATE_AND_TIME D, L 2. Instant of time in format DT
RET_VAL OUTPUT TIME I, Q, M, D, L Difference in format TIME
*) You can assign only a symbolically defined variable for the parameter.
15.2.36 FC 35 - SB_DT_TM - Subtract a duration from a time
The function FC 35 subtracts a duration D (TIME) from a time T (DT) and provides a new
time (DT) as the result. The time T must be between DT#1990-01-01-00:00:00.000 and
DT#2089-12-31-23:59:59.999. The function does not run an input check. If the result of
the subtraction is not within the valid 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
T* INPUT DATE_AND_TIME D, L Time in format DT
D INPUT TIME I, Q, M, D, L,
constant
Duration in format TIME
RET_VAL * OUTPUT DATE_AND_TIME D, L Difference in format DT
*) You can assign only a symbolically defined variable for the parameter.
15.2.37 FC 36 - SEL - Binary selection
The function FC 36 selects one of two variable values depending on a switch G.
n Variables with all data types which correspond to the data width bit, byte, word, and
double word (not data types DT and STRING) are permitted as input values at the
parameters IN0 and IN1.
n IN0, IN1 and RET_VAL must be of the same data type.
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.
Description
Parameter
Description
Parameter
Description
VIPA SPEED7
Standard
IEC > FC 36 - SEL - Binary selection
HB00 | OPL_SP7 | Operation list | en | 18-30 819

Table of Contents

Related product manuals