On a CU240E-2, macro 1 (p0015 = 1) gives two fixed speeds (p1003, p1004) with separate run right/left inputs. Macro 3 (p0015 = 3) gives four (p1001–p1004), and DI0 both starts the drive and selects fixed speed 1. Active selections add together; check the result in r1024.
- In macro 3, DI0 and DI1 change purpose.
- Two active presets add (10 + 15 = 25).
- Selecting a speed does not start the drive on its own.
- PLC transitions must be break-before-make.
Choose Fixed Speeds for Repeatable Machine Stages
Fixed speeds suit machines with a few known stages, such as slow inspection, transfer and production. For each stage, record the direction, speed, selector contacts and stop requirement before you touch the drive.
Macro 1 vs Macro 3: Input Mapping
| Selection | Macro 1 | Macro 3 |
|---|---|---|
| Preset parameters | p1003, p1004 | p1001 – p1004 |
| Start / direction | DI0 ON/OFF1 right · DI1 ON/OFF1 left | DI0 ON/OFF1 + fixed speed 1 |
| Speed inputs | DI4 → speed 3 · DI5 → speed 4 | DI1 → 2 · DI4 → 3 · DI5 → 4 |
| Fault acknowledge | DI2 | DI2 |
| Several active | Values add | Values add |
Practise macros on a real G120
Hands-on SINAMICS G120 training on live hardware, covering macros, fixed speeds, analogue scaling and PLC control — Pune or online.
EPLAN Wiring: 2 Fixed Speeds (Macro 1) and 4 Fixed Speeds (Macro 3)
Each macro gets its own sheet, because the same terminals are wired to different devices. Sheet 1 uses a three-position direction selector for macro 1; sheet 2 uses a maintained run switch on DI0 for macro 3, since DI0 also adds fixed speed 1.
- Supply and commonsFused PELV L+ goes to CU terminal 31, and 32 goes to M. Both DI commons go to M for source wiring: DI COM1 (69) for DI0–DI3 and DI COM2 (34) for DI4/DI5. If 34 is forgotten, the speed inputs never switch.
- Direction: one selector, two contactsIn macro 1, DI0 is ON/OFF1 right and DI1 is ON/OFF1 left. A three-position selector -S1 (L–0–R) makes the two run commands mechanically exclusive, which is better than two separate switches.
- Two fixed speeds + acknowledge-S4 → DI4 selects fixed speed 3 (p1003) and -S5 → DI5 selects fixed speed 4 (p1004). Both on gives p1003 + p1004. If only one may be active, use a selector. -S3 is the fault acknowledge pushbutton on DI2.
- Fault relay and the DI4/DI5 cautionRelay DO0 (20 → 19) lights -H1 on a fault. On the CU240E-2, DI4/DI5 are also the F-DI0 safety pair, so plan STO separately if it is required.
- Supply and commonsSame as macro 1: 31/32 for CU supply, DI COM1 (69) and DI COM2 (34) to M, GND (28) to M.
- DI0 = run AND fixed speed 1In macro 3, the maintained switch -S1 on DI0 gives ON/OFF1 and also selects fixed speed 1 (p1001). FS1 is part of every running request, so set p1001 with that in mind.
- Speed selectors FS2–FS4-S2 → DI1 (p1002), -S4 → DI4 (p1003), -S5 → DI5 (p1004). Every active input adds to p1001. Check each contact with r0722 and the result with r1024.
- Acknowledge and fault relay-S3 → DI2 acknowledges faults. Relay DO0 → -H1. The same DI4/DI5 safety caution applies.
| Device | Terminal | Macro 1 (2 fixed speeds) | Macro 3 (4 fixed speeds) | Check |
|---|---|---|---|---|
| -S1 | 5 (DI0) | ON/OFF1 right (selector R) | ON/OFF1 + fixed speed 1 (p1001) | r0722.0 |
| -S1 / -S2 | 6 (DI1) | ON/OFF1 left (selector L) | Fixed speed 2 (p1002) | r0722.1 |
| -S3 | 7 (DI2) | Acknowledge | Acknowledge | r0722.2 |
| -S4 | 16 (DI4) | Fixed speed 3 (p1003) | Fixed speed 3 (p1003) | r0722.4 |
| -S5 | 17 (DI5) | Fixed speed 4 (p1004) | Fixed speed 4 (p1004) | r0722.5 |
| M | 69, 34, 28, 32 | DI COM1, DI COM2, GND, 0 V | same | — |
| L+ | 31 · 20 → 19 | CU supply · fault relay → -H1 | same | — |
Training drawings for a CU240E-2. Check terminals and macros against the manual for your CU and firmware. Power circuit, EMC and STO wiring: G120 wiring and terminal parameters.
Additive Selection: Try the Selector Live
A preset number is an identifier, not its speed. With direct selection (p1016 = 1), every active input adds its value. Switch inputs below and watch r0722, r1024 and the motor respond.
Illustrative values: p1001 = 5, p1002 = 8, p1003 = 10, p1004 = 15 (Hz), max 50 Hz. Click the inputs, or let the demo run.
| Parameter | Meaning |
|---|---|
| p1001 – p1004 | Fixed speed setpoint 1 – 4 (in the displayed unit, Hz or rpm) |
| p1016 | Fixed-speed mode: 1 = direct (additive), 2 = binary |
| p1020 – p1023 | Selection inputs, connected by the macro (e.g. p1022 = r0722.4) |
| r1024 | Resulting fixed-speed request, before limits and ramps |
| r0722 | Digital input status bits |
PLC Selector Transitions
When a PLC changes stage, both preset outputs can be on for one scan and the request spikes. Make the rule “one preset at a time” explicit in the PLC, and test the transition as well as each steady state.
Commission in a Controlled Sequence
At step 6, keep motion prevented and record which r0722 bit changes for each contact; don’t rely on wire labels. Run step 7 at a low approved speed in a controlled area, watching the requested and actual speed and the stop response.
Troubleshoot Unexpected Speeds
| Symptom | Check first | Evidence |
|---|---|---|
| Speed higher than expected | Two presets active (or DI0 adding FS1 in macro 3) | r0722 bits, r1024 |
| Selector changes, request does not | Active command data set / setpoint routing | Online connections, parameter compare |
| Correct request, no movement | Run permissives, drive state, faults | Status word, fault history |
| Correct until power is removed | Non-volatile save (p0971) | Backup version, post-startup compare |
Change one thing at a time. When the process needs a continuously variable speed, continue with macro 12 analogue speed scaling.
Practical Lab: Prove the Selector Logic
Hands-on- A G120 with a CU240E-2 on a training rig, motor uncoupled or on a light load.
- Selector switches on DI0, DI1, DI2, DI4 and DI5, and the manual for your firmware. Estimated time: 40 minutes.
Prepare the test sheet
Use five columns: switch state, r0722 bits, selected presets, expected r1024, measured result.
Macro 1 tests
With a run command on DI0, test no preset, DI4 only, DI5 only, then DI4 + DI5.
Macro 3 tests
Include DI0 in every running test: DI0, DI0 + DI1, DI0 + DI4, DI0 + DI5.
No-run check
Select DI1, DI4 or DI5 without DI0 (macro 3), or without DI0/DI1 (macro 1).
Stop test in every state
Use the documented stop in each permitted state.
Record and back up
Save (p0971 = 1), power-cycle, compare parameters, and attach the record.
The input record, calculated request and observed state agree in every row, and the stop works from every permitted state.
Frequently asked questions
How do I wire SINAMICS G120 fixed speeds for macro 1 and macro 3?
Supply the CU240E-2 on 31/32 and take DI COM1 (69) and DI COM2 (34) to M for source wiring. For macro 1, wire a three-position selector to DI0 (right) and DI1 (left), and switches to DI4 and DI5 for fixed speeds 3 and 4. For macro 3, wire a maintained run switch to DI0 (ON plus fixed speed 1) and switches to DI1, DI4 and DI5 for fixed speeds 2–4. DI2 acknowledges faults in both. Check each input with r0722 and the result with r1024.
Do macros 1 and 3 use binary speed selection?
No. The documented configurations use direct selection (p1016 = 1), where each active input adds its preset. Several active inputs are not a binary preset number unless you deliberately configure binary mode.
Why is my G120 running faster than the fixed speed I set?
Two or more preset inputs are active together and their values add. In macro 3, DI0 also selects fixed speed 1, so p1001 is always part of the running request. Check r0722 and r1024.
Does selecting a speed always start the drive?
No. Macro 1 has separate run commands on DI0 (right) and DI1 (left). In macro 3, DI0 combines ON/OFF1 with fixed speed 1, so selecting DI1, DI4 or DI5 without DI0 does not start the motor.
Which parameters hold the fixed speed values?
p1001 to p1004 hold fixed speeds 1 to 4. The macro connects the selection inputs p1020 to p1023 to the digital inputs, and r1024 shows the resulting fixed-speed request.
How should a PLC switch between fixed speeds?
Drop the old preset output before setting the new one (break-before-make), or interlock so only one preset is active. Otherwise both presets add for a scan and the request spikes.
Can I copy these values to any G120?
No. Use the manual for your exact control unit and firmware, and confirm the available macros, input assignments, units and machine limits before applying a configuration.
Technical references
Use the edition that matches your hardware and firmware. The manuals establish the device facts; the worked values and animations here are training examples.