Delta AH500 Programming Manual page 539

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

Example 1:
The 16-bit instruction HOUR: When X0.0 is ON, the timer starts to count. When the time for which
X0.0 has been ON reaches 100 hours, Y0.0 is ON. The current time is recorded in D0, and the
current time which is less than one hour is recorded in D1. D2 is for system use. The value in it can
not be altered. Otherwise, an error will occur.
Example 2:
The 32-bit instruction DHOUR: When X0.0 is ON, the timer starts to count. When the time for which
X0.0 has been ON reaches 4000 hours, Y0.0 is ON. The current time is recorded in (D1, D0), and
the current time which is less than one hour is recorded in D2. D3 is for system use. The value in it
can not be altered. Otherwise, an error will occur.
Additional remark:
1.
When S is less than or equal to 0, the instruction is not executed, and the state of the output
device is unchanged.
2.
If the value in D
used in the instruction HOUR is less than 0, the state of the output device is
1
unchanged.
3.
If D
+2 used in the instruction HOUR exceeds the device range, the operation error occurs, the
1
instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003.
4.
If the value in (D
+1, D
1
device is unchanged.
5.
If D
+3 used in the instruction DHOUR exceeds the device range, the operation error occurs,
1
the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003.
6.
If the operand D
used during the execution of the 16-bit instruction is declared in ISPSoft, the
1
data type will be ARRAY [3] of WORD/INT.
7.
If the operand D
used during the execution of the 32-bit instruction is declared in ISPSoft, the
1
data type will be ARRAY [2] of DWORD/DINT.
) used in the instruction DHOUR is less than 0, the state of the output
1
C ha pt er 6 A p pl i e d In s tr uc t io ns
6 - 3 7 1

Advertisement

Table of Contents
loading

Table of Contents