EasyManua.ls Logo

Delta AH500 - 12.2 Specifications; PROFIBUS DP interface

Delta AH500
749 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Applied Instructions
6-371
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
1
used in the instruction HOUR is less than 0, the state of the output device is
unchanged.
3. If D
1
+2 used in the instruction HOUR exceeds the device range, the operation error occurs, the
instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003.
4. If the value in (D
1
+1, D
1
) used in the instruction DHOUR is less than 0, the state of the output
device is unchanged.
5. If D
1
+3 used in the instruction DHOUR exceeds the device range, the operation error occurs,
the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003.
6. If the operand D
1
used during the execution of the 16-bit instruction is declared in ISPSoft, the
data type will be ARRAY [3] of WORD/INT.
7. If the operand D
1
used during the execution of the 32-bit instruction is declared in ISPSoft, the
data type will be ARRAY [2] of DWORD/DINT.

Table of Contents

Other manuals for Delta AH500

Related product manuals