Advantech AMAX-5000 Series User Manual page 125

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

Advertisement

Reset Underflow and Overflow flag
CIn_Over_Flow will be clear to "0" automatically once the counter value over 1/3 of
the 0xFFFFFFFF or Cn_Reload_Counter_Values (when the reload counter is set)
after overflow flag is triggered.
CIn_Under_Flow will be clear to "0" automatically once the counter value under 2/3 of
the 0xFFFFFFFF or Cn_Reload_Counter_Values (when the reload counter is set)
after underflow flag is triggered.
Reload Counter Value
Users can set the Cn_Reload_Counter_Values (0x80n0:07) to adjust the counter
boundaries when Cn_Enable_Register_Reload (0x80n0:06) is enabled. The process
of boundaries setting and the underflow/overflow status reset count can refer to
below example.
Example: Set Reload Counter Value to 0x00003000
Step1: Set C0_Reload_Counter_Values to 0x00003000
Step2: Set C0_Enable_Register_Reload to Enable
Step3: Counter range will become 0 ~ 0x00003000
Table 6.6: Reload Counter Definitions
Reload Register Reload Value
Enable
Disable (default) NA
6.1.7.2
Latch Counter Value
The counter values can be latched by external signals. Both L or Z pin can be config-
ured independently as an latch signal input pin, the latched counter value can be
read at CI0_Latch_Values(0x6000:12). The active polarity (Rising or Falling Edge-
triggered) of the latch input signal can also be configured. All related configurable
parameters and the status of Z and L pin are listed below:
Table 6.7: Latch Counter Parameters
Enable Latch
Enable Latch Valid
Active Polarity
Status
* Active Polarity: 0: Rising Edge, 1: Falling Edge
n=0~1 for Ch0~1
Counter Boundary
0x00003000
0 to 0x00003000
0 to 0xFFFFFFFF
Z pin
COn_Enable_Latch_Z
(0x70n0:02)
CIn_Latch_Z_Valid
(0x60n0:02)
Cn_Z_Pulse_Active_Polarity
(0x80n0:03)
CIn_Status_of_Input_Z
(0x60n0:0C)
113
Overflow Status
Underflow
Reset
Status Reset
0x00001000
0x00002000
0x55555555
0xAAAAAAAA
L pin
COn_Enable_Latch_External
(0x70n0:03)
CIn_Latch_External_Valid
(0x60n0:03)
Cn_External_Latch_Active_Polarity
(0x80n0:05)
CIn_Status_of_Input_External_Latch
(0x60n0:11)
AMAX-5000 Series User Manual

Advertisement

Table of Contents
loading

Table of Contents