Delta AH500 — 6.17.2 Explanation of Real-time Clock Instructions

Chapter 6 Applied Instructions Symbol: S : Time after which the output device is ON Word/Double word D 1 : Current time Word/Double word D 2 : Output device Bit Explanation: 1. S : The time after which the output device is ON (Unit: Hour) D 1 : The current time (Unit: Hour) D 2 : The output device 2. S : The time after which the output device is ON (Unit: Hour) The operand S used in the 16-bit instruction should be within the range between 1 and 32,767. The operand S used in the 32-bit instruction should be within the range between 1 and 2,147,483,647. 3. The instruction HOUR: D 1 : The current time (Unit: Hour) The value in D 1 should be within the range between 0 and 32,767. D 1 +1:

The current time which is less than one hour (Unit: Second) The value in D 1 +1 should be within the range between 0 and 3,599. D 1+2 is for system use only. The value in it can not be altered when the instruction is executed. Otherwise, an error will occur. When the current time is 32,767 hour 3,599 second, the timer stops counting. After the values in D 1 and D 1 +1 are cleared to 0, the timer starts to count again. 4. The instruction DHOUR : ( D 1 +1, D 1 ): The current time (Unit: Hour) The value in ( D 1 +1, D 1 ) should be within the range between 0 and 2,147,483,647. D 1 +2: The current time which is less than one hour (Unit:

Second) The value in D 1 +1 should be within the range between 0 and 3,599. D 1 +3 is for system use only. The value in it can not be altered when the instruction is executed. Otherwise, an error will occur. When the current time is 2,147,483,647 hour 3,599 second, the timer stops counting. After the values in D 1 , D 1 +1, and D 1 +2 are cleared to 0, the timer starts to count again. 5. When the time for which the input contact has been ON reaches the setting time, the ouput device is ON. When the time for which the input contact has been ON does not reach the setting time, the ouput device is not ON. This function allows users to manage the running time of the machine and the maintenance.

6. After the output device is ON, the timer countinues to count. 7. When the on-line editing is used, please reset the conditional contact to initialize the instruction. 6-371 API Instruction code Operand Function 1604 D HOUR S, D , D 1 2 Running-time meter Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S             D 1        D 2         Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (7 steps) - AH500 AH500