EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Hour Meter

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
696
7 APPLICATION INSTRUCTIONS
7.15 Clock Instructions
Hour meter
DHOURM
Processing details
(D2) turns ON when the cumulative ON time of command input exceeds the time (in increments of hour) specified by (S).
The current value is stored in increments of hour in the device specified by (D1)+1, (D1) and the current value less than a
hour is stored in increments of second in the device designated by (D1)+2.
The change of clock data does not affect the operation of the DHOURM instruction.
The following programs cannot be used by the DHOURM instruction.
Interrupt programs
Fixed scan execution type programs
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.
Program example
The sample program turns on Y5 when the cumulative ON time of X0 exceeds 72 hours.
QnUDVCPU, LCPU: The serial number (first five digits) is "16112" or later.
(S): Start number of the device where the data of the time (to be set in increments of hour) during which (D2) is turned ON (BIN 32 bits)
(D1): Start number of the device where the data of the current value in increments of hour is stored (BIN 32 bits)
(D2): Start bit device number to which an alarm is to be output (Bit)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S) 
(D1) 
(D2) 
Measurement is continued even after the alarm output (D2) turns ON.
Measurement is stopped when the current values (D1)+1 and (D1) per hour reach the maximum value (2147483647) and the current value (D1)+2 per
second reaches the maximum value (3599). To continue measurement, clear the current value in the devices specified by (D1) to (D1)+2.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101 The data specified by (S) is smaller than 0.
The device specified by (D1) exceeds the range of the number of device
points.

[Ladder Mode]
Basic
High
performance
Process
Redundant
Universal
Ver.
LCPU
Ver.
DHOURM
S D1 D2
DHOURM
Command
DHOURM
SD1D2
Command input

Table of Contents

Related product manuals