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

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Time data conversion (from second to hour/minute/second)

HOUR(P)
High
Basic
Process
Redundant Universal
performance
HOUR
HOURP
(S): Head number of the devices where clock data before conversion is stored (BIN 32 bits)
(D): Head number of the devices where the clock data after conversion will be stored (BIN 16 bits)
Setting
Internal device
data
Bit
Word
(S)
(D)
Processing details
• Converts the data in seconds stored in the device number designated by (S) to an hour/minute/second format, and stores
the conversion result into the area starting from the device designated by (D).
Data range
S
S
1
Second
(0 to 86399)
For example, if 45325 seconds were the value designated, the conversion operation would be conducted as follows:
S
+1
S
45325
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
Error details
code
4100
The value set for (S) is not within the setting range.
4101
The range of the devices specified by (S) or (D) has exceeded the range of
the corresponding devices.
LCPU
Command
Command
R, ZR
J\
Bit
Word
Data range
D
Hour
(0 to 23)
Minute
D
+1
(0 to 59)
Second
D
+2
(0 to 59)
D
12
D
+1
35
D
+2
25
S
D
HOUR
HOURP
S
D
U\G
Zn
Q00J/
QnH
QnPH
QnPRH
Q00/
Q01
7 APPLICATION INSTRUCTIONS
7.15 Clock Instructions
Constant
Others
K, H
QnU
LCPU
693
7

Advertisement

Table of Contents
loading

Table of Contents