This guide shows how to configure a Siemens S7-1500 PLC to control a SINAMICS G120 drive’s speed using the FB285 (SINA_SPEED) function block.
The document describes the SINAMICS drive library available in TIA Portal, which provides function blocks such as SINA_POS (FB284) and SINA_SPEED (FB285) for cyclic data exchange between a Siemens PLC and a G120/S120 drive. FB285 enables speed control via standard telegram 1 and includes pin definitions for inputs and outputs.
Step‑by‑step configuration instructions cover creating a new S7‑1500 project, adding the PLC and G120 devices, setting IP addresses, inserting the FB285 block into OB1 (or a cyclic interrupt OB like OB32), assigning variables to the block pins, downloading the project, and using a monitoring table to command and read the drive speed. Precautions about telegram selection and avoiding conflicting function blocks are also provided. This manual is written in Chinese.
| Execute | BOOL, default 0 |
|---|---|
| Velocity | REAL, default 0 rpm |
| FactPRM | REAL, default 0 |
| Error | BOOL, default 0 |
| ErrorId | INT, default 0 |
| VeloAct | REAL, default 0 rpm |
FB285 can be called in the cyclic task OB1 and in cyclic interrupt OBs such as OB32.
Standard telegram 1 (PZD2/2) must be selected for the G120 device.
The value set in the drive’s P2000 parameter must match the value assigned to the FactPRM pin.