3. Instruction

Set

API

 

Mnemonic

 

 

Operands

 

 

Function

 

 

 

Controllers

 

169

D

 

HOUR

 

 

 

 

 

 

 

Hour meter

 

 

 

ES2/EX2 SS2 SA2 SX2

 

 

 

 

 

 

 

 

 

 

 

SE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Type

Bit Devices

 

 

 

 

Word devices

 

 

 

 

Program Steps

 

OP

 

 

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F

HOUR: 7 steps

 

S

 

 

 

 

 

 

*

*

*

*

*

*

*

*

*

*

*

DHOUR: 13 steps

 

D1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

D2

 

 

 

*

*

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

 

16-bit

 

32-bit

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

 

SE

SE

SE

Operands:

 

 

 

 

 

 

 

 

 

 

 

S: Set-point value for driving the output device (Unit: hour)

D1: Current time being measured

 

D2: Output device

 

 

 

 

 

 

 

 

 

 

 

Explanations:

1.HOUR instruction drives the output device D2 when the measured current time D1 reaches the set-point value in S.

2.Range of S: K1~K32,767; unit: hour. Range of D1 in 16-bit instruction: K0~K32,767. Range of

D1 +1 (current time less than an hour): K0 ~K3,599; unit: second.

3.When the ON-time of the drive contact reaches the set-point value, output device will be ON. The instruction can be applied for controlling the working hours of machine or conducting preventive maintenance.

4.After output device is ON, the current time will still be measured in D1.

5.In 16-bit instruction, when the current time measured reaches the maximum 32,767 hours / 3,599 seconds, the timing will stop. To restart the timing, D1 and D1 + 1 have to be reset.

6.In 32-bit instruction, when the current time measured reaches the maximum 2,147,483,647 hours / 3,599 seconds, the timing will stop. To restart the timing, D1 ~ D1 + 2 have to be reset.

7.If operand S uses device F, only 16-bit instruction is available.

8.HOUR instruction can be used for four times in the program.

Program Example 1:

In 16-bit instruction, when X0 = ON, Y20 will be ON and the timing will start. When the timing reaches 100 hours, Y0 will be ON and D0 will record the current time measured (in hour). D1 will record the current time less than an hour (0 ~ 3,599; unit: second)..

X0

Y20

Y20

HOUR K100 D0 Y0

3 - 3 8 7

Page 503
Image 503
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Hour, Bit Devices Word devices Program Steps