Delta AS Series Programming Manual page 775

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
Explanation
1.
This instruction is for AS02HC-A only. You can start, stop the counter as well as set up and edit the counter value.
This instruction is available for PLC with FW V1.08.or later and ISPSoft V3.10 or later.
2.
Use this instruction with DHCCNT instruction. When executing DHCCNT instruction, the counting starts. And you can
use DHCCAP to capture the counter value. When DHCCNT stopped, the counter value stops updating. And the
captured value stays the same.
3.
Before executing this instruction, you need to set up TrgSel. Once En is activated, the PLC scans the values in TrgSel
immediately. If you need to edit the values in TrgSel, set new values in TrgSel and stop the instruction and then
execute the instruction again.
4.
Module: The module number that is connected to the right side of PLC directly or connected to the remote module
that acts as PLC, e.g. the first connected module is module number 1, the second connected module is module number
2. Up to 32 modules can be connected and counted and each type of modules should be included in the count.
5.
ChNo: Channel number for counter, channel 1 is number 1; channel 2 is number 2.
6.
TrgSel: Trigger modes and functions
TrgSel
Triggered by the Z phase input
points of the appointed
_6
channel
0
Triggered by the other
channel's comparing output
1
instruction (Match1 / Match 2
of DHCCMP instruction)
7.
Capture the current counter value and store it in Capt 1 or Capt 2. When TrgSel = 0, it captures the counter value
when the Z-phase input point is rising-edge triggered and stores the value in Capt1 and it captures the counter value
when the Z-phase input point is falling-edge triggered and stores the value in Capt2. When TrgSel = 1, it captures the
counter value when Match 1 is OFF  ON in the other channel and store the captured value in Capt1 it captures the
counter value when Match 2 is OFF  ON in the other channel and store the captured value in Capt2.
6-496
Function
You need to set the setting value in Z Phase input of the appointed
channel to Capture in HWCONFIG to work with this trigger mode.
Supposing you execute DHCCAP instruction on channel 2 and set
TrgSel = 1, and use channel 1 for the execution of DHCCMP. When
Match 1/ Match 2 is OFF  ON on channel 1, the channel 2 is
triggered to capture the current value and stores it in Capt 1 or Capt 2.
Note: Even if you have set the setting value in Z Phase input of the
appointed channel to Capture in HWCONFIG, when TrgSel = 1, this
capture function of external input point is invalid.
Description
ChNo
Trigger Source
1
CH1 Z phase
2
CH2 Z phase

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents