Integration into the NC configuration
(Master: TwinCAT 2.11)
EtherCAT XML Device Description The display matches that of the CoE objects from the EtherCAT XML Device Description. We recommend downloading the latest XML file from the download area of the Beckhoff website and installing it according to installation instructions. |
Required firmware (FW) version and TwinCAT version At least the FW version 07 is required for the connection of the EL2522 in the NC; TwinCAT versions: |
- The terminal must already have been inserted manually under I/O devices or have been scanned in by the system (see section "Inserting the terminal in the EtherCAT Terminal network").
- First add a new task.
- To do this, click with the right mouse button on NC Configuration and
- select "Append task…" (see fig. Adding a new task).
- Rename the task if required and confirm with OK.
- Select the operation mode of the terminal in the selection box Predefined PDO Assignment on the register tab Process data.
- Adding an NC axis
- Right-click on Axes, then add a new axis (see Fig. Adding a new axis).
- Adding a new axis
- Name: Change the axis name if necessary
- Multiple: Enter the number of channels here in case of multi-channel operation. The corresponding number of axes will then be inserted.
- Type: Select a continuous axis and confirm with OK (see Fig. Selecting and confirming the axis type).
- Linking the non-referenced axes to the terminal
- Left-click your axis to select it.
- Under the Settings tab select "Link To..." (see Fig. Linking the axis with the terminal).
- In the dialog Selection of I/O elements, select the desired terminal (e.g. terminal 3 (EL2522) #Ch.1 and confirm with OK.
- In the case of two-channel operation, also link the second axis with channel 2 of the EL2522.
- All important links between the NC configuration and the terminal are thus carried out automatically for the selected channels. The links are illustrated in the tree (A) and in the online view (B and C) (see fig. Automatic linking of all main variables).
- Target counter value, AutomaticDirection and Target arrival time are not automatically linked under the following conditions. Observe the following chapters here:
- EL252x - when using the predefined PDO Assignments "n Ch Standard 16 Bit (MDP 253/511)"
- EL2522 - when using the predefined PDO Assignments "n Ch Standard 32 Bit (MDP 253/511) continuous position w. arrival time"
- EL2522 - when using older FW or older TwinCAT versions with "Continuous Position" mode
- Setting of distributed clock: DC-Synchronous on "DC" tab
- Set the frequency of the terminal in order to achieve the required velocity
- Channel 1: Index 0x8000:12
- Channel 2: Index 0x8010:12
Further Information