Features CoE
Depending on the main PDO/optional PDOs further settings can be selected in the CoE list (CAN over EtherCAT).
Parameterization via the CoE list (CAN over EtherCAT) Please note the following general CoE information when using/manipulating the CoE parameters: |
The following CoE settings are possible from object 0x8010 and are shown below in their default settings:
The parameters are described on page object description and parameterization.
Frequency
- The time window for the frequency calculation and the resolution can be parameterized in CoE objects 0x8010:11, 0x8010:13, 0x8010:15, 0x8010:17.
- The positive edges of track A are counted within the specified timeframe and the next edge including the time up to it are counted. The waiting time can be set in CoE object 0x8010:17 “Frequency Wait Time” (unit: ms). The default value is 1.6 sec. This is also the maximum value.
- The time window is 10 ms (default), min. 1 µs. With the default setting it is possible to measure frequencies up to approx. 800 kHz. At higher frequencies a smaller value must be selected for the timeframe.
- The time is measured with a resolution of 100 ns.
- This calculation is carried out in the slave without reference to the distributed clocks system. It is therefore independent of the DC mode.
- No frequency measurement is possible if the counter is blocked by the gate. In this case the period can be measured regardless.
- If an encoder signal only is only present at input A/A and the frequency/period is to be measured, the terminal must be set to “Up/Down Counter” in CoE 0x8010:03.
- A C or external reset restarts the frequency measurement. The last frequency value remains unchanged until a new frequency value is determined.
Frequency measurement
- Basic unit 1 µs: all window sizes
Measurement sequence
- The measurement starts with a positive edge at track A. The current counter value and time (resolution: 100 ns) are stored.
- After the measuring window time has elapsed (index 0x8010:11), the system waits for the following rising edge at track A or a maximum of 1.6 sec or the time from 0x8010:17
- The frequency is calculated from the edge difference and the actual elapsed time.
Period calculation
- This calculation is carried out in the slave without reference to the distributed clocks system. It is therefore independent of the DC mode.
- In each cycle the interval between two positive edges of input A is counted with a resolution of 100 ns.
- If no edge change occurs for approx. 1.6 s, any period specification is cancelled.
Frequency and period measurement From the explanatory notes above it is apparent that the frequency measurement can measure the current axis status (velocity) significantly more accurately than the period measurement. Frequency measurement is therefore preferable, if possible. |
Latch
- Activation of latch C input (“C”) and saving (“latching”) of the counter value (index 0x70n0:01)
- The counter value is saved at the first external latch pulse (positive edge at input “C”) after the bit has been set (TRUE) in index 0x7010:01 (has priority before 0x7010:02 / 0x7010:04). The subsequent pulses at the other inputs have no influence on the latch value in index 0x6010:12 if the bit is set.
- Note for “Latch C valid” bit: A new counter value at the latch input can only be written once the value of the “Latch C valid” bit (index 0x6010:01) is FALSE.
- Activation of the external latch input (“gate/latch”) and latching of the counter value (index 0x7010:02, 0x7010:04)
- The counter value at the latch input (Index 0x6010:12) will be saved upon the first external latch pulse with a rising edge if the bit (TRUE) is set in index 0x7010:02.The subsequent pulses have no influence on the latch value in index 0x6010:12.
- The counter value at the latch input (Index 0x6010:12) will be saved upon the first external latch pulse with a falling edge if the bit (TRUE) is set in index 0x7010:04. The subsequent pulses have no influence on the latch value in index 0x6010:12.
- Note for "Latch extern valid" bit: A new counter value at the latch input can only be written once the value of the “Latch extern valid” bit (index 0x6010:02) is FALSE.
Reset
- Counter reset (index 0x8010:01, 0x8010:02, 0x8010:10): For a counter reset via input C set the bit in index 0x8010:01, for a reset via the external latch input set the bit in index 0x8010:02.
- The functions “Enable C reset” (0x8010:01) and “Enable extern reset” (0x8010:02) cannot be activated simultaneously.
- Note for “Extern reset polarity”, index 0x8010:10: The edge for setting the counter to zero can be selected via index 0x8010:10.
Bit not set: counter is set to zero with falling edge.
Bit set: counter is set to zero with rising edge.
Up/down counter
- The mode (encoder or up/down counter) is set via the CoE objects (profile-specific objects, tab CoE - Online, index 0x8010:03 “Enable up/down counter”). Click on the corresponding row of the index to be parameterized, enter 1 in the SetValue dialog and confirm with OK.
- Set the gate polarity accordingly via object 0x8010:04.
- An additional option for reversing the rotation direction is available by setting the bit in index 0x8010:0E.
Overflow/underflow
- Overflow/underflow control is inactive in combination with an activated reset function (C/external).
- The underflow bit (0x6010:04) is set if an underflow ...00 →...FF occurs. It is reset if 2/3 of the counter range are underrun.
- The overflow bit (0x6010:05) is set if an overflow FF...→ 00... occurs. It is reset if 1/3 of the counter range is exceeded.
Open circuit detection
- A separate open circuit detection can be activated for each of the channels A, B and C (index 0x8010:0B, 0x8010:0C, 0x8010:0D).
- Open circuit detection is activated for channels A and B by default.
- A differential voltage of typically -1.5 V >Vid > +1.5 V is detected as an open circuit.
- If an open circuit is detected, it is indicated as process data open circuit = TRUE. The bit in object 0x6010:07 is set. An open circuit is indicated separately in indices 0xA010:01 (track A), 0xA010:02 (track B) and 0xA010:03 (track C).
- TxPDO state also becomes TRUE if an open circuit is detected, since invalid data have to be assumed.
Notice | |
Open circuit detection vs. single-ended lines (TTL interface) The open circuit detection does principally not work with single-ended lines (TTL interface). |
Micro-increments
- Works with and without distributed clocks, but is only meaningful in conjunction with one of the DC modes
- By setting the counter value only the integer component can be modified.
- The principle:
The highly constant query cycles (accuracy: 100 ns) of the distributed clocks systems enable the terminal to interpolate axis positions between the counted encoder increments from a certain speed. The interpolation resolution is 8 bit, corresponding to 256 values. A standard encoder with 1,024 bars with 4-fold evaluation and micro-increments thus becomes a high-resolution axis encoder with 4096 * 256 = 1,048,567 bars.
Underrunning of the minimum velocity is indicated by the object 0x6010:08 (extrapolation stall) in the process data.