Skip to main content
Siemens · Level 01 practical guide

SINAMICS G120 Macro 12: Analog Input Speed Scaling

Follow the signal from terminal to motor, scale 0–10 V and 4–20 mA live, and wire it from an EPLAN-style drawing.

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

Macro 12 (p0015 = 12) uses DI0 for ON/OFF1, DI1 for reverse, DI2 for acknowledge and AI0 for the speed reference. Choosing the macro does not calibrate the signal: the DIP switch, p0756 and the endpoints p0757–p0760 must all agree. Check it with r0752 (raw) and r0755 (%).

  • A changing AI is never a start command.
  • Set p0756 first, because changing it can reset the endpoints.
  • 4–20 mA: subtract 4, divide by 16.
  • A zero reference is not a safety stop.

Separate the Run Command from the Speed Reference

The command path (DI0) and the reference path (AI0) are independent. Write a signal list first: controller output range, drive input channel, engineering range, broken-signal response, CU order number and firmware.

SINAMICS G120 macro 12 command and analogue reference signal chain animationDI0 gives ON/OFF1 on a separate command path, while AI0 passes through raw value r0752, scaling p0757 to p0760, percentage r0755, reference p2000 and the ramp to the motor; with DI0 off the analogue value changes but the motor does not start.Command pathReference pathDI0ON/OFF1Drive stater0052AI0V / mAr0752raw valuep0757–p0760scalingr0755percent× p2000100 % = 50 HzRampp1120/p11215 V50 %25 Hz req.0 HzDI0 off: the AI changes, but nothing starts2 V20 %10 Hz10 HzRun + 2 V → 10 Hz5 V50 %25 Hz25 HzRun + 5 V → 25 Hz10 V100 %50 Hz50 HzRun + 10 V → 50 Hz
Two separate paths: DI0 decides whether the drive runs, AI0 decides how fast.

Match the Electrical Input and Parameter Type

Set the AI0 DIP switch with power isolated, then set p0756, and only then the endpoints. Use the parameter index for the input you actually wired (index 0 = AI0).

ParameterMeaningCheck
p0756Input type (0 = 0–10 V, 3 = 4–20 mA monitored)Matches the DIP switch and the source
p0757 / p0758Point 1: input value / %Low endpoint
p0759 / p0760Point 2: input value / %High endpoint
r0752 / r0755Measured input / scaled %Compare electrical and scaled values
p2000Reference speed (= 100 %)What 100 % means in the project

Calibrate a real analogue loop

Hands-on G120 training with calibrators, PLC analogue outputs and live drives — Pune or online.

Book a Free Demo Class

Worked 0–10 V and 4–20 mA Scaling (Live Calculator)

% = Y1 + (Input − X1) × (Y2 − Y1) / (X2 − X1), then Hz = % / 100 × 50. The red dashed line shows the classic mistake of dividing 12 mA by 20.

100 %0 % AI0 input (r0752)
r0752 measured input:
r0755 scaled:

Assumes 100 % = 50 Hz (p2000), no extra setpoint or limits. Drag the slider, or let it sweep. At 0 the 4–20 mA mode shows the wire-break case.

Input rangeLowMidHigh
0–10 V0 V → 0 % → 0 Hz5 V → 50 % → 25 Hz10 V → 100 % → 50 Hz
4–20 mA4 mA → 0 % → 0 Hz12 mA → 50 % → 25 Hz20 mA → 100 % → 50 Hz

If the process needs a minimum speed, create it in one place only (the characteristic, a drive limit or the PLC) and write down which.

EPLAN Terminal Wiring: Local Pot and PLC 4–20 mA

Two typical macro 12 installations: a local 10 kΩ potentiometer (0–10 V), and a PLC giving commands plus a 4–20 mA reference with feedback. Step through each circuit.

Step 1 / 7
G120 macro 12 EPLAN-style wiring with local 0–10 V potentiometerCU240E-2 supplied from fused PELV 24 V, DI0 ON/OFF1, DI1 reverse, DI2 acknowledge from switches, a 10 kilohm potentiometer on terminals 1, 3 and 2 with link 4 to 2 on screened cable, fault lamp on relay DO0 and speed meter on AO0.0123456789ABCDEFSoftwell AutomationIndustrial Automation Training · PuneEPLAN-style training drawing=DRV+CP1 · SINAMICS G120 drive panelMacro 12 · local pot 0–10 VDrive: PM240-2 + CU240E-2Macro p0015 = 12Wiring: source (PNP) · PELV 24 VIEC 81346 · IEC 60204-1Rev: B (best practice)Reviewed: B. K. SinghSheet1 / 2L+PELV 24 V, fusedM-U1 SINAMICS CU240E-2 · macro 12AI0 DIP = U · p0756 = 0 · p0757–p0760 = 0 V/0 % … 10 V/100 %3124 V IN5DI06DI17DI21+10 V3AI0+4AI0−2GND20DO0 COM320 V IN69DI COM112AO0+13GND19DO0 NO28GNDCU supplyDI COM → M (source)GND → MX1:1-S1ON/OFF1X1:2-S2reverseX1:3-S3ack-R2 10 kΩ speed potlink 4–2-W2 screened, shield on plateCU shield plate (bonded to PE)Hz-P1actual speed-H1fault (p0730)Wire 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 12 EPLAN-style wiring with PLC 4–20 mA referencePLC digital outputs drive DI0 to DI2, PLC current output feeds AI0 terminals 3 and 4 on a screened pair with DIP set to I and p0756 equal 3, AO0 returns actual speed to a PLC analogue input and the DO0 relay reports drive faults.0123456789ABCDEFSoftwell AutomationIndustrial Automation Training · PuneEPLAN-style training drawing=DRV+CP1 · SINAMICS G120 drive panelMacro 12 · PLC control, 4–20 mADrive: PM240-2 + CU240E-2Macro p0015 = 12Wiring: source (PNP) · PELV 24 VIEC 81346 · IEC 60204-1Rev: B (best practice)Reviewed: B. K. SinghSheet2 / 2L+PELV 24 V, fusedM-A1 PLC I/O (e.g. S7-1200 DQ + SM 1234 AQ/AI)AQ0 = 4–20 mA speed reference · AI0 = actual speed · DI = drive faultDQ0DQ1DQ2AQ0 IAQ0 MAI0+AI0 MDI a.0PLC L+PLC M = drive M-U1 SINAMICS CU240E-2 · macro 12AI0 DIP = I · p0756 = 3 (4–20 mA, monitored) · p0757–p0760 = 4 mA/0 % … 20 mA/100 %3124 V IN5DI06DI17DI23AI0+4AI0−12AO0+13GND19DO0 NO20DO0 COM320 V IN69DI COM128GNDX1:1X1:2X1:3DQ0 ON/OFF1 · DQ1 reverse · DQ2 ack-W2 screened pairshield on CU plateCU shield plate (bonded to PE)-W4 screenedAO0 → PLC AIrelay → PLC DIWire 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+ feeds CU terminal 31, with 32 to M. DI COM1 (69) and GND (28) go to M for source (PNP) inputs, so the drive and field devices share one reference.
  2. Run command ≠ speedMacro 12 puts ON/OFF1 on DI0 (-S1), reverse on DI1 (-S2) and acknowledge on DI2 (-S3). A changing analogue signal never starts the drive, and a zero reference is not a safety stop.
  3. Local speed pot 0–10 V-R2 sits across +10 V (1) and GND (2), with the wiper on AI0+ (3) and AI0− (4) linked to GND. It runs on screened cable with the shield on the CU plate. Set the DIP to U, p0756 = 0 and endpoints 0 V/0 % … 10 V/100 %.
  4. IndicationRelay DO0 (20 → 19) lights the fault lamp -H1, and AO0 (12/13) drives actual-speed meter -P1. Macro 12 sets these by default; check p0730 and p0771.
  5. PLC commandsPLC outputs DQ0–DQ2 drive DI0–DI2 through -X1 terminals. The PLC M and the drive M are the same 0 V, otherwise the inputs do not see a valid 24 V.
  6. 4–20 mA reference from the PLCPLC AQ0 (current) feeds AI0+ (3) / AI0− (4) on a screened pair, with the shield on the CU plate. Set the DIP to I, p0756 = 3 (monitored) and endpoints 4 mA/0 % … 20 mA/100 %. A broken loop is then detected instead of reading as a valid zero.
  7. Feedback to the PLCAO0 (12/13) returns actual speed to a PLC AI on screened -W4, with the type matched in p0776. The DO0 relay reports a drive fault to a PLC DI. The HMI value is then measured, not assumed.
EPLAN-style drawing with IEC 81346 tags (-U1, -R2, -A1 …). Orange marks the circuit being explained. Wire colours follow common IEC 60204-1 practice.
FromTo CU240E-2SignalSetting / check
L+ / M31 / 32CU 24 V supplyCU powers up
M69, 28DI COM1, GNDsource wiring
-S1 or PLC DQ05 (DI0)ON/OFF1r0722.0
-S2 or PLC DQ16 (DI1)Reverser0722.1
-S3 or PLC DQ27 (DI2)Acknowledger0722.2
-R2 pot1 / 3 / 2, link 4–20–10 V referenceDIP U, p0756 = 0, r0755
PLC AQ0 I / M3 / 44–20 mA referenceDIP I, p0756 = 3, r0752 in mA
12 / 13-P1 or PLC AIActual speed (AO0)p0771, p0776
20 → 19-H1 or PLC DIFault relayp0730 = r0052.3

Training drawing for a CU240E-2 (macro 12). Check terminals against the manual for your CU and firmware. The full panel, including power and STO, is in G120 wiring and terminal parameters.

Find Scaling and Signal-Loss Faults

G120 analogue speed troubleshooting chain animationFive symptoms cycle along the chain from source to raw input r0752, scaled value r0755, speed request and motor, marking where each fault lies and what to check.Sourcecalibrator / PLCr0752raw inputr0755scaled %RequestsetpointMotoractual speed✓✕Symptom: Zero or saturated raw inputCheck: Wiring, common, DIP U/I, source range✓✓✕Symptom: Raw OK, percentage wrongCheck: p0756, channel index, p0757–p0760✓✓✓✕Symptom: Percentage OK, request wrongCheck: p2000, limits, extra setpoint✓✓✓✓✕Symptom: Request OK, motor differsCheck: Ramp, control mode, load, drive state✕Symptom: Broken loop looks like a valid low demandCheck: 4–20 mA monitoring (p0756 = 3), fault responseWalk the chain left to right: the first wrong value shows where the fault is
Investigate noise (routing, shielding, reference) before adding heavy filtering, which only delays real changes.

Keep run permission and signal quality as separate checks. A plausible number on an HMI does not prove the drive is getting a healthy reference.

Practical Lab: Verify the Whole Signal Chain

Hands-on
Before you start
  • A G120 with CU240E-2 on a training rig, macro 12 applied, motor uncoupled or on a light load.
  • A 10 kΩ potentiometer or a mA/V calibrator, and a multimeter. Estimated time: 45 minutes.
1

Back up and record

Upload the project, note the command source, and confirm macro 12 exists for your CU and firmware.

A dated backup exists before anything changes.
2

Confirm the electrical value

With motion inhibited, measure the real voltage or current at AI0 (terminals 3/4).

The meter value equals r0752.
3

Three-point test, rising and falling

Apply low, mid and high (0/5/10 V or 4/12/20 mA) going up, then down. Record r0752, r0755 and the expected Hz.

Both directions match the table, and any hysteresis is noted.
4

Locate any error

Raw OK but % wrong: check p0756, the index and p0757–p0760. % OK but Hz wrong: check p2000 and the setpoint path.

You know which block is wrong before changing anything.
5

Controlled motion test

Only after the static checks pass, run DI0 and compare actual speed once the ramp has settled.

Actual speed follows the request.
6

Signal-loss test

With an approved procedure, open the 4–20 mA loop. Record the fault and the drive response, then reset.

The broken loop gives a fault, not a valid low demand.
7

Save and document

Set p0971 = 1, upload, and record the calibrator used.

The settings survive a power cycle and the record is complete.
Checkpoint — how to know you did it right

Raw, scaled and requested values agree at every test point in both directions, motion follows the request, and a broken loop produces a documented fault.

Frequently asked questions

Does macro 12 automatically configure 4–20 mA?

No. Macro 12 only connects DI0/DI1/DI2 and AI0. You still set the DIP switch to I, p0756 = 3 for monitored 4–20 mA, and the endpoints p0757–p0760, then verify the low, middle and high points.

Which parameters scale the G120 analogue input?

p0756 sets the signal type, p0757/p0758 set the first point (input, %), and p0759/p0760 set the second point. r0752 shows the measured input and r0755 the scaled percentage. p2000 defines what 100 % means.

Why does 12 mA give 60 % instead of 50 %?

Because 12 was divided by 20. For 4–20 mA, subtract the 4 mA live zero and divide by the 16 mA span: (12 − 4) / 16 = 50 %.

Why does 5 V not give 25 Hz?

That only holds if 0–10 V maps to 0–100 % and 100 % is 50 Hz, with no other setpoint or limit in the way. Check r0752, then r0755, then the request, in that order.

How do I wire a PLC 4–20 mA output to G120 AI0?

Connect the PLC current output to AI0+ (terminal 3) and its reference to AI0− (4) with a screened pair, shield clamped on the CU shield plate. Set the DIP switch to I and p0756 = 3, and share the 0 V between PLC and drive.

Is removing the analogue reference an emergency stop?

No. Use the machine’s designed and validated safety function, such as STO. Loss of the reference also needs its own documented response.

Technical references

Use the edition that matches your hardware and firmware. The manuals establish the device facts; the worked values, calculator 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