Description of the blocks
5.2 Function blocks (S7-1200/1500)
5.2.7 Function block SINA_SPEED (FB285)
5.2.7.1 Description
Figure 5-8 SINA_SPEED S7 1200/1500 CPU block
Description
The corresponding instance data block is automatically created when the FB285 (SINA_SPEED)
is integrated.
Can be used in the following CPUs: SIMATIC S7-1200/1500
5.2.7.2 Calling OBs
Calling OBs
The block can be alternatively installed in the following OBs:
• Cyclic task: OB1
• Cyclic interrupt OB: e.g. OB32
5.2.7.3 Called blocks
Called blocks
DPRD_DAT/SFC14
DPWR_DAT/SFC15
Blocks for activating the SINAMICS with SIMATIC S7-1200/1500 in the TIA Portal
Operating Manual 109
Description of the blocks
5.2 Function blocks (S7-1200/1500)
5.2.7.4 Function description - general
Description of functions
Using the function block, a SINAMICS drive can be cyclically activated with the standard
telegram 1.
Note
When configuring the SINAMICS drive, you must ensure that the standard telegram 1 is selected
for communication.
Note
The interface for the block is limited to just a few inputs and outputs. All of the signals of the
telegram can be reached in the direction of the setpoint at any time via the input "ConfigAxis".
When the block is inserted, the inputs are filled with default values.
The axis is switched on via the input bit "EnableAxis" = 1. "1" is preassigned to OFF2 and OFF3
via the input "ConfigAxis" and they do not have to be written by the user for operation.
The axis is ready to be switched on if there is no active error – "Error"= "0" – and no switch-on
inhibit – "Lockout" = "0".
The speed setpoint is specified directly on the block input "SpeedSp" in the REAL format. To
undertake the necessary normalization of the setpoint, "RefSpeed" must be entered at the input
– this corresponds to the parameter p2000 in the SINAMICS drive. The actual speed value is
output at the output "ActVelocity" in the REAL format.
5.2.7.5 Input interface of the SINA_SPEED
Input interface SINA_SPEED
Input signal Type Default Meaning
EnableAxis BOOL 0 "EnableAxis" = 1 → switching on the drive
AckError BOOL 0 Acknowledgement of axis fault → "AckFlt"=1
SpeedSp REAL 0.0 [rpm] Speed setpoint
RefSpeed REAL 0.0 [rpm] Rated speed of the drive → p2000
ConfigAxis WORD 3 For additional information, see Pre-assignment of the ConfigAxis
input (Page 111)
HWIDSTW HW_IO 0 Symbolic name or HW ID on the SIMATIC S7-1200/1500 of the
setpoint slot, see Selection of the right hardware submodules
(Page 24)
HWIDZSW HW_IO 0 Symbolic name or HW ID on the SIMATIC S7-1200/1500 of the
actual value slot, see Selection of the right hardware submodules
(Page 24)
Blocks for activating the SINAMICS with SIMATIC S7-1200/1500 in the TIA Portal
110 Operating Manual
Description of the blocks
5.2 Function blocks (S7-1200/1500)
5.2.7.6 Pre-assignment of the ConfigAxis input
Pre-assignment of the ConfigAxis input
ConfigAxis Meaning PZD Interconnection in the drive Default
Bit0 OFF2 1 r2090.1 = p 844[0] 1
Bit1 OFF3 1 r2090.2 = p 848[0] 1
Bit2 Inverter enable 1 r2090.3 = p 852[0] 1
Bit3 Ramp-function generator enable 1 r2090.4 = p1140[0] 1
Bit4 Continue ramp-function generator 1 r2090.5 = p1141[0] 1
Bit5 Speed setpoint enable 1 r2090.6 = p1142[0] 1
Bit6 Direction of rotation 1 r2090.11 = p1113[0] 0
Bit7 Holding brake must be opened 1 r2090.12 = p855[0] 0
Bit8 Motorized pot. setpoint higher 1 r2090.13 = p1035[0] 0
Bit9 Motorized pot. setpoint lower 1 r2090.14 = p1036[0] 0
Bit10 Reserve - can be used as required (bit 8) 1 r2091.8 0
Bit11 Reserve - can be used as required (bit 9) 1 r2091.9 0
Bit12 Reserve - can be used as required (bit 15) 1 r2091.15 0
Bit13 0
Bit14 0
Bit15 0
5.2.7.7 Output interface SINA_SPEED
Output interface SINA_SPEED
Output signal Type Default Meaning
AxisEnabled BOOL 0 Operating mode is executed or enabled
Lockout BOOL 0 1 = switch-on inhibit active
ActVelocity REAL 0.0[rpm] Current velocity → depending on the normalization factor RefSpeed
Error BOOL 0 1 = group fault present
Status INT 0 16#7002: No error – block is being processed
16#8401: Error in drive
16#8402: Switching on inhibited
16#8600: Error DPRD_DAT
16#8601: Error DPWR_DAT
DiagID WORD 0 Expanded communication error →SFB call error
Note
The complete status data of Telegram 1 can be found in Appendix (Page 145).
Blocks for activating the SINAMICS with SIMATIC S7-1200/1500 in the TIA Portal
Operating Manual 111
Description of the blocks
5.2 Function blocks (S7-1200/1500)
5.2.7.8 Troubleshooting the SINA_SPEED function block
Troubleshooting the SINA_SPEED function block
The group error "Error" is set if the SINAMICS drive is faulted or the switch-on inhibit of the
SINAMICS drive is active or if the call of the SFB reports an error. A corresponding "Status" is also
output:
Error number Meaning Remedy
Status
16#7002 No fault active
16#8401 Drive fault active Evaluate active errors of the SINAMICS per acyclic commu‐
nication
16#8402 Switching on of drive inhibited active Check for parking axis, safety active, parameter p10 ≠ 0
16#8600 SFB call error active Clearing the communication fault
16#8601
• The faults of the SINAMICS drive can be acknowledged via the "AcktError" input.
• The fault of the SFB call is displayed at the DiagID output and must be checked by the user.
Once this fault has been cleared or goes away, the group error "Error" is rescinded as needed
and the error ID "Status" is updated.
Note
If error message 8092(hex) occurs at the DIAGID output, the S7-1x00 firmware must be
checked. The following applies:
• S7-1200 Firmware at least 2.x
• S7-1500 Firmware at least 1.1
Blocks for activating the SINAMICS with SIMATIC S7-1200/1500 in the TIA Portal
112 Operating Manual