9 Application Instructions API 150-199 API 169 Operands: S : Period of time when D 2 is On (in hour) D 1 : Current value being measured (in hour) D 2 : Output device Explanations: 1. If S is used in device F, only 16-bit instruction is applicable. 2. D 1 will occupy 2 consecutive points. D 1 + 1 uses 16-bit register in 16-bit or 32-bit instruction. 3. See the specifications of each model for their range of use. 4. HOUR instruction can be used 4 times of SA/SX/SC. 5. Range of S : K1 ~ K32,767 (unit: hour); range of D 1 : K0 ~ K32,767 (unit: hour). D 1 + 1 refers to the current time that is less than an hour (range: K0 ~K3,599; unit: second). 6.
This instruction times the time and when the time reaches the set time (in hour), D 2 will be On. This function allows the user to time the operation of the machine or conduct maintenance works. 7. After D 2 is On, the timer will resume the timing. 8. In the 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, D 1 and D 1 + 1 have to be reset to “0”. 9. In the 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, D 1 ~ D 1 + 2 have to be reset to “0”. 10.
There is no limitations on the times of using this instruction in the program for EH series MPU; however, only 4 instructions can be executed at the same time. In 16-bit instruction, when X0 = On, Y10 will be On and the timing will start. When the timing reaches 100 hours, Y0 Program Example 1: will be On and D0 will record the current time measured (in hour) and D1 will record the current time that is less than an hour (0 ~ 3,599; unit: second). X0 Y10 Y10 DVP-PLC Application Manual 9-77 Mnemonic Operands Function D HOUR Hour Meter Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F HOUR: 7 steps DHOUR:
13 steps S * * * * * * * * * * * D 1 * D 2 * * * PULSE 16-bit 32-bit SA SX SC EH SV EH3 SV2 ES EX SS SV EH3 SV2 ES EX SS EH3 ES EX SS SA SX SC EH SA SX SC EH SV SV2 0 HOUR K100 D0 Y0