Skip to main content
Siemens · Level 01 practical guide

SINAMICS G120 Three-Wire Control: Macro 19 and Macro 20

Watch a START/STOP cycle, try macro 19 against macro 20 in a live simulator, and wire the pushbutton panel from EPLAN-style drawings.

2,500+ engineers trained 4.9/5 Google rating 21+ years, Chinchwad, Pune Next batch: contact for dates
Quick answer

Macro 19: DI0 = enable/OFF1 (NC STOP), DI1 = START clockwise, DI2 = START counter-clockwise, DI3 = acknowledge. Macro 20: DI0 = enable/OFF1, DI1 = START, DI2 = reverse selection, DI3 = acknowledge. AI0 is the speed in both. A short START press latches the run; STOP removes the enable.

  • STOP is NC, because DI0 is an enable.
  • START buttons are momentary.
  • Reset moves to DI3.
  • NC STOP is not an E-stop.

The Pushbutton Cycle: Enable, Start, Stop

Three-wire control suits local panels: a brief press starts, a separate STOP ends. Decide first whether operators need two direction START buttons (macro 19) or one START plus a direction selector (macro 20).

Three-wire start/stop cycle animationWith the normally closed STOP giving enable on DI0, a short START press latches the run, releasing START keeps it running, and pressing STOP removes enable for OFF1.STOP (NC)not pressedSTART (NO)releasedDI0 enable1DI1 start0Ready: STOP (NC) closed → enable onDI0 = 1 · DI1 = 0STOP (NC)not pressedSTART (NO)pressedDI0 enable1DI1 start1START pressed brieflyDI1 pulse → run latchedSTOP (NC)not pressedSTART (NO)releasedDI0 enable1DI1 start0START released → keeps runninglatched by the driveSTOP (NC)pressedSTART (NO)releasedDI0 enable0DI1 start0STOP pressed → enable off → OFF1DI0 = 0
The drive does the latching, so no extra self-holding PLC bit is needed.

Macro 19 vs Macro 20: Inputs and Behaviour

CU240E-2 inputMacro 19Macro 20
DI0Enable / OFF1 (NC STOP)Enable / OFF1 (NC STOP)
DI1START clockwise (pulse)START (pulse)
DI2START counter-clockwise (pulse)Reverse selection (held)
DI3AcknowledgeAcknowledge
AI0Speed referenceSpeed reference
Typical settingp3334 = 3p3334 = 4

Try it: press STOP and the START buttons, or flip the REV selector in macro 20. The demo runs a full cycle until you click.

+500−50last 20 s →
r0722 bits (DI 0 … 5)
012345
Actual speed
+0.0 Hz
Stopped

Simulator: 30 Hz reference, 15 Hz/s ramp. Behaviour for requests during motion follows your firmware’s timing diagram.

Build and test a real pushbutton panel

Hands-on G120 three-wire control with STOP/START panels and PLC integration — Pune or online.

Book a Free Demo Class

EPLAN Wiring: Macro 19 and Macro 20 Panels

Each macro gets its own sheet, because the same DI2 terminal is a START button in macro 19 and a held direction selector in macro 20.

Step 1 / 7
G120 macro 19 three-wire EPLAN pushbutton wiringNormally closed STOP -S0 on DI0 enable, momentary START CW -S1 on DI1, START CCW -S2 on DI2, RESET -S3 on DI3, speed potentiometer on AI0, fault lamp on relay DO0.0123456789ABCDEFSoftwell AutomationIndustrial Automation Training · PuneEPLAN-style training drawing=DRV+CP1 · SINAMICS G120 drive panelMacro 19 · START CW / CCWDrive: PM240-2 + CU240E-2Macro p0015 = 19Wiring: source (PNP) · PELV 24 VIEC 81346 · IEC 60204-1Rev: B (best practice)Reviewed: B. K. SinghSheet1 / 2L+PELV 24 V, fusedMCU supplyDI COM1 → MGND → M-U1 SINAMICS CU240E-2 · macro 19macro 19 · DI0 enable/OFF1 · DI1 start CW · DI2 start CCW · DI3 ack · AI0 speed3124 V IN5DI06DI17DI28DI31+10 V3AI0+4AI0−2GND20DO0 COM320 V IN69DI COM134DI COM219DO0 NO28GNDX1:1-S0STOP (NC)enable / OFF1X1:2-S1START CWX1:3-S2START CCWmomentary NO buttonsX1:4-S3RESETDI3 (not DI2!)-R2 speed pot4–2CU shield plate-H1faultWire colours · IEC 60204-1AC power L1–L3 / U–W (black)Neutral N (light blue)DC control L+ (dark blue)DC 0 V M (blue-white)PE (green-yellow)G120 macro 20 three-wire EPLAN pushbutton wiringNormally closed STOP -S0 on DI0 enable, momentary START -S1 on DI1, maintained reverse selector -S2 on DI2, RESET -S3 on DI3, speed potentiometer on AI0, fault lamp on relay DO0.0123456789ABCDEFSoftwell AutomationIndustrial Automation Training · PuneEPLAN-style training drawing=DRV+CP1 · SINAMICS G120 drive panelMacro 20 · START + directionDrive: PM240-2 + CU240E-2Macro p0015 = 20Wiring: source (PNP) · PELV 24 VIEC 81346 · IEC 60204-1Rev: B (best practice)Reviewed: B. K. SinghSheet2 / 2L+PELV 24 V, fusedMCU supplyDI COM1 → MGND → M-U1 SINAMICS CU240E-2 · macro 20macro 20 · DI0 enable/OFF1 · DI1 start · DI2 reverse select · DI3 ack · AI0 speed3124 V IN5DI06DI17DI28DI31+10 V3AI0+4AI0−2GND20DO0 COM320 V IN69DI COM134DI COM219DO0 NO28GNDX1:1-S0STOP (NC)enable / OFF1X1:2-S1STARTX1:3-S2REV selectmaintainedstart = pulse · direction = heldX1:4-S3RESET-R2 speed pot4–2CU shield plate-H1faultWire colours · IEC 60204-1AC power L1–L3 / U–W (black)Neutral N (light blue)DC control L+ (dark blue)DC 0 V M (blue-white)PE (green-yellow)
  1. Supply and commonsFused PELV L+ goes to 31, and 32 goes to M. DI COM1 (69) and GND (28) go to M.
  2. STOP as a normally-closed enable-S0 is an NC stop button → DI0. It keeps 24 V on DI0 (enable) until pressed, which requests OFF1. A broken wire also stops the drive. This is an operational stop, not an E-stop.
  3. Momentary start buttons (macro 19)-S1 START CW → DI1 and -S2 START CCW → DI2 are spring-return NO buttons. A short press starts the drive, and it keeps running after release while DI0 stays closed.
  4. Reset moves to DI3-S3 RESET → DI3. In three-wire macros DI2 is a command input, so a two-wire panel reused here would make the reset button start CCW. Pot -R2 on AI0, fault relay -H1.
  5. STOP enable (macro 20)Same NC stop -S0 → DI0 (enable / OFF1).
  6. One START plus a direction selector-S1 START (momentary) → DI1. -S2 is a maintained REV selector → DI2: open = clockwise, closed = reverse. Select the direction while stopped, then press START.
  7. Reset, speed and fault-S3 RESET → DI3, pot -R2 on AI0 (screened), fault relay -H1. Label the panel for macro 20, not 19.
EPLAN-style drawings with IEC 81346 tags and IEC 60204-1 wire colours. Orange marks the circuit being explained.
DeviceTerminalMacro 19Macro 20Check
-S0 STOP (NC)5 (DI0)Enable / OFF1Enable / OFF1r0722.0 = 1 at rest
-S16 (DI1)START CW (NO pulse)START (NO pulse)r0722.1
-S27 (DI2)START CCW (NO pulse)REV selector (held)r0722.2
-S3 RESET8 (DI3)AcknowledgeAcknowledger0722.3
-R2 pot1·3·2, link 4–2SpeedSpeedr0755
20 → 19-H1Fault relayFault relayprovoke a fault

Training drawings for a CU240E-2. Check terminals against the manual for your CU and firmware. Power, EMC and STO: G120 wiring guide.

Why Fault Reset Moves to DI3

Fault reset moves from DI2 to DI3 animationA two-wire panel with reset wired to DI2 starts the motor counter-clockwise under macro 19; moving reset to DI3 acknowledges faults correctly.Old two-wire panelRESET wired to DI2Macro 19: DI2= START CCWPress “RESET” → motor starts counter-clockwise ⚠Re-wired panelRESET on DI3Macro 19: DI3= acknowledgePress RESET → fault acknowledged, no motion ✓
Always re-check the panel wiring and labels when changing macro.

Diagnose Common Three-Wire Faults

ProblemInspect
START has no effectEnable on DI0, the START transition, data set, drive state
RESET changes directionReset still wired to DI2 from a two-wire panel
Runs only while the button is heldCommand routing still two-wire
Unexpected behaviour after STOP releaseStuck START, external latch, restart logic
Enabled but no speedAI0 reference, scaling, setpoint path

Check the raw r0722 bits first. A correct bit with the wrong response points to mapping or sequence; a bit that does not follow the button points to wiring. Compare with two-wire control and analogue speed scaling.

Practical Lab: Verify a Complete Operating Cycle

Hands-on
Before you start
  • A G120 with CU240E-2 on a training rig, macro 19 or 20 applied, NC STOP, momentary START buttons, motor uncoupled.
  • Record columns: operator action, r0722 bits, expected state, actual state. Estimated time: 40 minutes.
1

START without enable

Hold STOP pressed and press START.

Nothing starts: enable is missing.
2

Fresh start

Release STOP, then press and release START (or START CW).

The drive starts and keeps running after the button is released.
3

STOP while running

Press STOP.

OFF1: the drive ramps to standstill.
4

STOP released without a new START

Release STOP and do nothing else.

The drive stays stopped.
5

Direction

Macro 19: use START CCW. Macro 20: select REV while stopped, then press START.

The motor runs in the selected direction, and the panel labels match.
6

Fault and power recovery

Under the approved procedure, trip a fault, acknowledge it on DI3, and power-cycle.

A fresh START is needed in each case.
Checkpoint — how to know you did it right

Every operator action produces the expected input bit and drive state, the drive never starts without a fresh START, and RESET acknowledges faults without causing motion.

Frequently asked questions

What is the main difference between macros 19 and 20?

Macro 19 has separate START clockwise (DI1) and START counter-clockwise (DI2) buttons. Macro 20 has one START (DI1) and a reverse selection (DI2). Both use DI0 as enable/OFF1 and DI3 as fault acknowledge.

Why is the STOP button normally closed?

DI0 is an enable: it must stay at 24 V for the drive to run. A normally closed STOP removes the signal when pressed, and a broken wire also stops the drive instead of hiding the fault.

Is the normally closed stop button an emergency stop?

No. It gives an operational OFF1 stop. Emergency stopping needs the machine’s validated safety design, such as STO through a safety relay.

Why did the fault-reset input change to DI3?

In the three-wire presets DI2 is a command (START CCW or reverse), so acknowledge moves to DI3. A reused two-wire panel with reset on DI2 would start the motor instead.

Do I need a self-holding PLC bit for three-wire control?

Usually not. The drive’s three-wire function latches the run state from the START pulse. Adding another latch makes stop and restart harder to diagnose.

Which parameter sets the three-wire method?

The macro sets it, commonly shown as p3334 = 3 (macro 19) or 4 (macro 20). Check the online connections after applying the macro.

Technical references

Use the edition that matches your hardware and firmware. The manuals establish the device facts; the simulators, animations and drawings are training examples.

Reviewed by Bhawesh Kumar Singh Industrial Automation Trainer and Industry 4.0 Consultant · Softwell Automation · 21+ years industry experience

Get the full syllabus + free demo class

Share your details — a Softwell training advisor will call you within 24 hours with batch dates, fees and hardware access options.

No spam. Used only to share course details for this enquiry.

Learn with practical industrial examples

Join live online, Pune classroom or corporate in-plant automation training.

Request Course Details
Verified learning pathway

Turn This Concept into a Practical Skill

Apply this topic through PLC, SCADA, networking or Industry 4.0 laboratory exercises.

Content reviewed: 29 October 2026

☎ Call WhatsApp ✉ Email Enquire Now