Advantech AMAX-5000 Series User Manual page 128

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.
6.1.7.4
Set Counter Value
The counter value can be overwritten to a desired number by setting at address
COn_Set_Counter_Value (0x70n0:11) and COn_Set_Counter (0x70n0:01) no matter
if the counter is counting or not. This feature is usually used for restoring the last
incremental encoder value after system reboot. Once the counter value is set, the
CIn_Set_Counter_Done (0x60n0:01) will be changed to "1".
Take Ch0 for example, the start counter value can be overwritten by following steps:
Step1: Set CO0_Set_Counter_Value (0x7000:11) to 0x00
Step2: Enable CO0_Set_Counter (0x7000:01)
Step3: When the CI0_Set_Counter_Done (0x6000:01) is true, the counter value is
changed
Step4: CO0_Set_Counter (0x7000:01) should be set to "0" before the next change
Step5: CI0_Set_Counter_Done (0x6000:01) will set to False along with
CO0_Set_Counter
Note!
The counter value should not be set over Reload Counter Value.
6.1.7.5
Counter Frequency Measurement
The increment (or decrement) frequency of counter value can be read by CIn_Fre-
quency_Value (0x60n0:13), the value will be updated every second. This feature is
often used to determine velocity.
AMAX-5000 Series User Manual
Figure 6.12 Set Counter Value
116

Advertisement

Table of Contents
loading

Table of Contents