Process data and configuration

The principles for the oversampling function and the mode of operation of the EL5101-0011 with the use of the SYNC0 and SYNC1 pulses are explained in the section "Principles of the oversampling function".
The setting of the various parameters using the Beckhoff TwinCAT System Manager is described in the following chapter. The EL5101-0011 offers the following process data:

Process data and configuration 1:

EL5101-0011 - Process data (default)

Oversampling settings, distributed clocks (DC)

The oversampling factor can be set on the "DC" tab (see figure below). The oversampling factor n is set to 1 in the delivery condition. When an entry is selected in the dialog, the correct sampling ratio at distributed clock level and the correct number of process data to be transferred are set automatically.

Process data and configuration 2:

Sampling frequency

If an oversampling factor is required that does not appear in the list, the user has to specify the ratio between the SYNC0 pulse and the SYNC1 pulse within the permitted limits, based on the information found in "Principles of the oversampling function". Please refer to the note “Maximum sampling frequency / minimum cycle time”.

Process data and configuration 3:
Setting of the oversampling factor n = 4 and display of the process data to be transferred

The following sampling times / sampling frequencies apply to EL5101-0011:

Process data and configuration 4:

"StartTimeNextLatch"

The process data "StartTimeNextLatch" (index 1A01) is activated by default.
The “StartTimeNextlatch” process data is 32 bits wide. During each process data cycle the time is specified at which the next SYNC1 pulse and therefore the next block of sample values begins. “StartTimeNextLatch” thus changes in each cycle by the amount of that task cycle time with which this terminal is operated. This time specification is based on the terminal’s local Distributed Clocks time. The EL5101-0011 maps only the 64-bit distributed clocks time.
In this way all samples can be synchronized with other time data within the EtherCAT bus based on the known oversampling factor.

Sample:

The EL5101-0011 supplies in the regarded cycle with
cycle time = 1 ms (= 1,000,000 ns) and
oversampling factor n =  20,
a “StartTimeNextLatch” of 503,330,625,067,077,000dec and 20 measured values (counter value) of 32 bits each as process data.

The time of measurement of the 5th supplied position value is now to be determined, i.e. the Distributed Clocks time at which the 5th position value was determined.
The currently delivered set of 20 counter values was started at the time:

503,330,625,067,077,000 – 1,000,000 (cycle time) = 503,330,625,066,077,000 ns.
The time interval between the samples is 1.000.000/20 = 50.000 ns.
The 5th position value was thus determined at the time:
503,330,625,066,077,000 + ((5 - 1) * 50,000) = 503,330,625,066,027,000 ns

Special oversampling factor and Shift Time for the SYNC0 pulse

Notice

CAUTION! Risk of device damage!

If these settings are changed in the System Manager, no plausibility checks are carried out on the software side.
Correct function of the terminal with all conceivable setting options cannot be guaranteed.

Setting the counter value - referencing:

Since incremental encoders do not deliver an unambiguous position value after switching on, a homing must be carried out.
The EL5101-0011 offers the option to set the reference point manually via "Set counter" (index 0x7000:03).

“Set counter” (index 0x7000:03)

Open circuit detection

Further cyclic information

Furthermore, the EL5101-0011 offers the following cyclic information:

Variable

Meaning

Sync error

In DC mode: indicates whether a synchronization error occurred in the expired cycle.

This means a SYNC signal was triggered in the terminal, although no new process data were available (0=OK, 1=NOK).

TxPDO State

Indicates whether an error has occurred (= TRUE). TxPDO State is set to TRUE if internal errors are detected or an open circuit is signaled, since invalid data must be assumed.

DcOutputShift, DcInputShift

In these static variables the System Manager announces the shift time to which this terminal has been set. The value is set once on activating/calculating the configuration and also depends on the customer-specific settings in the extended slave settings. It can be linked to offset calculations in the PLC.

StartTimeNextLatch

See chapter "StartTimeNextLatch"