Delta AS Series Programming Manual page 776

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

8.
Flags of Cmplt1 and Cmplt2 are indicators to see if the captures in Capt1 and Capt2 are complete. When
Cmplt1/Cmplt2 is OFF  ON , it indicates the values in Cmplt1/Cmplt2 are updated. You can clear the flag to OFF.
Even if you did not clear the Cmplt flags to OFF, the captured values can still be updated.
If En ON  OFF, it indicates the capture function is disabled. The values in Capt1 and Capt2 will not be updated. The
9.
flags of Cmplt1 and Cmplt2 will be cleared off.
10. Refer to the following table for more details when any of the Error flag is ON.
ErrCode
This function is NOT available for this module.
16#1400
The value is invalid or out of range.
16#1401
No response from the module. Communication timeout.
16#1402
HWCONFIG configuration error. Instruction stops.
16#1403
There is no such counting channel for the HC module.
16#1404
Input interface not selected. Instruction stops.
16#1405
16#1407
Invalid value in TrgSel
One of the counting channel of the HC module is executing capturing. Other channels cannot
16#1411
perform the same task at the same time.
Example 1: Capture the counter value when the Z phase input point is triggered.
1.
You need to set the setting value in Z phase of the Channel 1 to Capture in HWCONFIG to work with this trigger
mode.
2.
Set the value in TrgSel to 0 for DHCCAP instruction. When M0 = ON, DHCCAP instruction starts to wait for the Z
phase input point to be rising-edge or falling-edge triggered.
3.
When the Z phase input point of channel 1 is rising-edge triggered, it captures the counter value 1800 and stores the
value in Capt1. And the flag of Cmplt1 is OFF  ON.
4.
When the Z phase input point of channel 1 is falling-edge triggered, it captures the counter value 6000 and stores
the value in Capt2. And the flag of Cmplt2 is OFF  ON.
5.
The Cmplt flag is not cleared to OFF. New captured value is still updated in Capt1 and Capt2. Here you can see the
new captured value 8500 is updated in Capt1, when the Z phase input point of channel 1 is falling-edge triggered.
6.
The Z phase input point of channel 1 is falling-edge triggered again, it captures the counter value 11000 and stores
the value in Capt2. And the flag of Cmplt2 is OFF  ON.
Cha p ter 6 App l ied Ins truc tio ns
Description
6_
6-497

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents