Time Data Conversion (From Hour/Minute/Second To Second) (Second(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.15.5
Time data conversion (from Hour/Minute/Second to Second)
(SECOND(P))
SECOND(P)
SECOND
SECONDP
Setting
Data
S
Function
(1) Converts the time data stored in the area starting from the device designated by
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:
Operation Error
(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.
• The data set by
• The device specified by
(For the Universal model QCPU, LCPU.)
Command
Command
: Head number of the devices where the clock data before conversion is stored (BIN 16 bits)
S
: Head number of the devices where the clock data after conversion will be stored (BIN 32 bits)
D
Internal Devices
R, ZR
Bit
Word
––
D
S
Hour
S
+1
Minute
S
Second
+2
S
4
+1
S
29
S
31
+2
and is outside the setting range.
S
exceeds the range of the corresponding device.
S
High
Basic
performance
SECOND
SECONDP
J
\
U
\G
Bit
Word
––
Data range
D
+1
(0 to 23)
(0 to 59)
Second
(0 to 59)
D
1
16171
SECOND(P)
Process
Redundant Universal
S
D
S
D
Zn
Constants
Other
––
––
to
S
.
D
D
D
(Error code: 4100)
(Error code: 4101)
7-351
1
2
LCPU
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents