
TwinCAT debugging process (for AX5000)
3.1 Software Requirements and Configuration Modes
Requires TwinCAT NC PTP and TwinCAT PLC.
Switch TwinCAT to Config Mode (blue gear icon) before debugging.
3.2 Scanning equipment and automatic configuration
Right click on "I/O Devices" → "Scan Devices".
Select EtherCAT device and confirm scanning boxes.
When prompted to scan the motor electronic nameplate, it is recommended to select "Yes", otherwise the motor model needs to be manually selected.
Confirm automatic creation of NC axis configuration.
3.3 Manual addition of motor (without electronic nameplate)
In TCDriveManager, select Channel A/B → Parameter → Motor and Feedback, click "Select Motor", and select the matching motor from the list. Then set the main power supply voltage type.
3.4 Creating NC axes and links
Right click on "NC Configuration" → "Insert Task" and name the NC task.
Right click on "Axes" → "Append Axis" and select the axis type (continuous axis).
In the Axis Setting tab, select the corresponding drive channel through "Link To I/O.
3.5 Calibration Scaling Factor
In TCDriveManager, go to Channel → Parameter → Scalings and NC Parameters, and set the "Feed constant" (user units per revolution/millimeter). For example, the rotation axis of 360 °/2 ^ 20 inc=0.0003433 °/nc. Press' Save 'to turn the parameter from red to black, and then download the scaling factor in the NC axis Parameter tab.
3.6 Manual Testing (Jog)
Activate Configuration and switch TwinCAT to Run mode (green gear).
Open the Axis Online tab, check "Enabling Controller" and "Enabling Feed Fw/Bw", and set Override to 100%.
Use F1... F4 jog, F5/F6 execute absolute/stop.
Common fault codes and diagnostic methods
4.1 F415- Distributed Clocks: Process Data Synchronization Error
Reason: EtherCAT cycle data did not arrive before Sync1 signal. Usually caused by improper task priority settings (such as PLC priority being higher than NC and asynchronous cycles).
Solution: In TwinCAT task configuration, set the priority of NC tasks to be higher than PLC tasks, and ensure that I/O updates are placed at the beginning of the tasks. Check if the Sync0 cycle is an integer multiple of 62.5 µ s, 125 µ s, or 250 µ s.
4.2 FA49- Feedback Process Channel Error (1Vess)
Reason: The amplitude of the sine and cosine signals exceeds the range of 0.53... 1.34V (such as long cables or poor shielding).
Diagnosis: In TCDriveManager, set the "SinCos 1Voss monitoring" of P-0-0150 to "Error monitoring and Sin/Cos logging", and add P-0-1006... P-0-1011 to the startup list and process data. Use TwinCAT Scope 2 to record the amplitude. The normal value should be 1Vpp ± 20%.
4.3 F2A0- Reversing Error
Trigger condition: Simultaneously meet the following conditions: ① Actual speed>P-0-0069 (commutation monitoring speed limit); ② The direction of power and acceleration is opposite; ③ Actual power>95% P-0-0092 (peak current).
Disposal: First, check if the motor phase sequence is consistent with the feedback counting direction (using the P-0-0166 command). If it is a third-party motor, the mechanical/electrical commutation offset needs to be re determined. If there is a false alarm under extreme working conditions, P-0-0069 can be appropriately increased, but it is not recommended (as it may mask the true fault).
4.4 F4A5- SoE Communication Parameter Error
Accompanying error: usually occurs simultaneously with F152 and FA01.
Reason: The "Signal period per rotation" setting in parameter P-0-0150 is incorrect (should be polar distance/sine period length). For linear motors, if the pole distance is 28.1mm and the signal period is 1mm, the value should be 28 (integer truncated), but it must be automatically compensated through the feedback gearbox function.
Another common reason is that the input frequency of the encoder exceeds the limit. For example, when the signal cycle is 20 µ m and the speed is 12m/s, the input frequency is 1MHz, while the upper limit of 1Vpp input is only 250kHz → S-0-0113 (maximum motor speed) needs to be reduced.
4.5 F107- Status: Current controller not ready
Reason: The "Commutation mode" in P-0-0150 is still 0 (no commutation).
Solution: Change to "2: Commutation Offset 0 deg" or "3: Adjustable Mechanical Offset", and then perform commutation offset calibration (P-0-0160).

Commutation Offset Calibration
5.1 Synchronous motor with absolute value encoder
Set Commutation mode to 3 in P-0-0150.
Execute command P-0-0166 (motor and feedback connection check) to obtain the "Commutation position difference" Δ.
New electrical offset=P-0-0057 (old value) - Δ. If the result is negative, add 360 °.
Write the new value to P-0-0057 and download it.
Perform P-0-0166 again and confirm that the difference is within 355... 360 ° or 0... 5 °.
5.2 Incremental Encoder (Sine/Cosine or TTL)
The 'Wake&Shake' program (P-0-0160) must be used:
settings P‑0‑0165:Command mode = 2 (Wake and shake),Activation = 1 (On enable request)。
The 'Commutation pos control: Kp' can be adjusted based on mechanical rigidity (default 0.04). If the system oscillates severely, set Kp=0 to enable the second variant (allowing for greater motion but more stable).