579
SECOND, SECONDP
1
2
3
4
4
6
7
8
7.15
Clock instr
uct
ions
7.15.5
SECO
N
D, SECONDP
: Head number of the devices where the clock data before conversion is stored (BIN 16 bits)
: Head number of the devices where the clock data after conversion will be stored (BIN 32 bits)
F
unct
i
on
(1) Converts the time data stored in the area starting from the device designated by to seconds and stores the conversion
result into the device designated by .
For example, if the value were 4 hours, 29 minutes, and 31 seconds, the conversion would be made as follows:
Operat
i
on
E
rror
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Program
E
xamp
l
e
(1) The following program converts the clock time data read from the clock element into second when X20 is turned ON, and
stores the result at D100 and D101.
[Ladder Mode]
[List Mode]
7.15.5
SECOND, SECONDP
Time data conversion (from Hour/Minute/Second to
Second)
7.15.5
SECOND, SECONDP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
––
––
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The value set for is not within the setting range.
––
––
––
––
4101
The range of the device specified by exceeds the range of the
corresponding device.
––
––
––
––
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
S
E
CO
N
DP
S
D
S
D
SECONDP
SECOND
S
E
CO
N
D
S
D
S
D
S
D
H
our
M
i
nute
Second
+
1
+
2
(0
to
23)
(0
to
59)
(0
to
59)
Second
+
1
S
D
S
S
D
Data
range
4
29
31
16171
1
D
S
S
S
D
+
1
+
2
S
S
Step
I
nstruct
i
on
De
vi
ce