Tutorial 7 SafeMotionWizard en
Tutorial 7 SafeMotionWizard en
SafeMotion Wizard
Use of an EnDat 2.2 Safety encoder
1 Introduction
TwinSAFE includes several innovations that bring more functionality and performance to your safety
controller. A major innovation is that the functionality of the safety controller is integrated in each TwinSAFE
component. This means that you can, for example, use a TwinSAFE input component both as an input
component and the safety control integrated on it to use application-specific pre-processing.
The aim of this tutorial series is to familiarize you with the TwinSAFE innovations using individual examples.
This tutorial is about the generation and configuration of a SLS functionality for an AX8000 with an EnDat 2.2
Safey encoder.
1.2 Requirements
Meet the following requirements for this tutorial:
• TwinCAT 3 version ≥ 3.1.4024.11
• TwinCAT Safety Editor TE9000 ≥ 1.2.1.1
• TwinSAFE firmware ≥ 03
• AX8000 firmware ≥ 0104; with default module ID active
1.4.1 Hardware
The demo system of this tutorial consists of the following hardware:
• CX for EtherCAT communication and the standard PLC controller
• EL6910 as master TwinSAFE Logic
• EL1918 with safe inputs for reading light barrier signals
• Light barrier
• AX8000-x2xx
• Motor with EnDat 2.2 Safety encoder
1.5 Approach
For other motors there is a separate category "Other motors". Here exists in the current SafeMotion Wizard
version a restriction to STO and SS1.
2 Demonstration
Proceed as follows to create a Safe Motion project with the SafeMotion Wizard:
The "Select Project Targets" window opens and shows you an overview of all existing and virtual axes.
4. Select your Safe Motion component
5. Confirm selection with “Next”
In the "Select Motors" window, configure the feedback for the individual axes.
6. Select "AM8xxx-xxHx-xxx (OCT 24Bit Multiturn)" for channel A (ChA)
7. Select "Other motors" for channel B (ChB)
Since the EnDat motor is not an OCT motor, the "Other motors" selection would be made at this point.
However, the aim of this tutorial is an SLS realization on ChA. Therefore select "AM8xxx-xxHx-xxx (OCT
24Bit Multiturn)" for ChA and "Other motors" for ChB.
8. Confirm selection with “Next”
In the "Select Safety Function" window, select the desired safety functions.
9. For ChA select the SLS1 safety function
The STO safety function is active as a default setting for all channels.
10. Confirm the selection with “Next”
The "Configure TwinSAFE Projects" window opens. Here you have the option of renaming your Safe Motion
project, which is generated for your Safe Motion component.
You also get an overview of the safety settings that have been made.
11. Rename project as desired
12. Check the settings
13. Confirm the selection with “Next”
In the next window "Assignment of master target logics" the connection to the EL6910 project is closed, so
that your Safe Motion component can communicate with the EL6910 project. The EL6910 project is
automatically found and displayed.
14. Click the button " ... "
15. Select the Safe Motion component that you want to connect to the EL6910 project
16. Confirm your selection with “OK”
The "Safe Address Selection" window opens. Here the safe addresses are read out automatically. For virtual
axes or axes that cannot be reached, you have the option of configuring the addresses yourself.
18. Close window with “Finish”
Under the parameter C240:0 "ChA SAFEDRIVEFEEDBACK Primary Feedback Parameter" you see the
"C240:1B Primary Feedback Parameter CRC". This CRC is calculated for the OCT Safety. To change the
encoder signal to an EnDat 2.2 Safety encoder, you need the corresponding CRC. You can find the CRC in
the Safe Motion component. Proceed as follows:
5. At “C240:1B Primary Feedback Parameter CRC” take the parameter CRC “0x06E3”
6. Open Target System
7. Double click on the parameter C240:1B
8. Enter the parameter CRC at Hex in the “Set Value Dialog” window
9. Confirm entry with “OK”
10. Click on "Save all" in the menu bar to save the settings
The SafeMotion Wizard has already created the connections via the Alias Devices.
Proceed as follows:
In the following you must link the individual signals and parameters in the "Variable Mapping" tab. The
procedure is identical for all parameters and is shown here as an example for one parameter using the
screenshots.
3. Click the " ... " button for the desired parameter
Note When aliasing the STO parameters, make sure that the existing links are retained.
Parameter Signal
ERR_ACK_AX8000_ChA Error_Ack_ChA
SS1_AX8000_ChA SS1_ChA
SS1_AX8000_ChB SS1_ChB
ERR_ACK_AX8000_ChB Error_Ack_ChB
SLS_AX8000_ChA SLS_1_ChA
STO_ChA STO_ChA
STO_ChB STO_ChB
The Safe Motion project and the EL6910 project are now linked.
The "Select Valid Project(s)" window opens. Here you can see which safety projects you can download.
2. Select the safety projects that you want to download
3. Confirm selection with “Next”
4. Enter the username and password in the "General Download Settings" window
The "Activation" window opens, in which you activate the safety projects.
10. Enter the default password
11. Check if the safety projects are selected
12. Confirm selection with “Next”
2. Click on “Show Online Data” in the menu bar to activate the online view
For ChA.PRIFB_POSITION_VALID, you will first see that this value is 0 because the protocol for EnDat 2.2
Safety takes more time to upload.
Once the log is finished uploading, you will see that all signals arrive correctly.
A warning message appears. Since this application is a demo system, there is no danger here.
3. Close the warning with “OK”
5. Click on the "R" symbol in the "Manual" tab to reset the error
6. Open the "Functions" tab
Setting Value
Target velocity 20 mm/s
Target position 2 300 mm
8. Click on "Start”
9. Click on the "Start record" field to start the Drive Manager Scope
You can now see from the analog values that your function is working as desired. To stop the motor again,
proceed as follows:
13. Open the tab "Run Motor" in the Drive Manager in ChA