Professional Documents
Culture Documents
TM540TRE.433-ENG - Integrated Safe Motion Control - V4330 - SR1.10
TM540TRE.433-ENG - Integrated Safe Motion Control - V4330 - SR1.10
Table of contents
1 Introduction........................................................................................................................................... 4
1.1 Learning objectives................................................................................................................. 5
2 Operating principle of "safe motion control"........................................................................................ 6
2.1 Comparison to motion control without integrated safety technology...................................... 6
2.2 Advantages of integrated safety technology...........................................................................7
2.3 Safe power transmission system............................................................................................ 7
2.4 The idle current principle........................................................................................................ 9
2.5 Implementing safety functions.............................................................................................. 10
2.6 Error states with SafeMOTION............................................................................................. 10
3 Project development...........................................................................................................................12
3.1 Configuration in Automation Studio...................................................................................... 13
3.2 Using SafeDESIGNER..........................................................................................................15
4 Safe drive configuration..................................................................................................................... 19
4.1 Parameters for the safety response time............................................................................. 19
4.2 Setting the units system for SafeMOTION........................................................................... 19
4.3 Safe monitoring of the motor/encoder shaft connection....................................................... 21
4.4 Error handling........................................................................................................................21
5 Integrated safety functions................................................................................................................. 25
5.1 Overview of safety functions.................................................................................................25
5.2 Using safety functions...........................................................................................................30
5.3 Safety functions and their application...................................................................................30
6 Summary............................................................................................................................................ 52
1 Introduction
The TM540 – Safe Motion Control training module is designed to familiarize you with SafeMOTION
safety functions and demonstrate how they can be used in SafeDESIGNER and Automation Studio.
This training course will explore the relationship between safety-oriented and non-safety-oriented (stan-
dard) applications. It will introduce the safety functions available with SafeMOTION and explain how to
use them.
STO
PLC/PC
X67 SafeIO
SafeLOGIC
POWERLINK
ACOPOSmulti
ACOPOSmulti
ACOPOSmulti
ACOPOSmulti
ACOPOSmulti
ACOPOSmulti
ACOPOSmulti
ACOPOSmulti
ACOPOSmulti
STO
STO
The safety functions integrated in the drive open up entirely new possibilities for guaranteeing the safety
of personnel while maintaining maximum machine availability.
The TM540 – Safe Motion Control training module was designed to accompany training semi-
nars and does not represent a full documentation of integrated safe motion control technology.
Complete documentation can be found in the SafeMOTION user's manual and in Automation
Help.
Safety technology \ Libraries \
The user's manual can be downloaded free of charge from www.br-automation.com under
Downloads / Safety technology / <Any device type with SafeMOTION>.
The goal of this training module is to become familiar with the SafeMOTION safety functions and to learn
how they are used.
• Participants will learn the principles on which safe integrated motion control operates.
• Participants will learn about the available safety functions and how they are used (STO, SS1,
etc.).
• Participants will learn how to add and configure a safe drive in Automation Studio.
• Participants will learn about the relationship between standard and safety applications.
• Participants will learn about the function blocks in the PLCopen Safety library and the proce-
dure for developing safety functions.
• Participants will learn the procedure for commissioning and maintenance.
The ACOPOS servo product family device with SafeMOTION behaves from the point
of view of the standard application like a ACOPOS servo product family device without
integrated safety technology. The drive can therefore be integrated in a POWERLINK
network and operated using PLCopen function blocks as usual.
The ACOPOS servo product family devices with SafeMOTION differ through additional
software and hardware, which evaluates the encoder signal with regard to safety, has
control of pulse disabling and controls the motor holding brake output. This functionality
will be referred to as SafeMOTION.
The purpose of this section is to explain the fundamental characteristics of motion control with integrated
safety technology as well as to present its main advantages.
The fundamental purpose of safe motion control is to interrupt the signals from the processor and power
supply when an error occurs in order to cut the power to the motor. This interruption is done via safe
pulse disabling, which in the case of standard safety technology is controlled via two inputs on the power
inverter. These inputs are generally referred to as "Enable1" and "Enable2".
In B&R integrated safety technology, these inputs are fed internally via SafeMOTION rather than via an
external connection on the housing. The encoder signal is also evaluated in order to monitor the speed
and position limits as needed. In addition, the safe motor holding brake output on the inverter module
is switched and monitored.
The integrated safety technology does not actively intervene in control and therefore only handles ver-
ifying and monitoring functions.
Stopping an axis
The advantage of integrated safety technology is the possibility to respond to safety-related events.
The drive does not necessarily have to be powered off, but can be brought to a standstill in a controlled
manner and monitored.
This action is not carried out by the safety application, it is handled by the standard application. The
possibility for the safety application to communicate with the standard application will be described later
(interface).
Commands to stop or switch off the axis are already known and are also called here from a program
on the PLC.
The safety application can now set up a time or ramp window and e.g. handle standstill monitoring.
In the end (e.g. the standard application accelerates further in an unauthorized way), the safety applica-
tion can only switch on pulse disabling on the inverter and activate the holding brake. This ensures that
no additional energy is introduced into the system.
Safety violations should not be the normal situation, they should only serve as a safety function. Inter-
action with the standard application is therefore alsways required.
Seamless integration of safety technology in the standard application is a reality with B&R's safety tech-
nology products. This allows fixed wiring to be replaced by safe data transfer via the existing machine
bus system. Flexibly configured or programmed safety behavior can be adapted optimally to various
safety situations. Complete diagnostic information about safety components accessible via the machine
bus system provides detailed data about the state of the machine.
Wiring of the "Enable" inputs (controller enable) is not needed because it is enabled via the safety ap-
plication.
Monitoring the position and speed can be done without additional hardware because the encoder system
is safety certified.
The safety application monitors the process, so the existing standard application can continue to be used
and adapted. There is no need to create a new program with the safety function.
The response times achieved minimize residual movement in the event of an error resulting in a signif-
icant increase in safety!
The latest version of the "B&R motors / Encoder list" can be downloaded from www.br-au-
tomation.com
The encoder interface/SafeMOTION module is built into the inverter module and cannot be replaced.
The ACOPOS P3 SafeMOTION variant was designed with customer requirements for scalability in mind.
The safety functions have been grouped and can be activated using a Technology Guard License.
Using a SafeLOGIC controller, you can operate these servo drives with controller enable ("Enable") as
usual in the first steps as a known ACOPOS device with all configuration settings and test possibilities.
SafeMOTION
Electronics SafeMOTION
Electronics
Control Monitoring,
Encoder position Diagnostic
Current/ Speed / Postition / Brake
functions
Enc. signal
connection
connection
Brake
Motor
B&R safety motor
Exercise
The goal of this exercise is to prepare an ACOPOSmulti SafeMOTION inverter module for operation.
• Create a project in Automation Studio and add the hardware (SafeLOGIC controller, ACOPOS-
multi, etc.). Assign the node numbers based on the hardware used.
When specifying the device parameters, you will need to specify that the ACOPOSmulti
SafeMOTION inverter module's DC bus will be supplied with 24 V. (Right click on the ACOPOS
configuration)
• Parameter "Velocity Error Monitoring" in the ACOPOS configuration (Real Axis \ Movement Er-
ror limits\) must be set to "mcSTOP_AUTOMATIC1".
• Open SafeDESIGNER and add function block SF_SafeMC_BR_V3.
• Connect the S_AxisID input to the axis reference variable and the Activate input to a constant
with the value TRUE.
• Set the following parameters in the parameter list for the safe axis in SafeDESIGNER (to allow
movement with minimal work):
Encoder monitoring - Position error monitoring Disabled Is initially disabled because the
- Enable tolerance is set to 0 by default,
Encoder monitoring - Speed error monitoring - Disabled and would thus generate an er-
Enable ror when starting.
Integrated safety technology with SafeMOTION uses the idle current principle. When there is a logical
0 at a controller input or the current is interrupted, the corresponding safety function or error response
is executed.
The idle current principle ensures that the system tends toward the safest possible result in case of
failure.
This method is an example of the general principle referred to in engineering as "fail-safe".
This is why cutting off the drive's energy and torque is the only safe function that can be executed at any
time. The consequences that are described below are a result of the fail-safe principle.
This approach represents the current state of technology and is handled identically by all competitors
on the market.
Situations involving external forces (e.g. hanging loads) can result in dangerous movements!
If this poses a safety risk, then the user must implement the necessary equipment to eliminate
the risk (e.g. mechanical brakes)! This equipment must correspond to the required safety level!
As described in the previous sections, SafeMOTION does not actively intervene in open and closed
control loops on the inverter module. Only pulse disabling and the motor holding brake output are op-
erated directly.
If pulse disabling is active, the operating system will detect a voltage drop and report errors
6058: Enable1: Voltage dip" and "6059: Enable2: Voltage dip". These errors must be acknowl-
edged in the standard application.
There are essentially two error states, whereby pulse disabling and the safe motor holding brake output
are not enabled.
The distinction between which error state exists can also be seen on the LED on the hardware device
being used or in the Logger.
• FAIL SAFE state
• FUNCTIONAL FAIL SAFE state
If a hardware or firmware error occurs, then the safe inverter module switches to a non-acknowledgeable
error state – the FAIL SAFE state. A logbook entry in Automation Studio provides more detailed infor-
mation regarding a pending error, which can also be evaluated in the standard application. If a hardware
defect is detected, then the inverter module must be replaced.
Errors can also be caused by incorrectly configured parameters, however. If this is the case, then the
safe configuration must be checked and transfered to the SafeLOGIC controller in corrected form. Then
the device must be switched on again in order to return to OPERATIONAL status.
Safe pulse disabling is always active in the FAIL SAFE state (i.e. the motor is no longer supplied
with power or generating torque). In this state, the motor holding brake output is always set to
0 V, which engages a connected motor holding brake.
The motor holding brake will suffer mechanical wear if the motor is in motion just before the
safe state is triggered.
If a monitored limit is exceeded or an encoder error occurs during operation, then the device changes
to an acknowledgeable error state – the FUNCTIONAL FAIL SAFE state – as long as safe evaluation
of the encoder signal is required for the safety functions being used. Information about any errors that
occur can be found in the logbook entry in Automation Studio.
If cutting off torque and coasting to a stop on the machine is a problem, an STO1 with delayed STO can
also be set in the SafeMOTION parameters. This provides the possibility for the standard application to
initiate a short circuit stop with the motor. This results in increased braking of the motor – and therefore
the axis – using values that go beyond the defined limits.
The temperature of the motor windings will increase, and this should be taken into account. If there is a
risk of motor overheating, the ACOPOS drive automatically switches off and the motor coasts to a stop.
As an alternative, some type of external brake could be installed on the mechanical system.
3 Project development
The following are the steps needed to put an ACOPOS servo product family device with SafeMOTION
into operation:
1) Opening or creating a project in Automation Studio
2) Adding a SafeLOGIC controller
3) Inserting an ACOPOS servo product family device with SafeMOTION
4) Developing the standard application in Automation Studio
5) Opening SafeDESIGNER and defining the safety-related parameters
6) Adding a SafeMOTION function block and connecting the axis reference variable
Commissioning
During commissioning and training, initial transfer can be made easier.
It is helpful to avoid work related to safety-relevant acknowledgment using Setup mode on the SafeL-
OGIC controller.
This is available with Safety Release 1.10, AR >=B4.26 and SafeDESIGNER Version 4.3.
Hardware \ X20 system \ X20 modules \ CPUs \ X20(c)SL81xx \ Software functions \ Setup
mode
Acknowledgment can also take place without a hardware contact in SafeDESIGNER via remote control.
Adding the ACOPOS servo product family device with SafeMOTION is done as usual and does not differ
from a device without integrated safety technology.
After adding the device with SafeMOTION being used, it appears as usual in the hardware tree (Physical
View in Automation Studio).
Figure 3: Hardware tree with ACOPOSmulti SafeMOTION inverter module added as an example
3.1.2 Configuring basic settings and assigning safe axes to the SafeLOGIC controller
After a device has been added in the hardware tree, it is still possible to change the default settings.
Then open up the Physical View in Automation Studio and open the shortcut menu by right-clicking on
the SafeMOTION device. Select Open I/O configuration from the menu to open the configuration for the
SafeMOTION device.
SafeDESIGNER is used to develop the safety application that will run on the SafeLOGIC controller as
well as to configure the individual modules. This is done by automatically applying all safety-related
components assigned to corresponding SafeLOGIC controllers in the Automation Studio configuration.
The SafeDESIGNER project shows all devices with SafeMOTION along with the rest of the safety-related
components in the Safety View. Selecting a device with SafeMOTION opens its associated parameter
list, which will be described in more detail in the next section.
Special function blocks that are compliant with PLCopen Safety have been implemented to ensure ef-
ficiently. These function blocks have simplified the development of safety applications. Because they
are certified, they reduce time and costs throughout all phases of a safety application's lifecycle. From
the specification and implementation to testing and checking functions, the procedure used is more like
virtual wiring than programming.
Each function block has an S_AxisID input that is used as an axis reference. This axis reference is a
variable and can be generated by moving the device with SafeMOTION from the hardware tree to the
workspace using drag-and-drop. Connecting an axis reference to the S_AxisID input of the function
block assigns it to the respective device with SafeMOTION.
The following image shows what the axis reference looks like when used with the SF_SafeMC_Posi-
tion_BR_V1_1 function block.
Available libraries
The following sections describe these function blocks. The individual inputs and outputs will not be ex-
plained in detail since a detailed description can be opened directly in SafeDESIGNER by right-clicking
on a function block.
The function blocks are grouped in different libraries. These libraries aren't included in the
project by default but can be added in SafeDESIGNER by selecting Project / Add library
Figure 8: Overview of the relevant libraries depending on the hardware available with SafeMOTION that is being used
The following description refers to use of PLCopen_Motion_SF_2 for the ACOPOSmulti with
SafeMOTION, but there are corresponding function blocks with the same safety function in other libraries.
Right-click on SafeMOTION block in SafeDESIGNER for more information about safety func-
tions
Hardware \ Motion control \ SafeMOTION \ Safety technology \ Integrated safety functions \
Safety technology \ Libraries \
• openSAFETY_Motion_SF
• openSAFETY_BuR_Motion_SF
• PLCopen_Motion_SF_X
• RoboticCtrl_SF_X
This function block makes it easy to use the safety functions implemented on the ACOPOSmulti
SafeMOTION inverter module.
The left side contains not only input for the axis reference, but also the inputs for enabling and resetting
the function block in addition to an input for requesting the integrated safety functions. As described in
section "The idle current principle" on page 9, these inputs are "Low active". A safety function is not
requested as long as the input signal has the logical value SAFETRUE. If the signal takes on the logical
value SAFEFALSE, then the respective safety function is requested. If a function is not used at all,
then the corresponding input on the function block will be left open. This disables the function on the
SafeMOTION module. The right side of the function block contains outputs that indicate the status of the
individual safety functions and any errors that occur.
The SF_SafeMC_BR_V3 function block can only be used with Safety Release 1.9 and later.
If Safety Release 1.4 is currently in use, then the SF_SafeMC_BR_V2 function block must be
used.
If Safety Release 1.3 is currently in use, then the SF_SafeMC_BR function block must be used.
The DiagCode output on the function block returns the current status of the state machine
for SafeMOTION. Descriptions of the various states and their meanings are included in the
description of the function block.
The SF_SafeMC_Position_BR_V2 function block can only be used with Safety Release 1.9 or
higher.
If Safety Release 1.4 is currently in use, then the SF_SafeMC_Position_BR function block must
be used.
The following application example illustrates one possible use of the Safe Position Monitor function on
the SafeLOGIC controller.
The primary purpose of the SF_SafeMC_Speed_BR function block is to establish a connection between
the safe speed of an axis and the associated encoder error status. An assignment is then made to a
defined safe axis.
The SF_SafeMC_Speed_BR function block can be used to process the current safe speed of an axis in
the safety application. To ensure valid evaluation of the speed signal, the corresponding encoder error
status bit S_NotErrENC must also always be checked. The speed signal itself is only considered valid
if this output parameter is set to SAFETRUE.
The S_Axis_ID input must be connected to the axis reference variable in the normal way. The S_S-
caledSpeed output parameter indicates the current value of the scaled safe speed for a real axis. This
value is only valid if the S_NotErrENC output has the SAFETRUE state. This indicates the general error
status of the encoder signal.
The following application example illustrates one possible comparison of the scaled safe speed with a
permanent defined value in the safety application.
This function block makes it easy to use the safe brake test implemented in SafeMOTION. As usual, the
left side of the function block contains an input for the axis reference and an input for enabling the brake
test. This input is "Low Active". The S_SafetyActiveSBT output on the right side of the function block
is SAFETRUE for as long as the safe brake test is being performed. After successfully performing the
brake test, the S_SafetyStatusSBT output is set to SAFETRUE. After a timer has expired, the output
is reset and the brake test must be repeated.
SF_SafeMC_SBT_BR_V1_00
Before the drive can be operated, the SafeMOTION parameters must be adjusted.
Descriptions of individual parameters can be found in the user's manual and Automation Help.
• SafeMOTION user's manual:
"SafeDESIGNER parameters" section
• Automation Help:
Hardware / Motion control / ACOPOSmulti SafeMOTION / Safety technology / Register
description / SafeDESIGNER parameters
The first parameter block deals with the safety response time for SafeMOTION and corresponds to the
parameters for other safety components.
These parameters are normally configured for all safe nodes of the SafeLOGIC controller in
SafeDESIGNER. If the values need to be changed for one or more safe nodes, then the "Manual Con-
figuration" parameter must be set to "Yes".
Detailed descriptions of individual parameters are provided in the user's manual for the device used in
the "Parameters for the safety response time in SafeDESIGNER" or in Automation Help.
The next block in the parameter list deals with configuring the units system for the safety-related eval-
uation of the encoder signal.
These parameters can be set independently of the units system used for the standard application.
One especially important parameter is the "Maximum speed to normalize the speed range" parameter.
As its name indicates, this parameter represents the maximum speed to which the speed should be
normalized. The following formula is used:
If the default value of 32767 units is used, then then scaling factor is 1 and the scaled speed is the same
as the physical speed.
In the event that the velocity exceeds the value 32767 (maximum value of a signed 16-bit integer variable)
at the maximum expected speed and with the defined unit system, the parameter "Maximum speed to
normalize the speed range" will be accordingly adjusted.
This will scale the displayed velocity.
Scaling "Maximum speed to normalize the speed range" with the help of an example
A unit system of 10000 units per revolution is defined for the axis in the standard application as well as
in SafeDESIGNER. Safety function SLS1 is requested during operation, whereby the physical velocity
must be limited to 8000 units per second.
It is expected for the unit system to cause the application to exceed the maximum displayable veloc-
ity of 32767 units/s (3.2767 Rev/s). If the drive is accelerated to a velocity >32767 units/s, then the
SafeMOTION module will change to the FUNCTIONAL FAIL SAFE state and the error 115961 "SMC:
Encoder - SafeSpeed exceeded INT16 range" is entered in the logger.
In order to allow higher velocities, the parameter "Maximum speed to normalize the speed range" must
be increased. In this case, the value would be set to 65534. This results in the following table:
If the controller is turned on and a movement is started with a physical velocity of 10000 units/s, the result
is a scaled displayed velocity of 5000 units/s. This must be half of the physical velocity due to scaling.
Scaling does not influence the physical velocity limit. If the axis is accelerated to a velocity greater than
8000 units./s when SLS1 has been requested, then SafeMOTION changes to the FUNCTIONAL FAIL
SAFE state. This value is shown scaled, which in this case would be 4000 units/s.
Hardware \ Motion control \ SafeMOTION \ Safety technology / Programming the safety func-
tion / SafeMOTION help tool
Mechanical error prevention is not needed in some applications and can be replaced by the safety-ori-
ented "Encoder monitoring" function in SafeMOTION.
Mechanical encoder connection errors (breakage, slippage, mismatch) are detected using the position
setpoint and the speed setpoint of the position controller in SafeMOTION. Position lag errors and speed
errors are created in SafeMOTION and checked against limit values.
The parameters in the "Encoder monitoring" block can be used to enable this monitoring and set the
respective limit values.
Additional information about restrictions that depend on the hardware used can be found in Automation
Help.
During development and commissioning, various errors can occur on the drive or in SafeMOTION. The
following section describes the most common causes of errors and how to deal with them.
The easiest way to check the status of the drive is to refer to the status indicators on the drive itself.
These can be seen e.g. with ACOPOSmulti SafeMOTION on the black cover of the respective module.
The following image shows the status indicators found on a ACOPOSmulti SafeMOTION 2-axis module.
On a 1 axis module, there are no status indicators for the second inverter axis and the corresponding
SafeMOTION device.
The following section describes the status indicators that apply to SafeMOTION.
There are 3 additional LEDs for each safe axis behind the front cover of an ACOPOSmulti SafeMOTION
inverter module:
Constantly lit "SE" LEDs indicate a non-acknowledgeable FAIL SAFE state. The cause of this
could be a defective module or faulty configuration.
Check the entries in the logbook! If you are able to rule out a faulty configuration, then the
module is defective and must be replaced immediately.
It is your responsibility to ensure that all necessary repair measures or corrections to the con-
figuration are initiated after an error occurs since subsequent errors can result in dangerous
situations!
4.4.2 Logger
During development, the module may start with the FAIL SAFE state or switch to the FUNCTIONAL
FAIL SAFE state unexpectedly. The most common reason for this is an incorrect parameter setting in
SafeDESIGNER. The logbook can be used to identify the cause of the error.
The Logger window in Automation Studio can be used to view the logbook. It is then possible to set the
filter to show only safety-related entries. Each entry in the Logger window has an error number, a short
description and additional information.
Figure 14: Logbook entry showing incorrect parameter setting for the SLS speed limit
The short description only provides basic information. The complete error text can be found in Automation
Help. It can be found by entering the error number in the search field for the help system. For some
errors, the additional information can provide helpful clues about the cause of the error.
With error 115744, for example, the 113 in the additional information means that the module
is in the FAIL SAFE state because the speed limit for SLS is set outside the valid range. This
error can be corrected by modifying the parameter setting for SafeMOTION in SafeDESIGNER.
Once the project is transferred to the SafeLOGIC controller and SafeMOTION is restarted, the
error will no longer appear.
If a safety function is not used in the application, then the respective input must remain open.
1) Safety function SBC does not apply to the motor holding brake integrated in the ACOPOSmotor
SafeMOTION; it is not safety-related.
ACOPOS P3 SafeMOTION
At a minimum, inputs Activate, S_AxisID and S_Control_Activate must be connected on
function block SF_oS_MOTION_Basic_BR or SF_oS_MOTION_BR for each axis being used.
All of the safety functions that are being used must be tested.
A function is considered to be "in use" if the corresponding input is connected or the safety
function has been configured!
The following libraries and function blocks are available in SafeDESIGNER for creating a safe applica-
tion.
Right-click on SafeMOTION block in SafeDESIGNER for more information about safety func-
tions
Hardware \ Motion control \ SafeMOTION \ Safety technology \ Integrated safety functions \
The first thing is to realize that the integrated safety functions provided by SafeMOTION are purely
monitoring functions.
This means that using an SLS function (Safely Limited Speed) in SafeDESIGNER does not mean that
movements will automatically be executed at reduced speed, but rather that the speed will be monitored
with respect to a configured speed limit. The individual motion functions such as positive movement in
a particular direction must be programmed in Automation Studio. This can be done using the MpAxis
library. The request for a safety function must be reacted to accordingly in the standard application in
Automation Studio – corresponding movements must be made and limits must be observed.
Safety functions can be enabled either permanently (SMS - Safe Maximum Speed, SMP - Safe Maximum
Position) through configuration or be requested by a function block during runtime.
The behavior of safety functions is determined by the parameter settings for the SafeMOTION
configuration in SafeDESIGNER.
Individual parameters are described in the user's manual for the respective device and in Au-
tomation Help for the respective functions.
The following section describes the integrated safety functions and how they are used.
If cutting off torque and coasting to a stop on the machine is a problem, an STO1 with delayed STO can
also be set in the SafeMOTION parameters. This provides the possibility for the standard application to
initiate a short circuit stop with the motor. This results in increased braking of the motor – and therefore
the axis – using values that go beyond the defined limits.
The temperature of the motor windings will increase, and this should be taken into account. If there is a
risk of motor overheating, the ACOPOS drive automatically switches off and the motor coasts to a stop.
As an alternative, some type of external brake could be installed on the mechanical system.
If the drive is in motion at the time STO is requested, it will coast to a stop. The resulting residual
movement and time depends on the properties of the machine and must always be considered
when dimensioning the safety equipment.
The maximum possible (worst case) movement must be assumed.
As an option, STO can also be used with a time delay or SS1 can be used.
Right-click on SafeMOTION block in SafeDESIGNER for more information about safety func-
tions
Hardware \ Motion control \ SafeMOTION \ Safety technology \ Integrated safety functions \
The STO1 safety function works in the same way as STO. The only difference is that either only the high-
side or only the low-side IGBTs are switched off depending on the configuration. The two configuration
options (Highside/Lowside) are equivalent with regard to safety technology.
It is possible to set delay times for switching off the IGBT and the safe motor holding brake output.
From a technical standpoint, it makes no difference whether the high-side or low-side transistors
are disabled.
By default, failure of ENABLE1 or ENABLE2 will cause a short circuit stop to occur in
SafeMOTION. The firmware on ACOPOS servo product family devices determines which side
of the motor windings is short circuited.
SafeMOTION evaluates the encoder independently of the motion control loop. As a result, a reference
for the safe absolute position must be configured.
The Safe Homing function provides a way to establish a reference between the safe encoder
position and the machine position.
Depending on the homing mode, it may be necessary for the drive to perform a homing procedure. A
homing procedure requires the control functions between the electronic controller and the drive motor to
be active. Other safety functions might have to be selected in order to prevent a hazardous state during
the homing procedure.
The following homing modes are supported:
• Direct
Direct mode is used if the current position of the axis is known and only has to be applied to
SafeMOTION.
• Reference Switch
This mode correlates with the homing modes "Switch gate", "Abs switch" and "Limit switch" for
the ACOPOS servo product family. Depending on the configuration, the axis will pass over the
reference switch / limit switch multiple times. This needs to be connected to the function block's
S_ReferenceSwitch input via a safe input module.
• Home Offset / Home Offset with Correction
If an absolute encoder is being used, then the machine reference can be established via an offset
to the encoder position. A homing procedure is therefore not necessary. The offset is configured
in SafeDESIGNER using the "Home Position or Home Offset" parameter.
The homing mode "Home Offset / Home Offset with Correction" is only available for with EnDat
2.2.
The parameters for safe homing can be set in SafeDESIGNER in the "Homing" parameter block and are
described in the user's manual for the respective device.
Procedure for safe homing with SafeMOTION:
• Homing is triggered by a rising edge on input S_RequestHoming.
• At the same time, SafeMOTION resets the S_SafePositionValid status bit.
• Once homing is successfully completed, output S_SafePositionValid is set.
• Input S_RequestHoming must be reset.
The homing procedure must be complete within the "Homing Monitoring Time (µs)" or else SafeMOTION
will switch to the FUNCTIONAL FAIL SAFE state. The homing procedure will be aborted if input S_Re-
questHoming is reset before the procedure is completed.
Under "General settings - Standstill monitoring" it may be necessary to set "Speed tolerance"
to the minimum value in order to prevent an error during homing that would keep homing from
being completed.
With this safety function, after the safe position has been homed once to the machine position, the homed
safe position does not have to be homed again after a power off/on cycle. It is only possible to store
valid position data after a controlled standstill of the drive. The standstill must therefore be ensured. It
must also be ensured that no power is supplied to the drive while the data is being saved so that it is
not possible for the drive to move. These requirements are met when using the STO and SOS safety
functions.
When switched off, the axis is not permitted to move if the remanent safe position is used for
homing!
Hardware \ Motion control \ SafeMOTION \ Safety technology \ Integrated safety functions \Re-
manent Safe Position (RSP)
This safety function is not intended to provide a functional safe position following an uncontrolled machine
failure. The following procedure is defined in order to achieve a controlled stop and enable the use of
the remanent safe position:
3) Activate the technical measures required to prevent a dangerous movement. Execute a power off.
A dangerous movement is one that corresponds to half the safe encoder counting range minus
two times "Standstill monitoring - Position tolerance" (sSM_T).
4) Confirm the restored position by homing with RSP after powering on.
° To confirm the restored position after powering on, execute a homing command (i.e. rising
edge of the S_RequestHoming input) with the S_SwitchHomingMode input enabled.
If the switching frequency of the RSPValid status is too fast to complete the store procedure, a
warning is entered in the Safety Logger. The SOS and STO safety functions are active in this
state and are not deselected until the most recent store procedure is completed.
If the module is powered on after a controlled stop and homing is performed without the
S_SwitchHomingMode input enabled, or if an encoder error is detected, then homing with RSP
will cause the module to switch to the acknowledgeable FUNCTIONAL FAIL SAFE error state.
The drive loses all torque/power!
If an error or change in the configuration is detected when powering on after a controlled stop,
then the position is not applied and homing with RSP will cause the module to switch to the
acknowledgeable FUNCTIONAL FAIL SAFE error state.
The drive loses all torque/power!
If the FUNCTIONAL FAIL SAFE error state occurs when homing with RSP, the axis must be
homed again with the S_SwitchHomingMode input disabled in order to obtain a new, valid
safe position.
Right-click on SafeMOTION block in SafeDESIGNER for more information about safety func-
tions
Hardware \ Motion control \ SafeMOTION \ Safety technology \ Integrated safety functions \
From the standard application, I/O mapping can be used to access the status of SafeMOTION.
The states of individual safety functions can be accessed via the I/O mapping window for the respective
SafeMOTION module. This information is provided in the form of status bits.
To connect PVs to the status bits, the "I/O mapping" window must be opened. As can be seen in the
following image, the PV can then be selected in the "PV or channel name" column.
This topic has already been partly covered in Automation Studio Training: Integrated safety technology
(Safety) [SEM510.2] and should serve as a review and supplement.
• In SafeDESIGNER, convert output S_EStopOut on function block SF_EmergencyStop_V1_00
to type BOOL. Only standard data types are transferred, and no safe information.
• In the Safety View, a ToCPU_BOOL channel is then selected and a variable is created in the
program via drag-and-drop.
• This information can be accessed in the I/O mapping for the SafeLOGIC controller.
• In Automation Studio, additional information can be accessed in the I/O mapping for the
ACOPOS servo product family device with SafeMOTION being used (e.g. status of STO trigger-
ing, etc.).
Safe brake
output
Certain applications require testing a brake in fixed intervals by applying a defined torque to the engaged
brake.
The SBT safety function allows an engaged brake to be tested by applying a configurable stator current
for a specified period of time. This makes it possible to account for external forces (e.g. caused by a
hanging load).
The actual braking test (i.e. applying the torque) must be performed by the standard application. This
can be done using the special mode for the safe braking test provided by the PLCopen function block
MC_BR_BrakeTest_AcpAx (Bibliothek McAcpAx).
This safe braking test can be performed either manually using a command or automatically on a rising
edge on the SafeMOTION SBT Active bit (bit 24) of the SafeMOTION status word.
After the request is triggered by a falling edge on the input S_RequestSBT, SafeMOTION monitors the
process and sets the output S_SafetyStatusSBT to SAFTRUE after a valid braking test.
During monitoring, the output S_SafetyActivetSBT is set to SAFETRUE.
The output S_SafetyStatusSBT is reset after a timer has elapsed, indicating that the braking test must
be performed again.
The safety function makes it possible to modify module parameters from the standard application. To
do this, the first step is to instance the parameters in the application and then transfer them to the
SafeLOGIC controller using the safeDownloadData() function block in the AsSafety library.
Since the entire safe machine option data block is always transferred, the "enable bits" can be used
to enable each parameter. Each bit corresponds to a parameter. For parameters whose "enable bit" is
set, the default value (as configured in SafeDESIGNER) is overwritten by the value in the structure. For
parameters whose "enable bit" is not set, the default value (as configured in SafeDESIGNER) is retained.
The SafeMOTION module is then restarted, and the parameters are transferred to the SafeMOTION
module.
Safety-related parameters from the standard application will be changed! For this to be possi-
ble, measures must be implemented, which are described in the manual and in the safeDown-
loadData() function block!
1) Use this solution as example application to test the safe machine options.
° The solution can be installed via Tools - Upgrade (possibly necessary to adjust the node
number for the SafeLOGIC controller in the variable declaration and the password as
constants in the program).
° Activate the safe machine options in SafeDESIGNER on the SafeMOTION device.
The position window is generated when the safety function is requested. The next time a request is
made, the standstill tolerance position window is regenerated based on the current position.
The drive must be at standstill when the request is made or else an error will be triggered.
Torque on
motor
Speed Optional
One advantage of monitoring the deceleration ramp is that it reduces the assumed remaining distance
to standstill when an error occurs.
If a violation occurs during ramp monitoring, safe pulse disabling is activated immediately and the drive
switches to an acknowledgeable FUNCTIONAL FAIL SAFE error state .
The SS1 safety function does not include monitoring of the axis standstill. It simply activates
pulse disabling once the axis has come to a stop.
Right-click on SafeMOTION block in SafeDESIGNER for more information about safety func-
tions
Hardware \ Motion control \ SafeMOTION \ Safety technology \ Integrated safety functions \
Optional
As with SS1, it is possible to mon- Speed
The purpose of the ramp delay time parameter "Ramp monitoring - Enable delay time" (tRM_ED) is to
compensate for the different runtimes of standard and safety applications.
After being stopped by the standard application, the drive must be actively held at standstill.
Right-click on SafeMOTION block in SafeDESIGNER for more information about safety func-
tions
Hardware \ Motion control \ SafeMOTION \ Safety technology \ Integrated safety functions \
sSLP_LL
The axis must be homed successfully before using the Safely Limited Position function. If a
homing procedure is not completed successfully or the S_SafePositionValid status changes,
then the request for the SLP safety function causes the module to switch to the acknowledge-
able FUNCTIONAL FAIL SAFE error state.
To minimize the residual distance when the position window is exceeded, a position-dependent speed
limit is monitored in addition to the position.
When the position limit is approached, the monitored speed limit is calculated in such a way that the drive
will come to a full stop before the positioning limit is reached using the configured "Ramp monitoring -
Speed deceleration limit" (aRM_L) parameter.
sSLP_UL
Speed - sSLP_LL
vLIM LIMSLP,NEG LIMSLP,POS
vSM_T
vSM_T
Position
sSM_T sSM_T
If the position-dependent speed limit is violated, then the module changes to the acknowledgeable
FUNCTIONAL FAIL SAFE error state.
The difference between SMP and SLP is that SMP cannot be actively requested. It is either enabled or
disabled by the configuration.
When enabled, the current position is constantly monitored against a defined position window.
The "SMP - Lower position limit" (sSMP_LL) and "SMP - Upper position limit" (sSMP_UL) parameters can be
used to configure the limits of the monitoring range.
The SMP safety function only works with homed axes since it requires a safe absolute position.
If SMP is configured, a 15-minute timeout period begins when pulse disabling is activated. The homing
procedure must take place during this time.
When homing is completed and if there were no errors during monitoring, the S_SafetyActiveSMP
status bit is set to SAFETRUE.
As with the SLP safety function, the "Safe Maximum Position" safety function also monitors a position-de-
pendent speed limit in addition to the position in order to minimize the residual distance if the position
window is exceeded.
For more information, see the description of the "Safe Limited Position" (SLP) safety function.
The purpose of the ramp delay time T(Delay time to start ramp monitoring) is to compensate for the different runtimes
of standard and safety applications.
As with SS1 and SS2, the deceleration ramp monitoring can be adapted according to requirements
so that either only the deceleration time or both the deceleration time and the deceleration ramp are
monitored.
The difference between SMS and SLS is that "Safe Maximum Speed" cannot be actively requested. It is
either enabled or disabled by the configuration. When enabled, the current speed is constantly monitored
against a defined limit.
If the limit is exceeded, safe pulse disabling is activated immediately and the acknowledgeable FUNC-
TIONAL FAIL SAFE state is entered.
t t
tSDI_ED tSDI_ED
t t
sSM_T
Position Position
sSM_T
sSM_T
t t
sSM_T
Figure 24: Safe Direction, negative Figure 25: Safe Direction, positive
The safe direction function can be enabled in parallel with other safety functions. For example, Safely
Limited Speed can be limited to a certain direction.
The purpose of the delay time T(Delay time to start SDI [μs]) is to compensate for the different runtimes of
standard and safety applications.
With the SLI safety function, a movement is monitored with respect to a defined number of increments.
Control bit
SLI
Status bit
SLI
Speed
vSM_T
vSM_T
t
Position
sSLI_L ]
sSLI_L
sSLI_L ]
sSLI_L sSLI_L
sSLI_L t
The safe axis must be at standstill when this function is enabled. A position window is then generated
that is safety-monitored. This position window depends on the configured safe interval.
The standard application must guarantee that this position window is not exceeded. If the interval is
violated, safe pulse disabling is activated immediately and an acknowledgeable error state is triggered.
After the safety function is disabled, monitoring continues for the time T(SLI OFF Delay) This prevents con-
tinuous movement caused by constant jogging.
The SLA safety function is used to monitor the acceleration or deceleration with respect to defined max-
imum limits.
Status bit
SLA
t
Speed
vSM_T
vSM_T t
Acceleration Deceleration -
Acceleration+ +
aSLA_DEC_N_L
1 2 3
aSLA_ACC_P_L
t
aSLA_ACC_N_L
aSLA_DEC_P_L
Acceleration -
Deceleration +
6 Summary
You should now be familiar with B&R's approach to safe motion control.
You have learned about the available safety components and can adapt them optimally to your own
applications.
The solutions for the examples are not considered to be a safety application, and should instead be a
practical reference for the safety tools in Automation Studio and SafeDESIGNER.
Exercise
The goal of this exercise is to prepare an ACOPOSmulti SafeMOTION inverter module for operation.
• Create a project in Automation Studio and add the hardware (SafeLOGIC controller, ACOPOS-
multi, etc.). Assign the node numbers based on the hardware used.
When specifying the device parameters, you will need to specify that the ACOPOSmulti
SafeMOTION inverter module's DC bus will be supplied with 24 V. (Right click on the ACOPOS
configuration)
• Parameter "Velocity Error Monitoring" in the ACOPOS configuration (Real Axis \ Movement Er-
ror limits\) must be set to "mcSTOP_AUTOMATIC1".
• Open SafeDESIGNER and add function block SF_SafeMC_BR_V3.
• Connect the S_AxisID input to the axis reference variable and the Activate input to a constant
with the value TRUE.
• Set the following parameters in the parameter list for the safe axis in SafeDESIGNER (to allow
movement with minimal work):
Name Value Reason
SMS - Enable (Safe Maximum Speed) Disabled Is initially disabled because the
maximum speed is set to 0 by
default, and would thus gener-
ate an error when starting.
Encoder monitoring - Position error monitoring Disabled Is initially disabled because the
- Enable tolerance is set to 0 by default,
Encoder monitoring - Speed error monitoring - Disabled and would thus generate an er-
Enable ror when starting.
The following application example illustrates one possible use of the Safe Position Monitor function on
the SafeLOGIC controller.
As an option, STO can also be used with a time delay or SS1 can be used.
Right-click on SafeMOTION block in SafeDESIGNER for more information about safety func-
tions
Hardware \ Motion control \ SafeMOTION \ Safety technology \ Integrated safety functions \
The emergency switch-off is safety-compliant and used 2-wire technology, and is to be used
as an equivalent input.
This input together with function block SF_EmergencyStop_V1_00, which also includes func-
tionality for confirmation, provides activation for STO on the SafeMC block.
The green button on the hardware structure should be used for confirmation in addition to start
and stop.
Figure 29: The output of the EmergencyStop function block can now be connected to the STO input
In the standard application, the reset button is used with the MpAxis function block via IO-
mapping and the available simple status of the emergency switch-off button is connected to
input "Power" of MpAxisBasics using a NC contact.
Under "General settings - Standstill monitoring" it may be necessary to set "Speed tolerance"
to the minimum value in order to prevent an error during homing that would keep homing from
being completed.
Figure 30: Implementing direct homing in SafeDESIGNER "SRequestHoming" is forced in Debug mode.
Right-click on SafeMOTION block in SafeDESIGNER for more information about safety func-
tions
Hardware \ Motion control \ SafeMOTION \ Safety technology \ Integrated safety functions \
Solution: RSP
Figure 31: Possible connection example with logic blocks added (multiple usage)
For RSP to function properly after a restart, STO and SOS must be activated during start-up.
Easy assignment carried out via drag-and-drop or use of a global variable in SafeDESIGNER.
The signal is negated so that a signal is only transferred to the standard application when the
emergency switch-off is pressed.
Figure 33: Assigning an internal I/O channel to the CPU of a SafeLOGIC controller in SafeDESIGNER
Figure 34: Additional data types to transfer from the safety application via the SafeLOGIC controller
Figure 35: I/O mapping for SafeMOTION to obtain information about a safety violation
1) Use this solution as example application to test the safe machine options.
° The solution can be installed via Tools - Upgrade (possibly necessary to adjust the node
number for the SafeLOGIC controller in the variable declaration and the password as
constants in the program).
° Activate the safe machine options in SafeDESIGNER on the SafeMOTION device.
Right-click on SafeMOTION block in SafeDESIGNER for more information about safety func-
tions
Hardware \ Motion control \ SafeMOTION \ Safety technology \ Integrated safety functions \
Figure 36: Connect the function block for the mode switch
Light curtains:
Settings for the SI module (input 1&2 on the SI4100):
• Variable for the equivalence input
• Set to no pulse
• Set Filter Off to 1 ms
• Set discrepancy time to approx. 50 ms
Figure 37: Connect the function block for the light curtain
Set SS1 Ramp Monitoring Time to 3,000,000 µs and do not turn on ramp monitoring.
Figure 38: Connection to the SS1 safety function, SS1 should only be active in automatic mode, the light curtain is
ignored in manual mode.
Right-click on SafeMOTION block in SafeDESIGNER for more information about safety func-
tions
Hardware \ Motion control \ SafeMOTION \ Safety technology \ Integrated safety functions \
SS2 is not permitted to be triggered on the SafeMOTION block in SafeDESIGNER when auto-
matic mode is active or when the green button has been pressed. (Due to the idle current prin-
ciple, a safe, logical 0 triggers the safety function. Thus manual mode and pressing the green
button are covered and SS2 is not triggered either in automatic mode or when the green button
is pressed.)
In the standard application, the following code is sufficient for the manual process:
IF ((gdiModeManual) AND (gdiStartStop) AND (MpAxisBasic_0.PowerOn)) THEN
MpAxisBasic_0.JogPositive := TRUE;
ELSE
MpAxisBasic_0.JogPositive := FALSE;
END_IF
Since a scaling of 1000 units per revolution is set, parameter SLS1 must be set to 2500.
On the SafeMC block, it is only necessary to invert sbModeManual with a NOT_S and connect
it to S_RequestSLS1. (Idle current principle)
In the standard application, a maximum speed of 2500 units/s must be set in the parameter
structure for MpAxisBasic when jogging so a safety violation is not generated.
Hardware \ Motion control \ SafeMOTION \ Safety technology / Programming the safety func-
tion / SafeMOTION help tool
In the analysis in Trace in the testing environment, the problem is already evident (sampling
rate of 800 µs, derivative of SafeMC Actual Speed ACP10PAR_SAFEMC_SPEED_ACT) using
the current value. If the currently measured speed contains noise, then deviations will also be
seen in the acceleration.
Figure 40: Acceleration calculated using the current speed with switched on controller and axis at standstill (limit
values for the acceleration -16,250 to 20,000 units/s2)
Figure 41: Extension to function block for mode switch neutral position
Figure 42: Connection for safety request in the neutral position of the mode switch
The Automation Academy provides targeted training courses for our customers as well as our own em-
ployees.
At the Automation Academy, you'll develop the skills you need in no time!
Our seminars make it possible for you to improve your knowledge in the field of automation engineering.
Once completed, you will be in a position to implement efficient automation solutions using B&R technol-
ogy. This will make it possible for you to secure a decisive competitive edge by allowing you and your
company to react faster to constantly changing market demands.
Seminars
Training modules
Topic categories:
Our training modules provide the basis for learning both at seminars ➯ Control technology
as well as for self-study. These compact modules rely on a consistent ➯ Motion control
didactic concept. Their bottom-up structure allows complex, interre- ➯ Safety technology
lated topics to be learned efficiently and effectively. They serve as
➯ HMI
the best possible companion to our extensive help system. The train-
ing modules are available as downloads and can be ordered as print- ➯ Process control
ed versions. ➯ Diagnostics and service
➯ POWERLINK and openSAFETY
ETA system
Would you like additional training? Are you interested in finding out what the B&R
Automation Academy has to offer? You've come to the right place.
Detailed information can be found under the following link:
www.br-automation.com/academy