17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

169 D HOUR Hour meter<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong><br />

SE<br />

Type<br />

Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F<br />

S * * * * * * * * * * *<br />

D 1 *<br />

D 2 * * *<br />

HOUR: 7 steps<br />

DHOUR: 13 steps<br />

PULSE 16-bit 32-bit<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE SE SE <strong>SX2</strong><br />

Operands:<br />

S: Set-point value for driving the output device (Unit: hour) D 1 : Current time being measured<br />

D 2 : Output device<br />

Explanations:<br />

1. HOUR instruction drives the output device D 2 when the measured current time D 1 reaches the<br />

set-point value in S.<br />

2. Range of S: K1~K32,767; unit: hour. Range of D 1 in 16-bit instruction: K0~K32,767. Range of<br />

D 1 +1 (current time less than an hour): K0 ~K3,599; unit: second.<br />

3. When the ON-time of the drive contact reaches the set-point value, output device will be ON.<br />

The instruction can be applied for controlling the working hours of machine or conducting<br />

preventive maintenance.<br />

4. After output device is ON, the current time will still be measured in D 1 .<br />

5. In 16-bit instruction, when the current time measured reaches the maximum 32,767 hours /<br />

3,599 seconds, the timing will stop. To restart the timing, D 1 and D 1 + 1 have to be reset.<br />

6. In 32-bit instruction, when the current time measured reaches the maximum 2,147,483,647<br />

hours / 3,599 seconds, the timing will stop. To restart the timing, D 1 ~ D 1 + 2 have to be reset.<br />

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

8. HOUR instruction can be used for four times in the program.<br />

Program Example 1:<br />

In 16-bit instruction, when X0 = ON, Y20 will be ON and the timing will start. When the timing<br />

reaches 100 hours, Y0 will be ON and D0 will record the current time measured (in hour). D1 will<br />

record the current time less than an hour (0 ~ 3,599; unit: second)..<br />

X0<br />

Y20<br />

Y20<br />

HOUR<br />

K100<br />

D0<br />

Y0<br />

3-387

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!