12.6 SECTM (Calculation: Seconds Data from the Base Time → Clock
Data)
■
Ladder diagram
■
List of operands
Operand Description
S Device address of seconds data from the base time
D
Starting device address of clock data (available data range: 2000/1/1 00:00:00 to 2099/12/31
23:59:59)
(Note 1) For details of clock data, refer to “"19.2 Clock and Time Data"”
■
Available devices (●: Available)
Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX K U H SF
D
F
" "
S ● ● ● ● ● ● ● ● ● ● ● ●
D ● ● ● ● ● ● ● ● ●
■
Outline of operation
● From the time elapsed from the base time, stored in the area starting with [S], clock data
(year, month, day, hours, minutes and seconds) is calculated.
● The calculation result is stored in the area starting with [D].
● The base time is 2001/1/1 00:00:00.
■
Processing
Example) Calculate data from 1,325,408,059 seconds
[S]…DT0 [D]…DT10
K 347100859
* 1 word
K 1
K 1
K 12
K 8
DT10
DT11
DT12
DT13
DT14
DT15
K 54
K 19
* 2 words
(Source seconds data)
DT0・DT1
(year)
(month)
(day)
(hours)
(minutes)
(seconds)
12.6 SECTM (Calculation: Seconds Data from the Base Time → Clock Data)
12-12 WUME-FP7CPUPGR-12