Advantech AMAX-5000 Series User Manual page 146

Ethercat slice i/o modules
Hide thumbs Also See for AMAX-5000 Series:
Table of Contents

Advertisement

Blue are 0x6000, 0x7000, 0x8000 parameters.
Red are external signals.
n=0~1 for Ch0~1
Reset Underflow and Overflow flags
Over_Flow will be clear to "0" automatically once the counter value over 1/3 of the
0xFFFFFFFF
Under_Flow will be clear to "0" automatically once the counter value under 2/3 of the
0xFFFFFFFF
6.2.7.2
Latch Counter Value
The counter values can be latch by an external signal at AMAX-5081 latch input pin.
The latched counter value can be read at Latch_Value (0x6000:12). The active polar-
ity (Rising or Falling Edge-triggered) of latch input signal can also be configured.
Below example shows how to latch the counter value by an external signal at rising
edge under Pule/Direction Mode:
Step1: Enable rising edge-triggered at the address Enable_Latch_External_Rising
(0x7000:02) (*Enable Enable_Latch_External_Falling (0x7000:04) for falling edge-
triggered)
Step2: Check Latch_External_Valid (0x6000:02), if the bit is high, the counter value is
successfully latched by an external signal.
Step3: Read latch values at Latch_Value (0x6000:12)
Step4: Before next latch signal comes, the Enable_Latch_External_Rising
(0x7000:02) should be toggled once to clear the Latch_External_Valid (0x6000:02)
status.
Step5: Once the Latch_External_Valid (0x6000:02) bit is low, the module is ready for
the next latching signal.
Blue are 0x6000, 0x7000, 0x8000 parameters.
Red are external signals.
All related configurable parameters for Latch Counter are listed below:
AMAX-5000 Series User Manual
Figure 6.30 Latch Counter by Z pin
134

Advertisement

Table of Contents
loading

Table of Contents