1-49
Section 1 Specifications
7) TIME (duration)
This deals with the set value or current value of timer. Time data in the range from 0 to 4,294,967,295ms can be expressed.
Units are d (day), h (hours), m (minutes), s (seconds) and ms (milliseconds). You can combine them in various ways.
<Examples>
No. Type
Example
1
Without underscores
Basic format
TIME#14ms time#14s
2
Abbreviated format
T#14ms T#14s T#14m T#14h
t#25h15m t#5d14h12m18s3ms
3
With underscores
Basic format
TIME#25h_15m
time#5d_14h_12m_18s_3ms
4
Abbreviated format
t#5d _14h_12m_18s_3ms
t#25h _15m
No. Type
Example
1
DATE type
Basic format
DATE#1984-06-25
date#1984-06-25
Abbreviated format
D#1984-06-25
d#1984-06-25
2
TOD type
Basic format
TIME_OF_DAY#15:36:55
time_of_day#15:36:55
Abbreviated format
TOD#15:36:55
tod#15:36:55
3
DT type
Basic format
DATE_AND_TIME#1984-06-25-15:36:55
date_and_time#1984-06-25-15:36:55
Abbreviated format
DT#1984-06-25-15:36:55
dt#1984-06-25-15:36:55
No. Type
Example
1
Binary
representation
WORD#2#1010111110101111
DWORD#2#11110000111100001010111110001111
2
Hexadecimal
representation
WORD#16#0F0E
DWORD#16#FFFF000F
8) DATE (date)
The DATE data type handles date (year, month, day) data. A DATE occupies 32 memory bits and can represent date data from
the calendar years 1970 to 2106.
9) TOD (time of day)
The TOD data type handles time of day (hour, minute, second) data. A TOD occupies 32 memory bits and can represent time
data from 0:00:00 to 23:59:59. The data type of TIME_OF_DAY is the same as that of DT.
10) DT (date and time of day)
The DT data type handles date and time (year, month, day, hour, minute, second) data. A TOD occupies 32 memory bits and
can represent date and time data from the calendar years 1970 to 2106. The data type of TIME_AND_DAY is the same as that
of DT.
<Examples for DATE, TOD, and DATA:>
11) WORD (bit string of length 16)
A WORD has a size equal to 16 BOOLs (16 bits), each of which represents the ON or OFF state or 1 or 0.
12) DWORD (bit string of length 32)
A WORD has a size equal to 32 BOOLs (32 bits), each of which represents the ON or OFF state or 1 or 0.
<Examples of WORD and DWORD:>