Use this page as the symptom-based index for the knowledge base. Start here when you know the visible problem, but not yet which detailed page to use.
PSI: IOC stays before iocInit and startup never completes: the PSI
iocsh launcher suppresses its automatic iocInit call when it finds the
text iocInit in the startup file. This can happen even when the text is
inside a comment, for example:
# iocInit
In that case, the commented command is never executed and the launcher also
skips initialization, leaving the IOC in its pre-initialization state.
If relying on the launcher’s automatic initialization, remove the text
iocInit entirely from the startup file, including comments. If deliberately
managing initialization yourself, ensure an active iocInit call is executed
after configuration. Restart the IOC after correcting the file.
Startup errors after loading ecmccfg twice: check that the startup file
contains only one require ecmccfg call. Accidentally keeping both a versioned
call and an unversioned call can cause startup errors. For example, remove the
duplicate from this configuration:
require ecmccfg sandst_a "MASTER_ID=0,ENG_MODE=1,EC_RATE=500,ECMC_VER=sandst_a"
require ecmccfg "MASTER_ID=0,ENG_MODE=1,EC_RATE=500"
Keep only the call with the intended version and settings, for example:
require ecmccfg sandst_a "MASTER_ID=0,ENG_MODE=1,EC_RATE=500,ECMC_VER=sandst_a"
EtherCAT validation fails: verify slave order/ids, confirm process image matches hardware, and check for missing power or ESTOP on drives. Use: general, ethercat command line interface, hardware
IOC will not start after partial hardware failure: fix cabling and power first; restarting with missing slaves can leave the IOC unusable. Use: general, hardware
No slaves are visible or link is down: Use: ethercat command line interface, host / ecmc server, hardware
0x002D: "No Sync Error" and DC slaves remain in SAFEOP + ERROR:
A known cause is connecting the incoming EtherCAT cable to the coupler’s
downstream/output port instead of its upstream/input port. Slaves may still
be detected, but the reversed topology can prevent Distributed Clocks (DC)
from synchronizing. The IOC may then fail to start and report:
Failed to set OP state, slave refused state change (SAFEOP + ERROR).
AL status message 0x002D: "No Sync Error".
Check the coupler’s port labels or direction arrows: the cable from the
controller or preceding slave must enter IN, and OUT must lead to the
next slave. Do not assume the direction is correct merely because the link
is up or ethercat slaves finds the terminals. After correcting the cable,
power-cycle the affected coupler/terminals if necessary, restart the IOC,
and verify that the slaves reach OP.
A reversed coupler connection is one known cause, not the only cause of
0x002D. If the ports are correct, continue by checking the configured DC
cycle time, application timing/jitter, link quality, and EtherCAT topology.
See also the EL72xx hardware note.
Slaves remain in an error state: power-cycle the affected slaves. You can
also try ethercat rescan -<master_id>. Always specify the master ID;
otherwise, the command rescans every master on the host and may cause error
messages in other IOCs.
Slaves repeatedly appear and disappear: check for grounding issues. In observed cases, connecting an oscilloscope to measure signals interrupted EtherCAT communication. If possible, use a differential probe and avoid an external ground reference.
ERROR_AXIS_HW_NOT_READY: either the
drive hardware or the currently selected encoder hardware is reporting that
it is not ready. Check the hardware state. For the encoder, also verify that
it provides a valid position value. If an open-loop encoder is configured,
motion may still be possible by selecting the open-loop encoder as the
primary encoder used for control.
Use: motion, hardware, YAML encoder settingsKp, add a small Ki, or
reduce the controller deadband tolerance so that position correction remains
active near the target.
Use: tuning: axis stops close to target, YAML controller settingsencoder.bits
and encoder.mask apply to the encoder value derived inside ecmc; they do
not modify the raw EtherCAT process-data value. Compare with the EtherCAT
hardware PV to inspect the original value received from the slave.
Use: yaml configuration, scalingA move on one axis can delay commands to other axes on the same asyn motor controller while that axis waits to enable. This is especially visible with a servo drive whose motor is disconnected: the other motor records become responsive again when the enable wait expires.
In motorECMC 7.2.8.1, motor-side automatic power calls autoPowerOn() before
issuing the move. Mode 1 sleeps for the configured power-on delay; mode 2 waits
for enabled feedback up to that delay. This synchronous wait occupies the shared
controller command path. ECMC’s nonblocking DS402 state machine does not remove
that outer motor-side wait.
Use ECMC’s RT automatic-enable sequence instead. Configure each affected axis in its YAML, choosing timeouts suitable for the drive:
axis:
autoEnable:
enableTimeout: 3.0
disableTimeout: 5.0
With axis.autoEnable.enableTimeout configured, the YAML generator disables
motor-side automatic power and configures ECMC to handle enabling. ECMC accepts
the motion request, waits asynchronously for enabled feedback, and starts the
motion only after enable succeeds. If enable times out, the pending request is
cancelled. Other axes can continue accepting commands during the wait.
Check the generated ecmcMotorRecordCreateAxis command: its axis flags should
normally be 4 rather than 6 (or 5 when startup enable is also requested).
Also check that an explicit powerAutoOnOff option or a restored runtime setting
has not re-enabled motor-side automatic power. Merely shortening the motor-side
power-on delay does not move ownership of the enable sequence into ECMC.
This symptom concerns move-triggered automatic enable. A direct Enable request uses a different path. The startup gate also does not re-engage after startup has completed, so a later failed enable does not itself reapply the global gate.
See YAML axis settings and motor configuration.
plcOverride, verify that PLC code writes ax<id>.mon.lowlim/highlim correctly.
Use: motion, PLC configurationSCRIPTEXEC use and macro expansion.
Use: general, Script Referenceec_diagnostic_messages.py usage and interpretation:
Diagnosticsread_el70xx_diag.sh or read_el5042_diag.sh for Beckhoff drives/encoders.iocsh output for YAML lint/schema errors.| Error | Typical cause |
|---|---|
ERROR_MON_BOTH_LIMIT_INTERLOCK | 24V feed for limits missing, cabling issue. |
ERROR_MON_MAX_VELOCITY_EXCEEDED | Velocity too high, configuration mismatch, or encoder malfunction. |
ERROR_MON_POS_LAG_INTERLOCK | Following error, motion blocked, configuration mismatch (tolerance too tight). |
ERROR_MON_STALL | Axis did not reach atTarget after motion finished. Check for motor stall, too-low near-target controller output, unstable mechanics, or too-tight at-target/stall timing. See motion. |
ERROR_MON_TOL_OUT_OF_RANGE | Invalid monitor tolerance or limit window, for example calculated virtual-axis softlimits outside the valid range. See motion. |
ERROR_DRV_HW_ALARM_X | Hardware error, missing power supply; check dedicated hardware panels. |
ERROR_ENC_NOT_READY | Encoder issue, cabling issue, or missing power supply. |
ERROR_AXIS_HW_NOT_READY | The drive or currently selected encoder hardware is not ready; check its state and verify that the encoder provides a valid position value. |
ERROR_EC_LINK_DOWN | EtherCAT cabling issue, slave power missing. |
ERROR_EC_STATUS_NOT_OK | EtherCAT cabling issue, slave power missing. |
ERROR_EC_MAIN_DOMAIN_DATA_FAILED | EtherCAT cabling issue, slave power missing. |
ERROR_MAIN_ASYN_CREATE_PARAM_FAIL (0x20044) | The asyn parameter table is full. Increase MAX_PARAM_COUNT; see Asyn Parameter Count Exceeded. Sometimes referred to as ECMC_MAIN_ASYN_CREATE_PARAM_FAIL. |
ERROR_AXIS_SLAVED_AXIS_INTERLOCK | Slaved axis in error (synchronized axes). |