Iec 61131-3 Second edition 2003-01 Programmable controllers – Part 3: Programming languages


a ADD b + b DATE_AND_TIME TIME DATE_AND_TIME 3b


Download 1.35 Mb.
Pdf ko'rish
bet59/158
Sana17.06.2023
Hajmi1.35 Mb.
#1528208
1   ...   55   56   57   58   59   60   61   62   ...   158
Bog'liq
ourdev 569653

3a
ADD
b
+
b
DATE_AND_TIME
TIME
DATE_AND_TIME
3b
ADD_DT_TIME
+
b
DATE_AND_TIME
TIME
DATE_AND_TIME
4a
c,d
SUB
-
TIME
TIME
TIME
4b
c,d
SUB_TIME
-
TIME
TIME
TIME
5a
SUB
b
-
b
DATE
DATE
TIME
5b
SUB_DATE_DATE
-
b
DATE
DATE
TIME
6a
SUB
b
-
b
TIME_OF_DAY
TIME
TIME_OF_DAY
6b
SUB_TOD_TIME
-
b
TIME_OF_DAY
TIME
TIME_OF_DAY
7a
SUB
b
-
b
TIME_OF_DAY
TIME_OF_DAY
TIME
Copyright International Electrotechnical Commission 
Provided by IHS under license with IEC
Not for Resale
No reproduction or networking permitted without license from IHS
--``````-`-`,,`,,`,`,,`---


61131-3 
 IEC:2003(E)
– 65 –
Table 30 - Functions of time data types
Numeric and concatenation functions
No.
Name
Symbol
IN1
IN2
OUT
7b
SUB_TOD_TOD
-
b
TIME_OF_DAY
TIME_OF_DAY
TIME
8a
SUB
b
-
b
DATE_AND_TIME
TIME
DATE_AND_TIME
8b
SUB_DT_TIME
-
b
DATE_AND_TIME
TIME
DATE_AND_TIME
9a
SUB
b
-
b
DATE_AND_TIME
DATE_AND_TIME
TIME
9b
SUB_DT_DT
-
b
DATE_AND_TIME
DATE_AND_TIME
TIME
10a
MUL
b
*
b
TIME
ANY_NUM
TIME
10b
MULTIME
*
b
TIME
ANY_NUM
TIME
11a
DIV
b
/
b
TIME
ANY_NUM
TIME
11b
DIVTIME
/
b
TIME
ANY_NUM
TIME
12
CONCAT_DATE_TOD
DATE
TIME_OF_DAY
DATE_AND_TIME
Type conversion functions
13
a
14
a
DT_TO_TOD
DT_TO_DATE
NOTE 1
Non-blank entries in the Symbol column are suitable for use as operators in textual
languages, as shown in tables 52 and 55.
NOTE 2
The notations IN1, IN2, ..., INn refer to the inputs in top-to-bottom order; OUT refers to
the output.
NOTE 3
It is possible to type the functions MULTIME and DIVTIME, e.g., the operands of
MULTIME_REAL would be of type TIME and REAL, respectively.
NOTE 4
The effects of conversion between time data types and types STRING and WSTRING
are defined in footnote (e) of table 22.
NOTE 5
The effects of type conversions between time data types and other data types not
defined in this table are implementation-dependent.
a
The type conversion functions shall have the effect of “extracting” the appropriate data, e.g., the
ST language statements
X := DT#1986-04-28-08:40:00 ;
Y := DT_TO_TOD(X) ;
W := DT_TO_DATE(X);
shall have the same result as the statements
X := DT#1986-04-28-08:40:00 ;
W := DATE#1986-04-28 ;
Y := TIME_OF_DAY#08:40:00;.
b
This usage is deprecated and will not be included in future editions of this standard.
c
When the named representation of a function is supported, this shall be indicated by the suffix “n”
in the compliance statement. For example, “1n” represents the notation “ADD”.
d
When the symbolic representation of a function is supported, this shall be indicated by the suffix
“s” in the compliance statement. For example, “1s” represents the notation “+”.
Copyright International Electrotechnical Commission 
Provided by IHS under license with IEC
Not for Resale
No reproduction or networking permitted without license from IHS
--``````-`-`,,`,,`,`,,`---


– 66 –
61131-3 
 IEC:2003(E)

Download 1.35 Mb.

Do'stlaringiz bilan baham:
1   ...   55   56   57   58   59   60   61   62   ...   158




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling