Troubleshooting
Troubleshooting servo drive zero torque in CiA 402 torque mode
Short answer
A servo drive that runs in position mode but holds torque actual value 6077 at zero in torque mode is stopped at one of four gates: 6061 not echoing the 6060 write, statusword 6041 short of Operation enabled, torque limits 60E0 or 60E1 at zero, or an ESI revision mismatch loading the wrong object dictionary. Read them in that order and write 6060 from a single source.

On this page
A servo drive that tracks position all day and then holds torque actual value 6077 at zero after the swap to a torque PDO set is not broken; it is standing at a closed gate. There are four, and you read them in the order the command travels: the mode written to 6060 is not echoed by 6061, the statusword 6041 never reaches Operation enabled, a torque limit (60E0 or 60E1) sits at zero, or the ESI file in the project does not match the drive and the master loaded the wrong object dictionary. Read those objects before you change a line of code, and write 6060 from one source only, the startup SDO list or the cyclic PDO, never both. The case worked below is an Omron G5 R88D-KN01-ECT on CODESYS V3.5.12 with SoftMotion, but every gate is CiA 402, the drive profile that fixes these object numbers, the scaling and the state machine, so the same checks fit any EtherCAT servo drive.
Read the bus state and the PDO set first #
Torque mode needs its own process data: the position set that was working carries a target position, not a target torque, and a bus that reaches OP with the old mapping still attached looks healthy while doing nothing.
- Open the slave diagnostics in the CODESYS device editor and confirm the drive is in OP, with a steady working counter and no lost-frame errors.
- In the EtherCAT I/O mapping, confirm the RxPDO is #1704 and the TxPDO is #1B02, and that the position-mode entries are removed from the list, not merely pushed below the torque set.
- Prove the inputs are live: 6041 changes when you enable, 6077 is present, and the position feedback moves when you turn the shaft by hand.
If the drive is not in OP or the mapping differs from the G5 manual's torque table, fix that first, because nothing downstream can work. If the inputs are live, move to the mode echo.
Make 6061 echo the 6060 you wrote #
Cyclic synchronous torque, the mode the #1704/#1B02 set serves, is code 9 in modes of operation 6060; cyclic synchronous position, the mode that worked, is 7. The drive reports the mode it actually runs in modes of operation display 6061, and that echo is your only proof the switch happened.
- Map 6061 into the TxPDO if the manual's table includes it, or read it by SDO online from the master.
- If 6061 still reads 7, the startup write failed or was overridden: open the startup SDO error list in the EtherCAT master diagnostics and look for the rejected index.
- Write 6060 from one source. If 6060 is both mapped in the RxPDO and listed as a startup SDO, the cyclic value overwrites the SDO the moment the bus reaches OP, and the two fight each other.
Only when 6061 reads 9 back does the next gate mean anything.
Decode statusword 6041 for Operation enabled #
SMC_SetTorque writes the target and nothing else; it does not enable the drive or switch the mode. A torque command reaching a drive in Switched on or Ready to switch on produces zero torque with no fault, the same stall behind an EtherCAT CSP stepper axis that enables but does not move, and in both the state machine is the first suspect.
Decode statusword 6041 the CiA 402 way: mask bits 0, 1, 2, 3, 5 and 6 with 0x6F and compare the result.
| Masked value | CiA 402 state | What closes it |
|---|---|---|
| 0x27 | Operation enabled | Nothing; this gate is open |
| 0x23 | Switched on | Enable sequence stopped halfway; check the power function block and 6040 |
| 0x21 | Ready to switch on | Same, one step earlier |
| 0x40 | Switch on disabled | Fault, missing main power or STO active: clear the cause, never bridge the STO channel |
| 0x08 | Fault | Read the drive's fault code first |
The power function block, MC_Power, issues the 6040 sequence 6, then 7, then 15 when its enable, regulator-on and drive-start inputs are all true; if any input is false the sequence stalls at 0x21 or 0x23. Bit 11 of 6041 means an internal limit is active: if it is set, skip straight to the limits gate, because the drive is telling you the clamp is on. The same statusword also carries the homed flag, decoded bit by bit in this walkthrough of reading EtherCAT drive homed status via the CiA 402 statusword.
Clear the torque limits 60E0 and 60E1 #
CiA 402 scales every torque object in thousandths of rated torque: 1000 is full rated torque, and 60E0 and 60E1 are positive magnitudes, one per direction. A limit left at zero clamps its side to zero torque with no fault bit, the exact symptom, which is why the G5 manual's torque procedure has you write both as startup parameters alongside 607F and 6060.
| Object | Role | Reading that decides |
|---|---|---|
| 6071 | Target torque | Non-zero while SMC_SetTorque executes |
| 60E0 and 60E1 | Positive and negative torque limits | Positive magnitudes, at or above your command |
| 607F | Max profile velocity | Above the speed the load will reach |
| 6077 | Torque actual value | Leaves zero when the gates are open |
If 6071 stays at zero in the PDO while the function block executes, the fault is upstream in the SoftMotion axis, not the drive. Check that the axis maps to the drive's torque variables and that exactly one task, normally the bus cycle task, calls the motion blocks; a second task on the same axis breaks the enable chain, so delete it.
Compare the ESI revision with identity object 1018 #
This gate explains why position can work while torque does not: the default position PDO set is old, and both ESI revisions describe it correctly, while a non-default torque set depends on objects whose availability and contents moved between revisions. A project built against the ESI bundled with CODESYS V3.5.12 at revision Ver2_0_rev09, while the drive maker distributes a newer file, disagrees with the hardware exactly where torque mode is sensitive.
- Read the drive's EtherCAT identity, vendor ID, product code and revision, from object 1018, by SDO or from the master's scan.
- Compare those three numbers with the identity in the ESI loaded in the CODESYS device repository. A revision mismatch means the master built a different object dictionary than the device answers with.
- Import the manufacturer's current ESI into the device repository, then delete the drive from the project and re-add it from the new entry; swapping the file in the repository does not update an already-inserted slave.
- Redo the PDO selection and re-enter the startup parameters, because they belonged to the old device object.
Read the import dialog before trusting it: since CODESYS EtherCAT 4.11.0.0 the ESI import reports errors corresponding to the device (ECAT-897 in the release notes), so a bad file is visible instead of silent.
Worked example: a half-torque command on the R88D-KN01-ECT #
Torque mode drops the position loop: a constant 6071 accelerates the shaft until the load or the 607F ceiling stops it, so make this first test with the mechanism unloaded or restrained, the E-stop within reach and the STO circuit intact, as your machine's risk assessment (ISO 12100) requires.
This is a calculated example for the inputs below, not a measured result.
Inputs, with their sources:
- Scaling: 6071, 6077, 60E0 and 60E1 are in thousandths of rated torque, from CiA 402, the profile the drive follows.
- Test command: half of rated torque, your choice for a gentle first test, an example input.
- Limits: full torque in each direction, example startup values for the test.
- Gates: 6060 at 9 confirmed by 6061, and 6041 masked to 0x27, from the checks above.
- 607F: above any speed the load will reach, from your application, written as a startup parameter per the manual's procedure.
Rule: on each side the drive outputs the smaller of the target and the active limit, and a limit of zero clamps that side to zero.
Arithmetic:
- Command: 0.50 x 1000 = 500, so 6071 must read 500 while SMC_SetTorque executes.
- Limits: 60E0 = 1000 and 60E1 = 1000.
- Clamp check: the command is below both limits, so the output follows the command unchanged.
- The failure case: leave 60E0 at 0 and the output is the smaller of 500 and 0, which is zero, the exact symptom; cap at 30 percent instead and the output becomes 0.30 x 1000 = 300.
Result: with every gate open, 6077 leaves zero and tracks the command while the shaft accelerates toward the 607F ceiling, and holds near it against a resisting load.
Decision: if 6077 holds zero while 6071 shows the command, 6061 shows 9 and 6041 masks to 0x27, the clamp is holding. Read 60E0 and 60E1 and rewrite them at or above the command: a limit above the command is invisible, a limit at or below it becomes the output, and zero gives zero. If the axis instead produces torque but less than the motor's datasheet promises, stop and measure before swapping parts, because that is the separate case covered in measuring servo motor torque below the datasheet value.
Questions asked
What should torque actual value show with the motor unloaded?
During acceleration 6077 tracks the command, because real current is producing real torque. Once the shaft reaches the 607F ceiling or runs free, the reading falls to the small friction value. So a value that rises and then drops back toward zero is a working torque mode, not a failed one. Judge the test by the acceleration trace or against a resisting load.
Why delete a second task that also calls the motion blocks?
SoftMotion expects every block on one axis to run in a single task, normally the bus cycle task. A second task calling the same axis can rewrite the controlword between cycles and break the enable chain, leaving the drive below Operation enabled with no error anywhere in the project. Removing the duplicate task costs nothing and removes that whole class of phantom faults.
Is zero actual torque with no fault bit a drive failure?
No. A genuine drive fault sets bit 3 of 6041 and drops the state machine toward switch on disabled, and the drive's own display shows a code. With bit 3 clear and the state in Operation enabled, zero torque simply means zero current is being commanded: a limit, a mode, or a mapping gate is closed, and the drive is doing exactly what its objects tell it.
Does a correct working counter prove the torque PDOs are loaded?
No. The working counter only confirms that each datagram matched the expected length. A stale position-mode mapping with the same byte count reads as healthy. Compare the slave's PDO assignment in the master's diagnostics with the manual's table for the torque set, and confirm 6077 and 6061 actually change while the bus runs.
