Resolving Missing Free Function Blocks on SINAMICS G120 CU250S-2
This field reference walks through the exact procedure to surface the Free Function Blocks (FFB) library inside a SINAMICS G120 CU250S-2 project when STARTER commissioning software does not show the FFB node in the drive navigator. The same root cause and fix apply to any SINAMICS G120 family Control Unit (CU230P-2, CU240B-2, CU240E-2, CU250S-2) shipped from the factory, but the parameter range and instance counts shown here are tailored to the CU250S-2 with firmware V4.7.11 and STARTER V5.1.1.2 plus the matching support package.
1. Problem Description
After creating or opening a STARTER project that targets a SINAMICS G120 CU250S-2 Control Unit (PROFINET or PROFIBUS variant), engineers frequently cannot locate the Free Function Blocks. Typical symptoms include:
- The entry Free function blocks is absent from the project navigator under Control Unit > Commissioning > Function blocks.
- Inserting an FFB instance (AND, OR, RSR, TIMER, CNT) via the parameter tree is impossible because the parameter group p20000-p20999 is hidden.
- The online trace does not expose any FFB inputs or outputs because the runtime group is disabled.
- Parameter list filter "free function blocks" returns zero hits even after a full offline-to-online upload.
The drive itself functions correctly: motor control, ramp-function generator, ON/OFF1, and PROFIdrive telegram handling are all healthy. The FFB visibility issue is a configuration oversight in STARTER, not a hardware fault.
2. Root Cause
FFB are gated behind a feature bit that STARTER only exposes when the user explicitly activates the function module during the Control Unit configuration wizard. Factory default projects ship with the FFB module deactivated, which causes:
- The FFB node is filtered out of the navigator.
- Parameters in the p20000-p20999 range remain hidden in the parameter list.
- The runtime group sampling time (p20000[0]) is set to 0 ms, so no execution occurs even if instances are inserted via TIA Portal/Startdrive later.
This is documented in chapter 6.14 "Free function blocks" of the SINAMICS G120 CU250S-2 operating instructions. See the official manual at SINAMICS G120 CU250S-2 Operating Instructions.
3. Prerequisites
| Item | Requirement | Notes |
|---|---|---|
| Control Unit | SINAMICS G120 CU250S-2 PN (6SL3246-0BA22-1FA0) or CU250S-2 DP (6SL3246-0BA22-1PA0) | CU250S-2 supports Safety Integrated (STO, SS1, SBC) plus FFB |
| Power Module | PM240-2 (FS A-F) or PM250 | Sized to motor current |
| Firmware | V4.7.11 (or compatible V4.7 SP) | Verify via p0018, r0018 |
| STARTER | V5.1.1.2 + Support Package for V4.7 | Match support package to firmware branch exactly |
| Motor | Any induction motor (e.g., 1LE1) or synchronous (1FK7, 1FT7) | Configured in motor wizard |
| 24 V supply | Applied to CU terminals 31, 32 | Required for STARTER to go online |
| Connection | PROFINET, PROFIBUS, USB, or RS232 | STARTER > Accessible nodes |
Verify the firmware version before commissioning. From STARTER online, navigate to Drive > Diagnostics > Version and confirm r0018 reports 041011 (V4.7.11). The support package must match the firmware branch; mismatched combinations cause STARTER to refuse to load the project or to mark FFB parameters as "unknown".
4. Step-by-Step: Enabling FFBs in STARTER
The procedure below assumes an existing offline project with the CU250S-2 inserted. If a fresh project is required, create one with Project > New > Drive > SINAMICS G120 and select CU250S-2 explicitly.
- Open the project in STARTER and connect to the target device via Online > Accessible nodes.
- In the project navigator, right-click the CU250S-2 drive icon and select Configuration (or double-click Control Unit > Configuration). The configuration dialog opens with a list of wizard pages on the left.
- Navigate to the wizard page labeled Function modules (sometimes titled Select function modules or Activate free function blocks).
- Tick the checkbox Activate free function blocks.
- Click Next through the remaining wizard pages. Accept defaults if other modules (e.g., technology controller, extended setpoint channel) are not required.
- Click Finish. STARTER will prompt to save and recompile the project.
- After recompilation, right-click the drive > Properties > Free function blocks. The FFB entry should now appear in the navigator.
- Right-click Free function blocks > Insert new block. Choose from AND, AND4, OR, OR4, XOR, XOR4, NOT, RSR, RSE, DFF, TIMER, MFP, PCL, PDE, PDF, PST, CNT, ADD, SUB, MUL, DIV, AVA, NCM, PLI, MUX, BSW, or LVM.
- Configure the instance: name, input connections (binector/connector numbers), and behavior (e.g., RSR reset-dominant flag).
- Compile the project (Project > Compile) and download to the drive (Online > Download to target device).
5. Available Free Function Blocks on the CU250S-2
The CU250S-2 with firmware V4.7 ships a fixed pool of FFB instances. The maximum instance count per block type is firmware-dependent; the table below reflects V4.7.11.
| Block | Symbol | Max Instances | Function |
|---|---|---|---|
| AND2 / AND4 | & | 3 | 2-/4-input AND gate |
| OR2 / OR4 | ≥1 | 3 | 2-/4-input OR gate |
| XOR2 / XOR4 | =1 | 2 | 2-/4-input exclusive OR |
| NOT / NOT4 | — | 3 | Inverter |
| RSR | RS | 3 | RS flip-flop, reset-dominant |
| RSE | RS | 3 | RS flip-flop, set-dominant |
| DFF | D | 1 | D flip-flop, edge-triggered |
| TIMER | T | 3 | Pulse generator / on-delay / off-delay selectable |
| MFP | ┐┌ | 3 | Pulse generator (pulse make) |
| PCL | ┌┐ | 3 | Pulse contractor (pulse break) |
| PDE | ↑ | 3 | On delay |
| ↓ | 3 | Off delay | |
| PST | ┐_ | 3 | Pulse stretch |
| CNT | CT | 3 | Up/down counter with reset and load inputs |
| ADD / SUB / MUL / DIV | ±×÷ | 2 each | Two-input arithmetic |
| AVA | |x| | 2 | Absolute value |
| NCM | ≷ | 2 | Numeric comparator |
| PLI | ∫ | 2 | Polyline (piecewise linear interpolation) |
| MUX | ⇄ | 4 | Multiplexer / demultiplexer |
| BSW | ⊻ | 4 | Binary selector switch |
| LVM | ┬ | 2 | Limiter (clamp upper/lower bound) |
Each FFB instance consumes one slot in the runtime group. The runtime group sampling time is set by p20000[0] and must be non-zero (typical: 4 ms or 8 ms) for any FFB to execute. See chapter 6.14.3 of the CU250S-2 operating instructions for parameter layout.
6. RSR Configuration Example: Latched Start/Stop Pushbutton
The classic use case for an RS flip-flop on a G120 drive is creating a maintained start/stop logic from two momentary pushbuttons wired to digital inputs, then feeding the latched output into the ON/OFF1 command source (parameter p0840).
6.1 Required connections
- DI0 (terminal 5) = START pushbutton (NO contact to +24 V)
- DI1 (terminal 6) = STOP pushbutton (NC contact to +24 V, with a parallel resistor for source-type wiring) or wired as NC with sinking mode
-
FFB:RSR = RS flip-flop, set = DI0, reset = DI1, output Q = binector
r2090.0(or directly to p0840)
6.2 Parameter wiring
| Parameter | Value / Source | Description |
|---|---|---|
| p0840[0] | RSR.Q (r2090.0 mapped) or r20251.0 if directly using RSR output | ON/OFF1 command source |
| p0844[0] | 1 (always enable, fed by STO/SS1 if used) | OFF2 (coast stop) source |
| p0848[0] | 1 | OFF3 (quick stop) source |
| p20150[0] | 722.0 (DI0 status) | RSR set input binector |
| p20151[0] | 722.1 (DI1 status) | RSR reset input binector |
| r20251.0 | RSR output Q | Drives the bit used to feed p0840 |
6.3 Configuration procedure
- In STARTER, after enabling FFB, insert an RSR instance named e.g., "RSR_StartStop".
- Open the RSR parameter dialog. Set
p20150[0] = r0722.0(DI0 state) for the set input. - Set
p20151[0] = r0722.1(DI1 state) for the reset input. - Set
p20152[0] = 0(dominance = reset, standard RSR behavior). - Note the RSR output bit address (e.g.,
r20251.0) shown in the navigator. - Open parameter p0840[0] and set it to the RSR output:
p0840[0] = r20251.0(or use a CDS binector connector such asr2090.0if the wizard places the RSR output there). - Save, compile, and download.
7. Verification
After downloading, perform the following checks to confirm FFB are active and the start/stop logic works:
-
Runtime group active: Online > Drive > Function blocks > Runtime group. Confirm
p20000[0] = 4(ms) and the group status displays green. -
RSR output toggles: Online > Watch table. Force
r0722.0 = 1(simulate START). Observer20251.0 = 1within one cycle. Forcer0722.1 = 1. Observer20251.0 = 0. -
ON/OFF1 propagation: Observe
r0898.0(control word bit 0) followsr20251.0. When r0898.0 = 1, the drive enters "Ready to run" (r0002 = 0x...C). When r0898.0 = 0, drive commands OFF1 and ramps down per p1121. - Trace confirmation: Use STARTER trace with a 4 ms sampling interval to capture DI0, DI1, RSR.Q, and r0898.0 over a 5-second window. Trigger on START edge.
- Save RAM to ROM: After successful test, perform Copy RAM to ROM (or set p0971 = 1) to persist the configuration across power cycles.
8. Firmware and Software Compatibility Matrix
| CU Firmware | STARTER Version | Support Package | FFB Available? | Notes |
|---|---|---|---|---|
| V4.4 (legacy) | V4.5 / V5.1 | SP for V4.4 | Yes (smaller pool) | RSR/RSE available |
| V4.5 | V5.1.1.x | SP for V4.5 | Yes | Added MUX/BSW |
| V4.6 | V5.1.1.2+ | SP for V4.6 | Yes | Expanded counter range |
| V4.7 | V5.1.1.2 / V5.2 / V5.3 | SP for V4.7 | Yes | Current production branch |
| V4.7.11 | V5.1.1.2 (with SP) or V5.4+ | SP11 | Yes (full pool) | Match SP exactly |
| V5.1 (G120X) | V5.4 / Startdrive V15+ | SP for V5.1 | Yes | Different parameter numbering |
| V5.2 SP1+ | Startdrive V16+ | SP for V5.2 | Yes | STARTER not supported for V5.2+ |
STARTER V5.1.1.2 is the last widely-deployed version for V4.7 firmware. For V5.x firmware, Siemens requires Startdrive integrated in TIA Portal. Cross-version projects require a STARTER -> TIA Portal migration or a firmware upgrade before commissioning.
9. Migration to Startdrive in TIA Portal
For new installations or firmware upgrades beyond V4.7, the FFB library is configured in TIA Portal using Startdrive. The equivalent procedure:
- Open the TIA Portal project containing the G120 with Startdrive V15.1 or later.
- In the device view, double-click the CU250S-2. Open Properties > Function modules.
- Enable Free function blocks under the Function modules tab.
- Drag FFB from the catalog into the FFB editor.
- Use the interconnection editor to wire binectors and connectors.
- Compile and download to the drive.
Parameter numbering shifts slightly between STARTER and Startdrive; the binector/connector addresses remain consistent (e.g., r0722.0 for DI0), but the FFB instance numbers may differ. Existing STARTER projects with V4.7 firmware can be migrated to TIA Portal via Project > Migrate; verify FFB interconnections post-migration before relying on them.
10. Safety Considerations
The CU250S-2 supports Safety Integrated functions when ordered with the appropriate variant (-1FA0 for STO/SS1/SBC). FFB operate in the standard (non-safety) control path. Critical considerations:
- STO (Safe Torque Off) must use the dedicated safety terminals (e.g., F-DI on CU250S-2) and cannot be latched via FFB.
- SS1 (Safe Stop 1) requires parameterized deceleration and STO activation; the FFB-based start/stop logic must be subordinate to SS1 (i.e., SS1 overrides ON/OFF1).
- Emergency stop per ISO 13850 and IEC 60204-1 must be wired to the safety circuit, not into a non-safety FFB path.
- The FFB runtime group is single-threaded with the standard control loop; a slow scan (p20000[0] > 16 ms) can delay responses to operator commands.
- Do not implement SIL-rated functions using FFB logic. For SIL 1/2/3, use the integrated Safety functions or a separate safety relay.
11. Troubleshooting Matrix
| Symptom | Probable Cause | Fix |
|---|---|---|
| FFB node absent from navigator | FFB not enabled in wizard | Re-run Control Unit configuration wizard, tick "Activate free function blocks" |
| FFB present but no execution | Runtime group sample time p20000[0] = 0 | Set p20000[0] to 4 or 8 ms |
| FFB parameters show "unknown" in parameter list | STARTER support package mismatch with firmware | Install matching support package from Siemens support portal |
| RSR output does not toggle | Input binector wiring wrong (e.g., r0722.x used instead of r0722.x after FFB activation) | Verify input binector via STARTER signal trace; re-wire to correct address |
| ON/OFF1 does not respond to RSR | p0840 wired to wrong source or r0898.0 masked by OFF2/OFF3 | Confirm p0840[0] = RSR output; check p0844, p0848 are 1; verify no STO active |
| Configuration wizard missing "Activate free function blocks" checkbox | Wrong support package or firmware version | Update STARTER + SP to match CU firmware |
| Drive faults F07935 after FFB activation | Binector output connected to two sources (drive-side fault) | Check double interconnection; use exclusive connectors |
| FFB work online but lost after power cycle | Configuration not saved to ROM | Issue Copy RAM to ROM (p0971 = 1) |
| FFB runs too slow / sluggish response | Runtime group set to 16 ms or higher | Lower p20000[0] to 4-8 ms; verify CPU loading |
12. Diagnostic Flowchart
13. Frequently Asked Questions
Why does my STARTER project not show Free Function Blocks on a new G120 CU250S-2?
The FFB library is hidden by default. Open the Control Unit configuration wizard and tick "Activate free function blocks", then recompile and download. FFB will then appear in the navigator under the drive tree.
Does enabling FFBs on the CU250S-2 require a license?
No. The full FFB pool is included in standard CU250S-2 firmware (V4.7 and V5.x). No CF card license, password, or web license activation is needed.
Can I use an RSR inside FFB to implement Safe Torque Off (STO)?
No. FFB logic is non-safety and runs on the standard control processor. STO, SS1, and SBC require the Safety Integrated terminals (F-DI) and dedicated safety parameters. Using RSR for STO violates SIL requirements.
What is the default runtime group sampling time for FFB on the CU250S-2?
p20000[0] = 0 by default (FFB disabled). After activation, set it to 4 ms or 8 ms for typical logic. Higher values (16-32 ms) may be acceptable for slow sequencing but delay operator commands.
My STARTER project was created in V5.1.1.2 but the drive has V4.7.11 firmware. Will FFB work?
Yes, provided the support package for V4.7 is installed in STARTER. The wizard will expose FFB only if the support package matches the firmware branch. Mismatched combinations hide FFB and related parameters.