Control Functions
Control Functions
Control modes
Nine control modes are available for the SINAMICS V90 servo drive:
Basic control modes Pulse train input position control mode (PTI) 1)
Internal position control mode (IPos)
Speed control mode (S)
Torque control mode (T)
Fast pulse train input position control mode (Fast PTI)
Compound control modes Control change mode: PTI/S
Control change mode: IPos/S
Control change mode: PTI/T
Control change mode: IPos/T
Control change mode: S/T
1) Default control mode
p29003 C-MODE
0 (the first control mode) 1 (the second control mode)
4 PTI S
5 IPos S
6 PTI T
7 IPos T
8 S T
Refer to Section "DIs (Page 123)" for detailed information about DIs.
Note
Note that if p29003 = 5 and the motor has been working in speed control mode for a certain
period of time; or p29003 = 7 and the motor has been working in torque control mode for a
certain period of time, the fault code F7493 might appear on the drive BOP. This, however,
will not cause the motor to stop. The motor remains operative under this circumstance and
you can clear the fault code manually.
Note
Fault F52904 occurs when the control mode is changed via p29003. You must save the
parameter and then re-power on the servo drive to apply relevant configurations. For more
information about the remedy and acknowledgement of this fault, refer to Section "List of
faults and alarms (Page 387)".
Note
Switching conditions
For the switching from PTI or IPos to S or T, you are recommended to perform control mode
switching after the INP (in position) signal is at high level.
For the switching from S or T to PTI or IPos, you can perform control mode switching only
after the motor speed is lower than 30 rpm.
7.2.1 Servo ON
Note
Refer to Section "Digital inputs/outputs (DIs/DOs) (Page 122)" for detailed information about
DI parameterization.
Refer to Chapter "Parameters (Page 341)" for detailed information about parameters.
Note
When you set bit 0 of p29300 to 1, the following apply:
After the drive is powered on, it will be set to "S ON" state automatically.
After a fault is acknowledged, the drive will be set to "S ON" state automatically.
PTO: PTO:
PTO: PTO:
Note
After modifying parameter p29001, the reference point will lost. When the drive is working in
IPos control mode, you must perform referencing again.
Note
The function is unavailable in the Fast PTI control mode.
WARNING
Danger to life or malfunctions of the machine due to the motor travelling over the distance
limit
In T control mode, the motor travels over the distance limit if you only acknowledge the fault
without returning the axis to a position within the valid traversing range.
In S control mode, the motor travels over the distance limit if you only acknowledge the fault
without returning the axis to a position within the valid traversing range while signal CWL or
CCWL becomes from a low level (logic 0) to a high level (logic 1).
Acknowledge the fault, and then return the axis to a position within the valid traversing
range to prevent the motor from travelling over the distance limit.
Note
Make sure both signals CWL and CCWL are at a high level when the servo drive is
powered on.
In S control mode, the motor cannot rotate with no fault if you only acknowledge the fault
without returning the axis to a position within the valid traversing range while signal CWL
or CCWL keeps at a low level.
In PTI or IPos control mode, the motor cannot rotate with F7491/F7492 being triggered
again, if you only acknowledge the fault without returning the axis to a position within the
valid traversing range.
Note
DI parameterization
Refer to Section "Digital inputs/outputs (DIs/DOs) (Page 122)" for detailed information about
DI parameterization.
Refer to Chapter "Parameters (Page 341)" for detailed information about parameters.
SON in T mode
For detailed information about the digital input signals SON and EMGS, refer to Section
"Digital inputs/outputs (DIs/DOs) (Page 122)".
limit for the FIXED STOP function. An adjustable monitoring window for travel to fixed stop
prevents the drive from traveling beyond the window if the fixed stop should break away.
From the start position onwards, the target position is approached with the parameterized
speed (p2618). The fixed stop (the workpiece) must be between the start position and the
braking point of the axis; that is, the target position is placed inside the workpiece. The
preset torque limit is effective from the start, i.e. travel to fixed stop also occurs with a
reduced torque. The preset acceleration and deceleration overrides and the current speed
override are also effective. When the fixed stop is reached, the drive sets the digital output
torque limit reached (TLR).
Note
F7452 is disabled when the function of travelling to fixed stop is activated.
Note
If the drive is in fixed stop, it can be referenced using the control signal "Set reference point".
If the axis leaves the position that it had at detection of the fixed stop by more than the
selected monitoring window for the fixed stop p2635, the speed setpoint is set to 0, and fault
F7484 "Fixed stop outside of the monitoring window" is triggered with the reaction OFF3
(quick stop). The monitoring window can be set using the parameter p2635 ("Fixed stop
monitoring window"). It applies to both positive and negative traversing directions and must
be selected such that it will only be triggered if the axis breaks away from the fixed stop.
For more information about the parameters above, see Section "Parameter list (Page 343)".
Example
This example shows the operating procedures when you use the "Travel to fixed stop"
function in IPos control mode.
Prerequisites:
Use a 0.4 kW low inertia motor (rated torque = 1.27 Nm)
Procedures:
1. Set the target position of traversing block 0.
3. Set the required torque limit. The smaller value of the internal torque limit TLM and the
overall torque limit will be the active one.
4. Set the maximum following error by p2634 and the monitoring window by p2635.
Timing diagram
The position pulse train inputs come from either of the following two terminal groups.
Group 1 Group 2
Signal name Pin assignment Signal name Pin assignment
PTIA_D+ X8-1 PTIA_24P X8-36
PTIA_D- X8-2 PTIA_24M X8-37
PTIB_D+ X8-26 PTIB_24P X8-38
PTIB_D- X8-27 PTIB_24M X8-39
For more information about wiring, see Section "Control/status interface - X8 (Page 119)"
and "PTIs (Page 132)".
Pulse + Direction
You can select one of the setpoint pulse train input forms by setting the parameter p29010.
Note
After modifying parameter p29010, you must perform referencing again because the
reference point will lost after p29010 changes.
Parameter settings
DO configuration
Parameter setting
Encoder specifications
The encoder specifications are shown as follows:
Electronic gear
With the function of electronic gear, you can define the motor revolutions according to the
number of setpoint pulses, and sequentially define the distance of mechanical movement.
The minimum traveling distance of load shaft according to one setpoint pulse is called a
length unit (LU); for example, one pulse results in 1 µm movement.
The electronic gear ratio is a multiplier factor to pulse train setpoint. It is realized with a
numerator a
These four electronic gear ratios can be selected with the combination of the digital input
signals EGEAR1 and EGEAR2 (refer to Section "DIs (Page 123)").
Note
After a gear ratio is switched to another one via digital inputs, you need to wait 10 seconds
and then perform SERVO ON.
Note
The range of electronic gear ratio is from 0.02 to 200.
The electronic gear ratio can be set only at SERVO OFF state. After the setting, you need to
reference the drive again.
Note
P-TRG in PTI control mode
Note that the function "inhibiting pulse train by P-TRG in PTI control mode" as described in
this section and the rest of the manual is reserved for future use.
The digital input signal P-TRG is the default connection of DI6 in the position control mode.
In the pulse train input position control mode (PTI), P-TRG is level sensitive and can be used
to allow or inhibit positioning operation according to pulse train input setpoint:
0: positioning according to pulse train input setpoint
1: inhibit pulse train input setpoint
Timing diagram
DI configuration
The signal P-TRG is the factory setting of DI6.
Note
Refer to Section "Digital inputs/outputs (DIs/DOs) (Page 122)" for detailed information about
DI parameterization.
The signal P-TRG is active only when the digital input signal SON is in OFF state.
When the signal P-TRG is active in the PTI mode or a compound mode with PTI, the
alarm A7585 occurs.
Note
Control mode
The above four sources are valid in all control modes. You can switch among them when the
servo drive is running.
Note
Fault F7901 occurs when the actual speed exceeds the positive speed limit + hysteresis
speed (p2162) or the negative speed limit - hysteresis speed (p2162). Go to "List of faults
and alarms (Page 387)" for information about the acknowledgment of this fault.
Note
If the drive is working with external speed limit, the system continues to work automatically
after you repower on the 24 VDC power supply which is shut off unexpected for the drive. In
this case, do not touch the equipment.
Refer to "DIs (Page 123)" for more information about the digital input signals SLIM1 and
SLIM2.
Note
After the motor is commissioned, p1082, p1083, p1086, p29070 and p29071 set to the
maximum speed of the motor automatically.
Note
Control mode
The above four sources are valid in the PTI mode, the IPos mode and the S mode. You can
switch among them when the servo drive is running.
Note
When the motor torque exceeds the torque limit, fault F52911/F52912 appears. The fault
indicates the motor torque exceeds the torque limitation of the selected group which is
determined by TLM1 and TLM2.
Refer to "DIs (Page 123)" for more information about the digital input signals TLIM1 and
TLIM2.
In this case, analog input of 5 V corresponds to 50% of rated torque and 10 V corresponds to
100% of rated torque.
p29242 = 0
p29242 = 1
p29242 = 2
Function
A pulse train encoder output (PTO) which provides pulse signals can transmit the signals to
the controller to realize a closed-loop control system inside the controller, or transmit them to
another drive as pulse train setpoint for a synchronous axis.
Electronic gear
The electronic gear ratio is a multiplier factor to the PTO to a controller. It is realized with a
numerator and a denominator. One numerator (p29031) and one denominator (p29032) are
used for the PTO electronic gear ratio:
Note
When you use the PTO electronic gear function, for the absolute encoder, the electronic
gear is based on the resolution of 8192 ppr.
The range of electronic gear ratio is from 0.02 to 200.
The electronic gear ratio can be set at SERVO OFF state only.
Note
PTO direction
For an application of fully closed-loop position control using PTI and PTO, you can set the
PTO direction with parameter p29033.
Note
When using the PTO function, the drive will output some pulses before the motor servo on if
you executing the following operations.
Default the drive with the BOP instruction.
Configure the motor ID on the drive.
Note
When you use the PTO electronic gear ratio function, zero mark will not be generated.
The unit of the fixed position setpoint is the Length Unit (LU). All subsequent position
setpoint, related speed value, and acceleration value will maintain the LU as the unit in
internal position control mode.
Taking a ball screw system for example, if the system has a pitch of 10 mm/revolution
(10000 µm/revolution) and the resolution of the length unit is 1 µm (1 LU = 1 µm), one load
revolution corresponds to 10000 LU (p29247 = 10000).
Note
If the value of p29247 increases by N times, the values of p2542, p2544 and p2546 should
increase by N times accordingly. Otherwise, the fault F7450 or F7452 occurs.
Relevant parameters
Parameter settings
Note
When the motor is working in the IPos control mode, you need to check that whether the
values of the parameters p2542, p2544, p2546, p2573, and p2574 are your desired values.
The values are set automatically by the drive based on the encoder resolution.
NOTICE
Pre-conditions for using the absolute mode
The absolute mode can be used only after:
the axis has been referenced for incremental measuring system. Refer to Section
"Referencing (Page 241)" for detailed information about referencing.
the axis has been adjusted for absolute measuring system. Refer to Section "Adjusting
an absolute encoder (Page 207)" for reference.
Example
Note
After modifying parameter p29245, you must perform the referencing operation again.
Note
Pre-conditions for backlash compensation
The backlash compensation is active after
the axis has been referenced for incremental measuring system. Refer to Section
"Referencing (Page 241)" for detailed information about referencing.
the axis has been adjusted for absolute measuring system. Refer to Section "Adjusting an
absolute encoder (Page 207)" for reference.
Parameter settings
7.5.6 Referencing
Referencing modes
If the servo motor has an incremental encoder, totally five referencing modes are available:
Setting reference point with the digital input signal REF
External reference cam (signal REF) and encoder zero mark
Encoder zero mark only
External reference cam (signal CWL) and encoder zero mark
External reference cam (signal CCWL) and encoder zero mark
If the servo motor has an absolute encoder, the five referencing modes are available. You
can also adjust the absolute encoder (by setting current position as the zero position) with
the BOP function "ABS". Refer to Section "Adjusting an absolute encoder (Page 207)" for
details.
Note
Referencing mode for absolute encoder
If an absolute encoder is connected, the five referencing modes are available. You can
select the different referencing modes with parameter p29240. When p29240 = 1 to 4, the
referencing process can only be implemented before you use the "ABS" function. Once the
"ABS" function is implemented, the four referencing modes are not available any more.
Note
p29240 can be modified only when the drive is in IPos mode.
Setting reference point with the digital input signal REF (p29240=0)
Note
Preconditions for this referencing mode
The servo motor must be in "S ON" state and keep standstill.
The signal REF must be OFF under the following conditions:
– before power-on
– when switching from another referencing mode to this referencing mode
– when switching from another control mode to internal position control mode
The current position is set to zero at a rising edge of the signal REF and the servo drive is
referenced:
External reference cam (signal REF) and encoder zero mark (p29240=1)
The referencing is triggered by signal SREF. After that, the servo motor accelerates to the
speed specified in p2605 to find the reference cam. The direction (CW or CCW) for
searching the reference cam is defined by p2604. When the reference cam is reached
accelerates again to the speed specified in p2608 and the running direction is opposite to the
servo motor reaches the first zero mark, it starts to travel towards the reference point defined
in p2600 with the speed specified in p2611. When the servo motor reaches the reference
Note
During the referencing, if SREF is OFF, the referencing stops.
4. If the servo motor reaches the reference point, the signal REFOK (if configured) is output.
5. Switch off the signal SREF, and the referencing finishes successfully.
Note
During the referencing, if SREF is OFF, the referencing stops.
4. If the servo motor reaches the reference point, the signal REFOK (if configured) is output.
5. Switch off the signal SREF, and the referencing finishes successfully.
External reference cam (signal CCWL) and encoder zero mark (p29240=3)
The referencing is triggered by signal SREF. After that, the servo motor accelerates to the
speed specified in p2605 to find the reference cam. The direction (CCW) for searching the
motor decelerates to standstill with maximum deceleration. After that, the servo motor
accelerates again to the speed specified in p2608 and the running direction (CW) is opposite
servo motor finds the first zero mark, it starts to travel towards the reference point defined in
p2600 with the speed specified in p2611. When the servo motor reaches the reference point
finishes successfully.
The whole process is shown in the diagram below:
Note
During the referencing, if SREF is OFF, the referencing stops.
4. If the servo motor reaches the reference point, the signal REFOK (if configured) is output.
5. Switch off the signal SREF, and the referencing finishes successfully.
decelerates to standstill with maximum deceleration. After that, the servo motor accelerates
again to the speed specified in p2608 and the running direction (CCW) is opposite to the
motor finds the first zero mark, it starts to travel towards the reference point defined in p2600
with the speed specified in p2611. When the servo motor reaches the reference point
finishes successfully.
The whole process is shown in the diagram below:
Note
During the referencing process, the signals CWL and CCWL are unavailable. Once the
process is complete, the signals will act as limits signal again.
For the safety purpose, the maximum distance for searching the cam (p2606) and the
maximum distance for searching the zero mark (p2609) must be set.
Note
During the referencing, if SREF is OFF, the referencing stops.
4. If the servo motor reaches the reference point, the signal REFOK (if configured) is output.
5. Switch off the signal SREF, and the referencing finishes successfully.
Parameter settings
In the fixed position control mode, the signals POS1 and POS2 are default assignments of
DI7 and DI8 while the signal POS3 is not assigned:
Note
Configuration of POS3
If the POS3 is not assigned to any DI, its status is assumed to be 0, which means only the
following fixed position setpoints can be used:
Fixed position setpoint 1
Fixed position setpoint 2
Fixed position setpoint 3
Fixed position setpoint 4
After selecting a fixed position setpoint, the servo motor can start positioning at a rising edge
of the signal P-TRG.
The digital input signal P-TRG is the default assignment of DI6 in the internal position control
mode:
Selecting the target position and starting the positioning with the rising edge of the signal STEPF,
STEPB or STEPH
If the signal STEPF is enabled, the servo motor, at a rising edge of STEPF, traverses to next
fixed position setpoint. For example, if the servo motor currently locates at the fixed position
setpoint 3, the servo motor traverses to the fixed position setpoint 4 at a rising edge of
STEPF.
If the signal STEPB is enabled, the servo motor, at a rising edge of STEPB, traverses to
previous fixed position setpoint.
If the signal STEPH is enabled, the servo motor, at a rising edge of STEPH, traverses to the
fixed position setpoint 1.
Note
The servo drive can respond to the rising edge of the signal STEPF, STEPB or STEPH only
when the servo motor is at a standstill.
If the servo motor is at fixed position 8, a rising edge of STEPF is not responded.
If motor is at fixed position 1, a rising edge of STEPH is responded, but a rising edge of
STEPB is not responded.
During positioning, if the motor stops unexpectedly, the drive assumes that the target
position has been reached; for example, if the motor stops between POS2 and POS3
because of a fault after the signal STEPB (traversing to POS2) is given, the drive assumes
that POS2 has been reached.
Tolerance window
The tolerance window is preset to a quarter of one encoder revolution. After switching on the
drive, the difference between the saved position and the actual position is determined.
Based on the difference, the following situations apply:
Difference being within the tolerance window:
The position is reproduced based on the actual encoder value.
Difference exceeding the tolerance window:
The fault F7449 (for EPOS control mode) is output.
NOTICE
Multi-turn position loss resulting from the axis movement when the drive is power-off
When the drive is power-off, if the axis moves, the drive does not store the multi-turn
position (when using the virtual multi-turn encoder). The actual position loses.
Make sure that the motor holding brake function is enabled when you use the position
tracking function.
Example
An absolute encoder that can represent eight encoder revolutions is used here.
If the position tracking function is deactivated (p29243 = 0), the position for +/- 4 encoder
revolutions can be reproduced.
If you activate the position tracking function (p29243 = 1), and set the virtual multi-turn
p29244 = 24, and the gear ratio p29248/p29249 = 1, the position for +/- 12 encoder
revolutions (+/- 12 load revolutions with load gear) can be reproduced.
Note
If the ratio between the multi-turn resolution and the modulo range (p29246) is not an integer
number, fault F7442 is output.
To make the ratio between the multi-turn resolution and the modulo range an integer number,
observe the following formulas. The ratio v is calculated as follows:
Motor encoder without position tracking (p29243 = 0):
– For multi-turn encoders:
v = (4096 × p29247 × p29248)/(p29249 × p29246)
– For single-turn encoders:
v = (p29247 × p29248)/(p29249 × p29246)
Motor encoder with position tracking (p29243 = 1):
v = (p29244 × 29247)/p29246
For each encoder overflow, there is a load-side offset of 1/3 load revolution, after three
encoder overflows, the motor and load zero position coincide again. The position of the load
can no longer be clearly reproduced after one overflow.
In this case, if you activate the position tracking function (set p29243 = 1), and set the virtual
multi-turn p29244 = 24, the gear ratio is calculated with the encoder actual position value.
Note
Be sure to perform the "ABS" function again after you set p29243 to 1.
Refer to "DIs (Page 123)" for more information about the digital signals SPD1, SPD2 and
SPD3.
Note
If the drive is working with external analog speed setpoint, the system continues to work
automatically after you repower on the 24 VDC power supply which is shut off unexpected
for the drive. In this case, do not touch the equipment.
Parameter settings
In the S mode, when at least one of the three digital input signals SPD1, SPD2 and SPD3 is
at high level, one of the following parameter values is used as speed setpoint.
Note
In S mode or T mode, when the servo motor is ready to run, signal CWE or CCWE is a must
to start running the motor.
For more information about signals CWE and CCWE, refer to "DIs (Page 123)".
Parameter settings
DI configuration
Note
For more information about the signal ZSCLAMP, refer to "DIs (Page 123)".
Parameter settings
Refer to "DIs (Page 123)" for detailed information about the signal TSET.
Note
The value of analog input 2 can be monitored through parameter p29351.
Parameter settings
Note
In S mode or T mode, when the servo motor is ready to run, signal CWE or CCWE is a must
to start running the motor.
For more information about the signals CWE and CCWE, refer to "DIs (Page 123)".