How to Configure an Analog Spindle / Analog Axis on SINUMERIK 828D: MD30100–31050, X252 Wiring, MD32250/32260 Scaling

1. First, what an analog spindle / analog axis is

Digital axis: the NCK sends commands directly to a SINAMICS drive over Drive-CLiQ / PROFIdrive; the speed loop and current loop are closed inside the drive.

Analog axis / analog spindle: the NCK outputs only one ±10 V (bipolar) or 0–10 V (unipolar) analog voltage as the speed setpoint, feeding an inverter or third-party drive; the speed and current loops are closed by the inverter or by external circuitry. On the NCK side there is exactly one job — get the “commanded speed” and the “actual speed” scaled correctly against each other.

  • Analog spindle: the spindle uses an analog setpoint; typical on retrofit machines keeping the original inverter.
  • Analog axis: a feed axis configured the same way, e.g. an added third-party analog servo.
  • Both use the same machine-data conventions, so this article covers them together.

Typical situations:

  1. A retrofit machine keeps its existing inverter rather than switching to SINAMICS.
  2. The spindle runs from a general-purpose inverter (MM440 / G120 class) where only speed matters, not positioning.
  3. An auxiliary axis added with a third-party analog servo.
Difference between a 828D analog axis and a digital axis: the analog axis NCK only outputs an analog +/-10V setpoint to the inverter, the speed and current loops stay on the inverter side

Note: this article follows the SINUMERIK 828D Commissioning Manual and Siemens “Output of setpoints to analog drives – Retrofit Solution” (document 109761423). Interfaces and defaults differ between PPU models and software versions — always verify against the machine’s hardware manual and the current values on the diagnostic screen.

2. Key machine data MD30100–31050 at a glance

Analog axis configuration rests on two groups: the setpoint output group (301xx) defines how the NCK sends the command out, and the actual-value acquisition group (302xx / 310xx) defines where feedback comes from.

828D analog axis machine data MD30100–30134 and MD30200–31040: setpoint output group and actual-value acquisition group
MDNameTypical analog valueNote
30100CTRLOUT_SEGMENT_NR0Setpoint output segment; =0 uses the local bus segment, i.e. activates analog output
30110CTRLOUT_MODULE_NRper machine (e.g. 1, 4)Module number on that segment, depends on PPU and interface
30120CTRLOUT_NR1Which output of the selected module
30130CTRLOUT_TYPE1Setpoint output type: 1 = analog, 0 = digital
30134IS_UNIPOLAR_OUTPUT0 / 1 / 20 = bipolar ±10 V; 1 = unipolar with separate enable/direction; 2 = unipolar with direction-dependent enable
30200NUM_ENCS0 or 1Number of actual-value encoders; 0 when no encoder
30220[0]ENC_MODULE_NR[0]module no. of the digital drive / encoder modulewhich digital module the direct encoder hangs on
30230[0]ENC_INPUT_NR[0]2use the 2nd encoder input on the digital Motor Module
30240ENC_TYPE1 / 41 = incremental; 4 = absolute; 0 means analog or none
31020ENC_RESOLpulses per revolution (e.g. 2000)feedback resolution
31040ENC_IS_DIRECT1=1 means the encoder is mounted directly on the spindle (direct measurement)
31050 / 31060gear ratio denominator / numeratorper mechanicsused when the spindle motor is not 1:1 with the spindle
32250RATED_OUTVALtypically 80 (=80% × 10 V = 8 V)rated output voltage
32260RATED_VELOe.g. 3000the motor speed corresponding to the M32250 voltage point
35000SPIND_ASSIGN_TO_MACHAX0spindle assigned to machine axis
35100SPIND_DEF_MASTER_AXIS1spindle defined as master spindle
35110GEAR_STEP_CHANGE_ENABLE1allow gear-step change
36700DRIFT_ENABLE0 / 1automatic drift compensation; related: MD36710 (limit), MD36720 (basic value)
广告

3. Hardware wiring: analog interface and inverter enable / direction

The 828D analog setpoint comes out of a connector on the PPU; which connector depends on the PPU model. On a PPU240.2 it is commonly X252 pins 1 and 2; other documentation gives X121 pin 8 (AO0+) and pin 9 (AO0-). Always follow the hardware manual for the machine in front of you.

The output signals differ by spindle operating mode:

Spindle typeAnalog signalEnable / direction
Bipolar spindleAOUT = ±10 V, AGND = 0 V referenceDOUT11 = controller enable; direction does not consume DOUT12
Unipolar + separate enable/directionAOUT = +10 V, AGNDDOUT12 = negative direction request (held even without enable)
Unipolar + direction-dependent enableAOUT = +10 V, AGNDDOUT11 = enable + positive; DOUT12 = enable + negative

Key points:

  • D/A conversion resolution is 14 bit.
  • The analog setpoint cable must be a shielded cable with the shield grounded at one end — otherwise spindle speed drifts and picks up interference.
  • On the inverter side, four signals normally have to line up with the PLC: enable, direction, ready, fault.
828D analog interface wiring: X252/X121 analog output +/-10V and AGND, with DOUT11 enable and DOUT12 direction, shield grounded at one end

4. Scaling: MD32250 / MD32260

This is the step analog axes most often get wrong, and the one that most affects the workpiece. Principle: make the NCK commanded speed match the actual speed, scaled proportionally by these two parameters.

  • MD32250 (RATED_OUTVAL) = rated output voltage. Commonly 80, meaning 80% × 10 V = 8 V; some setups use 100% depending on the inverter-side gain setting.
  • MD32260 (RATED_VELO) = the motor speed corresponding to that M32250 voltage point. E.g. 3000 means “8 V corresponds to 3000 rpm”.

Procedure:

  1. Enter initial values for MD32250 and MD32260 from the motor nameplate and the inverter configuration.
  2. Command a fixed speed (e.g. S1000 M3) and measure the actual spindle speed with a tachometer.
  3. Correct proportionally: new MD32260 ≈ old MD32260 × (commanded speed ÷ measured speed).

– Example: commanded 1000, measured 1050 → new value = old × 1000/1050.

  1. Command again, measure again, until the error is acceptable.

Common traps:

  • 🚨 Treating MD32260 as the “maximum speed”. It is not a max speed; it is just the speed corresponding to one voltage point. Getting it wrong shifts the whole range systematically.
  • MD32250 fighting the inverter’s analog gain / max-frequency setting. Check both sides together; changing one side alone is the classic cause of weird results.
  • When the spindle motor is not 1:1 with the spindle, MD31050 / MD31060 gear ratio must also be right, otherwise a fixed ratio error remains between commanded and actual speed.
828D analog spindle scaling MD32250 rated output voltage and MD32260 corresponding speed: correct commanded vs measured speed proportionally

5. Encoder configuration: three feedback options

OptionKey MDCapability / limit
No actual-value encoderMD30200 = 0open-loop speed only; cannot do SPOS, rigid tapping or thread cutting
Direct encoder (mounted on the spindle)MD30200 = 1; via SMC30 (TTL / sin) or SMC20 (1Vpp sin-cos) to Drive-CLiQenables SPOS, rigid tapping, threading; best accuracy
Motor-side encoder (motor not 1:1)MD30200 = 1; plus MD31050 / MD31060 gear ratiosynchronous functions work, but rely on gear-ratio conversion and do not compensate mechanical backlash

How to wire in a direct encoder (from the official example): first configure the spindle actual-value encoder as the 2nd encoder of some digital drive — set MD30220[0] equal to that digital drive’s ENC_MODULE_NR[0] (e.g. an SMC30 attached to the Y axis), MD30230[0] = 2 (2nd encoder input), then assign that encoder to the analog spindle as its first encoder.

Encoder type MD30240: 1 = incremental, 4 = absolute, 0 = analog or none.

6. PLC and commissioning order

广告

Recommended order — don’t skip steps:

  1. Hardware wiring: shielded analog cable, shield grounded at one end; verify enable / direction / ready / fault point to point.
  2. Set machine data: 30100 / 30110 / 30120 / 30130 / 30134, then 302xx / 310xx.
  3. NCK reset / power cycle: MD30100 and MD30130 are in the “power-off to take effect” class — a soft reset is not enough; the new controller output type is only sampled at the next power-up or NCK reset.
  4. Check the analog output: command a speed and measure AOUT against AGND with a multimeter; confirm there is output and that polarity/magnitude match expectations.
  5. Calibrate: correct MD32260 proportionally as in section 4.
  6. PLC logic: spindle enable, forward/reverse, gear-step change, alarm handling.
  7. Trial run: verify step by step from low → medium → high speed.

Safety: before writing axis machine data, stop the drive, inhibit the controller enable, and confirm the spindle is mechanically safe. An analog spindle can start turning as soon as voltage is applied — keep an emergency stop available and someone in attendance on site.

7. Troubleshooting checklist

  1. Confirm whether this machine uses X252 or X121 (check the PPU model and hardware manual).
  2. MD30100 = 0 (local bus segment, analog output); MD30130 = 1 (analog).
  3. Pick MD30134 per the inverter: 0 bipolar ±10 V / 1 unipolar with separate direction / 2 unipolar with direction-dependent enable.
  4. Fill MD30110 module number and MD30120 output number to match the actual interface — these two are the most common “no output” traps.
  5. Set MD30200 to 0 / 1 per encoder presence; with an encoder also configure 30220 / 30230 / 30240 / 31020 / 31040.
  6. After the NCK reset, confirm the analog voltage really is there.
  7. Commanded ≠ measured speed → correct MD32260 proportionally.
  8. Speed drift / interference → check single-end shield grounding and MD36700 drift compensation.

FAQ

Does an 828D analog spindle need an encoder at all?

Not necessarily. With no actual-value encoder (MD30200 = 0) the spindle still turns per the applied voltage, but there is no feedback, so it runs open loop — SPOS, rigid tapping and thread cutting, which need position/speed feedback, cannot be used. To get SPOS or rigid tapping you must fit a direct encoder (SMC30 / SMC20 into Drive-CLiQ) and complete the corresponding configuration.

I set the machine data but there is still no analog output — what now?

Check in order: ① MD30130 = 1 (analog output type); ② MD30100 = 0 (local bus segment); ③ whether MD30110 module number and MD30120 output number match the actual interface — these two are the most common “no output” traps; ④ whether the drive is deactivated (the drive must be stopped and the controller enable inhibited before writing MD); ⑤ whether an NCK reset / power cycle was really done — MD30100 and MD30130 take effect only after power off; ⑥ finally, check the wiring and single-end shield grounding.

How exactly do I fill in MD32250 and MD32260?

MD32250 is the rated output voltage, commonly 80, meaning 80% × 10 V = 8 V. MD32260 is the motor speed corresponding to that voltage point, e.g. 3000 meaning 8 V corresponds to 3000 rpm. Start from the motor nameplate and inverter configuration, then command a fixed speed, measure the real speed, and correct using “new MD32260 ≈ old × (commanded ÷ measured)”. Remember MD32260 is not a maximum speed — it is just one voltage/speed reference point used for scaling.

Last updated: 2026-10-28

Related (EN): How SD and MD differ on the 828D — in analog-axis configuration MD30130 / 30240 are configuration items, while JOG velocity and manual spindle speed are setting data (SD): different permissions and different activation.

Where to go next

  • FANUC Troubleshooting — the full guide library: alarms, diagnosis numbers, servo, spindle, PMC and electrical faults, organised by symptom.
  • CNC Repair Tools — which instrument measures what: multimeters, clamp meters, insulation testers and oscilloscopes, with the specification that actually matters.
  • Remote Technical Support — have the readings reviewed with you: alarm reverse lookup, PMC ladder analysis and servo tuning advice by call. Repair companies and integrators welcome.

Read the guide, get the right instrument, or walk the diagnosis through with someone — pick whichever you need.

Also available in Chinese: 西门子 828D 模拟主轴 / 模拟轴怎么配置:MD30100–31050 参数组 + X252 接线 + MD32250/32260 量程标定
The original Chinese version — same procedure, with the full field notes.
© 版权声明
THE END
喜欢就支持一下吧
点赞10赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容