Siemens S7-1200 System Manual page 285

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Table 8- 5
T_DIFF (Time difference) instruction
LAD / FBD
SCL
out := T_DIFF(
Table 8- 6
Data types for the T_DIFF parameters
Parameter and type
IN1
IN
IN2
IN
OUT
OUT
Condition codes: ENO = 1 means no error occurred. ENO = 0 and parameter OUT = 0
errors:
● Invalid DTL value
● Invalid Time value
Table 8- 7
T_COMBINE (Combine times) instruction
LAD / FBD
Note that the T_COMBINE instruction in the Extended Instructions equates to the CONCAT_DATE_TOD function in
1
SCL.
Table 8- 8
Data types for the T_COMBINE parameters
Parameter and type
IN1
IN
IN2
IN
OUT
OUT
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
in1:=_DTL_in,
in2:=_DTL_in);
Data type
DTL
DTL
Time
SCL
out :=
CONCAT_DATE_TOD(
In1 := _date_in,
In2 := _tod_in);
Data type
Date
Time_of_Day
DTL
8.1 Date, time-of-day, and clock functions
Description
T_DIFF subtracts the DTL value (IN2) from the DTL value (IN1).
Parameter OUT provides the difference value as a Time data type.
DTL - DTL = Time
Description
DTL value
DTL value to subtract
Time difference
Description
T_COMBINE combines a Date value and a Time_of_Day
value to create a DTL value.
Description
Date value to be combined must be between DATE#1990-
01-01 and DATE#2089-12-31
Time_of_Day values to be combined
DTL value
Extended instructions
285

Advertisement

Table of Contents
loading

Table of Contents