Table of Contents - TG Drives
Table of Contents - TG Drives
Table of Contents - TG Drives
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
172<br />
Counter<br />
COUNTER<br />
Group Group<br />
No.<br />
Description<br />
EXTENDED REGISTER GROUPS<br />
Counter 57 The counter group can be configured to count an<br />
external hardware event, measure frequency, or to<br />
generate a high-resolution time count.<br />
The source signal can be an internal frequency <strong>of</strong> 10<br />
Mhz or an external digital input.(Di1 or Encoder Zero<br />
pulse)<br />
GENERAL<br />
The DMC 2 can utilize an internal HW counter to count high frequencies.<br />
FUNCTION<br />
A hardware resource within the CPU is used to count every edge on a source<br />
signal. The frequency is derived as a number <strong>of</strong> edges counted during a specified<br />
timebase and then scaled. A prescaler is implemented to adjust the scale.<br />
Be aware that the frequency value is only updated once every timebase period,<br />
which means that the value <strong>of</strong> Counter.Freq is not valid until at least one<br />
period<br />
has elapsed.<br />
RELATED ITEMS<br />
Capture.Mode<br />
EXAMPLE USAGE<br />
Measure the frequency <strong>of</strong> an external signal connected to the Incremental Encoder<br />
Interface:<br />
Capture.Mode,8<br />
Counter.mode,3<br />
;redirect zero pulse input to counter<br />
;activate with external source<br />
Counter.Timebase,100 ;100 mS timebase for counting<br />
GROUP MEMBERS (GROUP 57)<br />
Group.Member Member<br />
No.<br />
Range Ability Default<br />
Counter.Mode 0 0..256 R (W) 0<br />
b0 Enable or disable Counter group.<br />
0 = Disabled.<br />
1 = Enable.<br />
b1 Counting source.<br />
User's Manual 5.1 Inmotion Technologies AB<br />
Doc. No.9032 0027 01 (B), Rev. 11.07.2001