Time Data Conversion (From Second To Hour/Minute/Second) (Hour(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.6
Time data conversion (from Second to Hour/Minute/Second)
(HOUR(P))
HOUR(P)
HOUR
HOURP
Setting
Data
S
D
Function
(1) Converts the data in seconds stored in the device number designated by
minute/second format, and stores the conversion result into the area starting from the device
designated by
For example, if 45325 seconds were the value designated, the conversion operation would
be conducted 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 clock data before conversion is stored (BIN 32 bits)
S
: Head number of the devices where the clock data after conversion will be stored (BIN 16 bits)
D
Internal Devices
R, ZR
Bit
Word
––
.
D
Data range
S
S
1
Second
(0 to 86399)
S
+1
S
45325
and is outside the setting range.
S
exceeds the range of the corresponding device.
D
High
Basic
performance
HOUR
HOURP
J
\
U
\G
Bit
Word
––
Data range
D
Hour
(0 to 23)
D
Minute
+1
(0 to 59)
D
Second
+2
(0 to 59)
D
12
D
+1
35
D
+2
25
HOUR(P)
Process
Redundant Universal
LCPU
S
D
S
D
Constants
Zn
Other
K, H
––
––
––
to an hour/
S
(Error code: 4100)
(Error code: 4101)
7-353
1
2
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