AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Troubleshooting

Fixing a Stepper Power-Up Timeout on an EtherCAT Axis

Servo and stepper motion Published 6 min read By AutomateDirectUSA engineering team

Short answer

The drive is healthy: it reaches run mode with no alarm while the motion runtime errors, because the CiA 402 handshake finishes after the master's power-on supervision time expires. Log statusword 0x6041 during a power attempt; bit 2 setting late with bit 3 clear means a timeout. Raise the supervision time or update the runtime — the wiring is not the fault.

On this page
  1. What the symptom pattern rules out
  2. The handshake you are watching
  3. Where the power request stops
  4. Read the statusword live and branch
  5. The timing test, with numbers
  6. The fixes, once timing is confirmed
  7. Verify the fix
  8. Questions asked

An EtherCAT stepper axis that faults at power-up while the drive's front panel shows run, with no drive alarm, is almost never a wiring fault. The EtherCAT link is up, the slave reached Op, and the drive finished its CiA 402 power-up sequence — the motion runtime simply stopped waiting before the drive reported Operation enabled. Read statusword 0x6041 live during a power attempt: when bit 2 (Operation enabled) sets late and bit 3 (Fault) never sets, the enable interval exceeds the master's power-on supervision time. The fix is a longer supervision time, or a motion-runtime update that tolerates slow third-party CoE drives — not cable, connector or PDO changes.

What the symptom pattern rules out #

If the drive reaches run mode, the physical layer has already proven itself: the slave passed Init, Pre-Op, Safe-Op and Op, and cyclic PDO exchange works. A cabling or link fault drops a slave or holds it out of Op before any power command exists, so it cannot produce this symptom. What remains is a race between two clocks: the motion runtime's supervision timer, started when the power command is issued, and the drive's own state machine. A closed-loop stepper does real work at enable — it energizes the windings, aligns the rotor to the encoder and engages position control — and, as a rule of thumb, a third-party CoE stepper drive takes longer over that than the response a master tuned around servo drives assumes. When the drive finishes late, the runtime has already raised its error.

The handshake you are watching #

CiA 402, the CANopen drive profile carried over EtherCAT CoE, moves the drive between states with the controlword at object 0x6040, which the master writes, and reports the resulting state in the statusword at 0x6041. Only bits 0, 1, 2, 3 and 7 of the controlword change state. The power-up sequence is three writes, each confirmed in the statusword before the next is accepted by many drives:

Step Controlword value Meaning
1 0x0006 Shutdown — drive reaches Ready to switch on
2 0x0007 Switch on — drive reaches Switched on
3 0x000F Enable operation — drive energizes and closes the loop

The mode of operation, object 0x6060, must already hold the configured mode (for example cyclic synchronous position), and the readback at 0x6061 must match it — a mismatch lets the drive sit in run mode while the master never accepts the axis as ready. The statusword bits that decide this diagnosis:

Bit Meaning
0 Ready to switch on
1 Switched on
2 Operation enabled
3 Fault
5 Quick stop active (reads 0 when active)
6 Switch on disabled

Bit 2 setting is the event the runtime waits on. The same word carries what you need after power-up — bit 15 reports homing done, and reading EtherCAT drive homed status from the CiA 402 statusword uses this same live-view method.

Where the power request stops #

Hop What happens How it stops
Motion runtime Starts the CiA 402 sequence and a supervision timer Timer expires before the drive reports bit 2
EtherCAT master PDOs Carries 0x6040 cyclically Controlword unmapped, or 0x6060 never written
Drive Steps Shutdown, Switch on, Enable operation; energizes, aligns, closes the loop Slow transition, or a real drive fault (bit 3)
Return path 0x6041 returns every cycle Bit 2 arrives after the timer already expired

A drive in run mode with no alarm places the stop at the first or the last hop: the drive finishes, but after the runtime gave up.

Read the statusword live and branch #

Open the master's process-data view or diagnostics trace, log 0x6041 against time from the moment the power command is issued, then branch on what you see:

  1. Bit 2 sets late, bit 3 never sets. This is the timing case — continue to the timing test below.
  2. Bit 3 sets. A real drive fault, not timing. Read the drive's error object and alarm code and fix the cause first; a timeout change cannot clear a fault.
  3. Bit 6 stays set and the drive never leaves Switch on disabled. The drive rejects the sequence: confirm 0x6040 is in the mapped RxPDO, confirm 0x6060 and 0x6061 match the configured mode, and confirm quick stop is not held active (bit 5 reads 0 when it is).
  4. Repeat the power command with no configuration change. A second attempt that succeeds is strong evidence of a timeout — the drive was already at or near Operation enabled. Repeating the command strobes torque into an axis that can jump on enable, so keep hands clear and the e-stop in reach while cycling it.
  5. Bit 2 sets promptly and the axis still errors. The power-up handshake is not the fault; if the axis enables but does not move, see why an EtherCAT CSP stepper axis enables but does not move for the CSP configuration to check.

The timing test, with numbers #

Measure the interval between the controlword reaching 0x000F and bit 2 setting, and compare it against the power-on supervision time configured in your axis. A worked example with illustrative trace numbers on a 1 ms cycle:

  • Controlword first reads 0x000F at t = 45 ms after the power command.
  • Statusword bit 2 first sets at t = 925 ms.
  • Enable interval = 925 ms − 45 ms = 880 ms.
  • Power-on supervision time, read from the axis configuration: 200 ms.
  • Shortfall = 880 ms − 200 ms = 680 ms — the runtime errors 680 ms before the drive finishes. No wiring change closes that gap.
  • Worst of ten power commands including cold starts: 910 ms. Set the supervision time to 2000 ms, which is 2.2 × 910 ms and covers the spread with headroom.

Decision for these inputs: with 2000 ms configured, every repeat enables without a motion error. If your runtime exposes no supervision parameter, the runtime update is the only fix, and this measurement is the evidence you hand the controller vendor. These are calculated example numbers, not measured results for your drive — run the same arithmetic on your own trace.

The fixes, once timing is confirmed #

  1. Raise the power-on or enable supervision time in the axis or drive configuration, where your runtime exposes it. Set it above the worst cold-start interval you measured, with headroom — twice the worst case is a sound default posture.
  2. Update the motion runtime to a release whose notes name improved handling of slow third-party CoE drives, obtained only through the controller vendor's own channel, and reload the drive description if the notes require it.
  3. Shorten drive-side enable delays — brake release timing, rotor alignment at enable — only after confirming they are not protecting the load. A brake delay on a vertical axis is doing safety work; measure the load's behavior before changing it.
  4. Never suppress the motion error, and never write 0x6040 from a second task while the motion runtime owns the axis. Two writers on the controlword produce state transitions nobody designed, on a machine that moves.

Verify the fix #

  1. Apply the timeout change or install the runtime update, and reload the drive description if the release notes require it.
  2. Cycle control power on the drive, bring the EtherCAT master to Op, and confirm every slave reports Op in the master diagnostics.
  3. Issue the axis power command and log 0x6041 until bit 2 sets; confirm bit 3 never sets and no motion error is reported.
  4. Repeat the power command at least ten times per axis, including the first attempt after a cold start — the first attempt is the one that failed.
  5. Enable all axes together and confirm each one reaches Operation enabled.
  6. Command a short, slow move per axis and confirm the actual position at 0x6064 follows the target at 0x607A with no fault.

Questions asked

Does a faster or slower EtherCAT cycle time change the enable delay?

No. Cycle time sets how often the controlword and statusword are exchanged, not how long the drive takes to energize windings, align the rotor to the encoder and close the loop. The interval from 0x000F to bit 2 stays essentially the same at 1 ms or 100 microseconds; only the supervision time or the runtime's tolerance changes the outcome.

Where do I find the power-on supervision time?

In the axis or drive configuration of your motion runtime — axis parameters, drive configuration or power-up settings screens, named differently by vendor and version. Open the axis configuration and read the configured value before running the timing test; do not assume a default, because the value and even the existence of the parameter move with the runtime version.

Can I write the controlword from a PLC task to finish the handshake myself?

No. Two writers on 0x6040 while the motion runtime owns the axis produce state transitions nobody designed, and the runtime still times out internally. If you must script the sequence as a diagnostic, take the axis out of the runtime's control first, then hand it back before running production motion.

What if statusword bit 3 sets during the power attempt?

That is a drive fault, not timing. Read the drive's error object and alarm code and fix the cause — following error, encoder, over-current or supply. Raising the supervision time on a faulting drive only delays the error and can hide a following error that appears during enable, so change timeouts only after bit 3 stays clear.

Why is the first enable after power-up the slowest?

After control power is cycled, the drive re-energizes the windings, re-aligns the rotor to the encoder and re-engages closed-loop control on the first enable. Later enables start from an aligned state, so they cluster closer together. Always include cold starts when measuring; a warm repeat understates the worst case your timeout must cover.

Keep reading

  • Troubleshooting

    Why an EtherCAT CSP Stepper Axis Enables but Does Not Move

    Holding torque on Servo On proves only that the power stage energizes the windings. In cyclic synchronous position mode the axis moves only when the drive accepts each new 0x607A target and no internal limit refuses it, so check Statusword bit 11 first, then the drive's speed, current and software position limits, then the position unit scaling between controller and drive.

    Servo and stepper motion

  • How-to

    Tuning a Pulse-and-Direction Stepper in Closed Loop

    Tune a pulse-and-direction stepper in closed loop with ramped trajectories and a small step amplitude, not the textbook half-revolution position step. The first-cycle demand is gain × step size, not the average over the step time, so a 5000-count step stalls while 2100 counts at Ixx30 = 35 moves. Raise Ixx30 only until rise time stops improving, and leave Ixx68 at 0 or 1.

    Servo and stepper motion

  • Explainer

    Why a Closed Loop Stepper Is Louder Than a Servo

    A closed-loop stepper is louder at standstill because its drive never rests: the current chopper keeps holding current flowing and the position loop rocks the rotor over a few encoder counts. A servo at rest with a light load commands almost no torque current, so it stays quiet. Quiet it with switching frequency, idle current and loop gain settings, because the noise is control behavior, not a motor-type law.

    Servo and stepper motion