Sectm (Calculation: Seconds Data From The Base Time → Clock Data) - Panasonic FP7 Series Command Reference Manual

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

12.6 SECTM (Calculation: Seconds Data from the Base Time → Clock Data)
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
Starting device address of clock data (available data range: 2000/1/1 00:00:00 to 2099/12/31
D
23:59:59)
(Note 1)
For details of clock data, refer to
Available devices (●: Available)
Operan
d
W
W
X
Y
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
* 2 words
DT0・DT1
12-12
""19.2 Clock and Time
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
(Source seconds data)
K 347100859
Data""
32-Bit
device:
TS
TE
U
W
WI
IX
C
C
M
O
S
E
Real
Integer
numbe
r
D
K
H
SF
F
* 1 word
DT10
K 12
(year)
DT11
K 1
(month)
DT12
K 1
(day)
DT13
K 8
(hours)
DT14
K 54
(minutes)
DT15
K 19
(seconds)
WUME-FP7CPUPGR-12
St
rin
g
Index
modifie
r
" "

Advertisement

Table of Contents
loading

Table of Contents