15.2.35 FC 34 - SB_DT_DT - Subtract two instants of timeThe function FC 34 subtracts two instants of time DTx (date and time) and provides aduration (time) as the result. The instants of time DTx must be in the rangeDT#1990-01-01-00:00:00.000 ... DT#2089-12-31-23:59:59.999. The function does notcheck 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 thecorresponding value and the binary result (BR) bit is set to "0".Parameter Declaration Data type Memory area DescriptionDT1* INPUT DATE_AND_TIME D, L 1. instant of time in format DTDT2* INPUT DATE_AND_TIME D, L 2. Instant of time in format DTRET_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 timeThe function FC 35 subtracts a duration D (TIME) from a time T (DT) and provides a newtime (DT) as the result. The time T must be between DT#1990-01-01-00:00:00.000 andDT#2089-12-31-23:59:59.999. The function does not run an input check. If the result ofthe subtraction is not within the valid range, the result is limited to the correspondingvalue and the binary result (BR) bit of the status word is set to "0".Parameter Declaration Data type Memory area DescriptionT* INPUT DATE_AND_TIME D, L Time in format DTD INPUT TIME I, Q, M, D, L,constantDuration in format TIMERET_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 selectionThe 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, anddouble word (not data types DT and STRING) are permitted as input values at theparameters 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.DescriptionParameterDescriptionParameterDescriptionVIPA SPEED7 StandardIEC > FC 36 - SEL - Binary selectionHB00 | OPL_SP7 | Operation list | en | 18-30 819