Hour Meter - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Hour meter

HOURM
High
Basic
Process
Redundant
performance
• QnUDVCPU, LCPU: The serial number (first five digits) is "16112" or later.
HOURM
(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 16 bits)
(D1): Start number of the device where the data of the current value in increments of hour is stored (BIN 16 bits)
(D2): Start bit device number to which an alarm is to be output (Bit)
Setting
Internal device
data
Bit
Word
(S)
(D1)
(D2)
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) and the current value less than a hour is
stored in increments of second in the device designated by (D1)+1.
Command input
HOURM
• Measurement is continued even after the alarm output (D2) turns ON.
• Measurement is stopped when the current value (D1) per hour reaches the maximum value (32767) and the current value (D1)+1 per second reaches the
maximum value (3599). To continue measurement, clear the current value in the devices specified by (D1) to (D1)+1.
• The change of clock data does not affect the operation of the HOURM instruction.
The following programs cannot be used by the HOURM 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.
Error
Error details
code
4101
The data specified by (S) is smaller than 0.
The device specified by (D1) exceeds the range of the number of device
points.
Program example
• The sample program turns on Y5 when the cumulative ON time of X0 exceeds 72 hours.
[Ladder Mode]
Ver.
Ver.
LCPU
Universal
Command
R, ZR
J\
Bit
S
D1
D2
HOURM
S
D1
U\G
Zn
Word
Q00J/
QnH
QnPH
Q00/
Q01
7 APPLICATION INSTRUCTIONS
D2
Constant
Others
K, H
QnPRH
QnU
LCPU
695
7.15 Clock Instructions
7

Advertisement

Table of Contents
loading

Table of Contents