Basic function principles

Operation modes of the EL2522

In addition to the “extended operation mode” familiar from the EL2521, the EL2522 also supports an “extended operation mode with continuous position specification” and an “extended operation mode with continuous position specification and arrival time”.
As an extension of the EL2521, the EL2522 offers the “extended operation mode” in 1-channel or single operation mode with A, B, and C tracks (“zero track”/reference) or in 2-channel or dual operation mode with A and B tracks, respectively.

Version

PDO settings

Comments

FW/HW

ESI

Process data

CoE parameters

Legacy

formerly MDP 252

Not available for the EL2522

 -

-

-

-

Enhanced operation mode

1 Ch. Standard 16 Bit (MDP 253/511)

2 Ch. Standard 16 Bit (MDP 253/511)

1 Ch. Standard 32 Bit (MDP 253/511)

2 Ch. Standard 32 Bit (MDP 253/511)

 1 Ch.: with C‑track

from 02

from EL2522-0000
-0000

PDO assignment

Inputs 0x1A00, 0x1A02

Outputs: 0x1600, 0x1602, 0x160A

Feature-Bits and Settings in CoE objects (hex) 8000, 8010, 8020 and 8030

Enhanced operation mode with continuous position specification

1 Ch. Standard 32 Bit (MDP 253/511)
continues position

2 Ch. Standard 32 Bit (MDP 253/511)
continues position

1 Ch.: with C-track; Travel path without ramp, DC-Synchron must be selected

from 02

from EL2522-0000
-0000

PDO assignment

Inputs: 0x1A03

Outputs:
0x160B, 0x1601

Enhanced operation mode with continuous position specification and arrival time

1 Ch. Standard 32 Bit (MDP 253/511)
continues position, with arrival time

2 Ch. Standard 32 Bit (MDP 253/511)
continues position, with arrival time

1 Ch.: with C‑track;

Travel path without ramp, specification of arrival time possible (target time); DC-Synchron must be selected

from 02

from EL2522-0000
-0000

PDO assignment

Inputs: 0x1A03

Outputs:
0x160B, 0x1601, 0x1604

Output modes of the EL2522

About the following indices in the CoE

the following output modes are available for choice:

Basic function principles 1:

Cycle-synchronous output in operation modes with “continuous position”

  • “32 Bit, continues position”
    The terminal operates cycle-synchronously when using the “continues position” PDO presets and thus generates pinpoint output control clock signals synchronously with the task cycle.
  • “32 Bit, continues position with arrival time”
    Instead of specifying a frequency, a target time is specified within which a target position must be reached.
  • The clock signals are also output cycle-synchronously in this case, too, as long as this specification is within the plausible range.

Output modes

Meaning

Index 0x8000:0E value

 

Frequency modulation

Only one channel is active in each direction at a time. A frequency-modulated signal is output on this channel.
Clockwise rotation is achieved via channel A, and counterclockwise rotation via channel B.

0

Basic function principles 2:

Pulse direction signal

The direction is controlled by channel B. The clockwise direction is represented by a low-level and the counter clockwise direction by a high level. The actual signal, is then output in modulated via channel A.

1

Basic function principles 3:

Incremental encoders

The direction is defined by the shifting of channels A and B. If channel A leads by 90°, this indicates a “forward” movement. Channel B, which leads by 90°, in response to a “backward” movement.
In the single-channel variant, the C track (zero track) can also be output.

2

Basic function principles 4:

Basic function principles 5:

Process data monitoring

  • WcState: if ≠ 0, this EtherCAT device does not take part in the process data traffic
  • State: If ≠ 8, the EtherCAT device is not in OP (operational) state
  • TxPDO State, SyncError: if ≠ 0, then no valid process data are available, e.g. caused by wire break
  • TxPDO Toggle: if this bit toggles, a new set of process data is available

Delivery state

Independent of the hardware/firmware version, an EL2522 newly integrated in the system registers itself in the operating mode “2-channel standard 32-bit (MDP 253/511)”.

Incremental encoder simulation

The “enhanced operation mode (253/511)” is the enhanced operation mode familiar from the EL2521. Please refer to the corresponding chapter of the EL2521 (see also chapter EL2521 function) for an explanation of the functionality and the steps necessary for commissioning.

Unlike the EL2521, it is possible to choose between a 1-channel and a 2-channel operation mode (single or double operation).

Incremental encoder simulation with continuous position specification

In the operation modes “1 Ch. Standard 32 Bit, continues Position” and “2 Ch. Standard 32 Bit, continues Position”, the EL2522 can simulate an incremental encoder with A, B, and C tracks (1-channel or single operation mode) or two independent incremental encoders (2-channel or dual operation mode), each with A and B tracks. As previously with the EL2521 there is also a choice here between the output modes incremental encoder, frequency modulation or pulse direction control.

Basically, the clock signals are output here cycle-synchronously (necessary selection in the EL2522 DC settings: “DC-Synchron”).

After selection of the respective PDO assignment, the associated process data are represented in accordance with the following illustration.

Basic function principles 6:
Fig.54: Representation of the process data according to the PDO selection “1-channel standard 32-bit, continuous position” in the TwinCAT System Manager

The output value “Target counter value” is written with the desired target position for the next cycle. Depending on the current position (input value “Counter value”), the EL2522 calculates the frequency necessary for reaching the desired position in the next cycle. A fixed running direction can be specified by the output bits “Forward” and “Reward”. If the “Automatic direction” bit is set, the terminal selects the running direction depending on the position difference (actual value and setpoint) in favor of the shorter distance.

If 2-channel mode is in use, the process data for the second incremental encoder are added analogously to those for the first.

Incremental encoder simulation with continuous position specification and arrival time

In addition to the functions mentioned above, it is possible in the operation mode “continuous position specification and arrival time” to define when the target position should be reached. Consequently, the calculation no longer takes place with the specification of the target position to be reached in the next cycle, but taking into account an arrival time specified by the user instead.

Basic function principles 7:
Fig.55: Representation of the process data according to the PDO selection “1-channel standard 32-bit, continuous position w. arrival time” in the TwinCAT System Manager

The desired target time for reaching the set position can be specified by the output value “Target arrival time”.

The frequency is then calculated accordingly. Is the

calculated frequency > Maximum frequency (0x8000:12/0x8010 “Base Frequency 1”)

=> this limits the frequency to this value, and the set position is reached later as a result.

Basic function principles 8:

Use of microincrements

When using microincrement values, care must be taken not to exceed the internal 100 MHz limit.

Example: Cycle time 1 ms, 15-bit microincrements

If three “true” increments are to be output in a cycle, this already amounts to
(3 × 2^15) / 1 ms = approximately 98 MHz.

Basic function principles 9:

Setting the counter value / zero calibration (A/B adaptation)

The counter value can be manually set.

  • Prerequisite: The parameters for the direction of movement must be set to FALSE (“Automatic direction”, “Forward”, “Backward”, 0x7000:04–0x7000:06).
  1. To do this, the desired counter value must be entered in the index 0x7020:11 “Set counter value”.
  2. Setting index 0x7020:03, “Set Counter”, causes the counter value is applied.
  3. If the counter value is set to 0
    , the C-track goes into the HIGH state.
  4. The behavior of channels A and B in this case can be defined by index 0x80x00:01 “Adapt A/B on position set”.
  5. By factory setting, the value is set to FALSE.
    The position of the C-track relative to A and B is then not changed.
  6. If the value is set to TRUE,
    channels A and B are both set to HIGH. Consequently, a change of state occurs on both channels!

Function: Automatic adoption of the setpoint

In the enhanced operation modes “continuous position specification” and “continuous position specification with arrival time”, a threshold value can be specified for the automatic adoption of setpoints. The specification is made via the CoE objects

If the difference between the setpoint and the actual value exceeds this pre-set threshold value, the actual value will be overwritten
with the setpoint on the next Sync; i.e. the value of the target counter is directly applied as the counter value without incremental encoder clock signals being output.

The following steps must be performed in order to use this function.

1. Activate “DC-Synchron”
2. Activate PDOs 0x1A03 (Input) and 0x1603 (Output)
3. Set the threshold value
Basic function principles 10:
Fig.56: Threshold setting in object 0x8020:1A for incremental encoder 1

Example:

→ Threshold for automatic setting is exceeded; No clock signals will be output at the output of the terminal.

The threshold (0x00000100) is not overwritten with the difference between target counter value and current counter value (in this case the value: 0x20) for automatic setting. Therefore clock signals are output at the output of the terminal until the target counter value is reached.

This function therefore allows you to set the counter value directly, as an alternative to using the 0x7020:03 (or 0x7030:03) “Set counter” object.

It is recommended to use the function of the automatic adoption of the setpoint only in special exceptional cases!

Basic function principles 11:

Initialization

The actual value is initialized during the transition from SafeOp to Op. The current setpoint is applied here as the actual value.

Basic function principles 12:

Exceeding the maximum frequency

If the set maximum frequency is exceeded when calculating the necessary frequency for reaching the set position within the foreseen period, the maximum frequency is adopted. This leads to extended travel distances and should be taken into account and if necessary checked accordingly. The maximum frequency can be set via index 0x8010:12/0x8020:12 (Base Frequency 1).