Servos drives directly start turning

More
02 Jan 2026 11:05 - 02 Jan 2026 11:07 #340872 by JanCNC
Servos drives directly start turning was created by JanCNC
Hello everyone!

I am struggling with the implementation of my servo drives. I set up the pncconf wizard and did some adjustments, checked the Output Offset and scaled the Encoder. Now I want to start the machine an make some PID tuning, but if i toggle the Machine Power Button the Servos directly starts to turn. After a few secs i got an following error (make sens) and the Servos stops.

What is wrong in my config? Is this an Servo Controller Problem or an Mesa Setup Problem? What should i do next?

I am using the Linux CNC (2.9.4), a MESA 7I92TM connected via Ethernet and a 7i77 at Port P2 for the Servo Drive Control. My Servo Drives (Yaskawa SGDV-7R6A01A) run with +-10V and Encoder Signal to the Linux CNC.

Attached you can find some pictures and files of my config.
Thanks a lot and all the best wishes from Germany
JanCNC
Attachments:
Last edit: 02 Jan 2026 11:07 by JanCNC.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
02 Jan 2026 12:07 #340876 by tommylight

Please Log in or Create an account to join the conversation.

More
03 Jan 2026 21:16 #340936 by JanCNC
Replied by JanCNC on topic Servos drives directly start turning
Thanks for your reply. I've read through the entire forum thread, but I haven't found anything specifically related to my problem.

I suspect the OUTPUT_OFFSET value isn't working correctly. When I configure the axis in the pncconf wizard and adjust the offset value so the axis no longer drifts, everything works fine. However, as soon as I switch to the normal Linux CNC environment and enable the axes, they start drifting. I also tried disconnecting the analog signal connector from the 7i77 to see what effect it would have. There's no noticeable change. The axis drifts slightly faster, but that could be misleading.

Could it be that there are missing links in my .hal and .ini files? Or do I need to adjust other settings? I've also experimented with the calibration, increasing the P value or setting all values ​​to 0, but this hasn't helped. The axes are still drifting.

Or is it possible that the drifting is normal (approx. 3-5 rpm)? As I understand it, the axis should stand still when the OUTPUT_OFFSET is set correct, even in the normal CNC GUI. Is that correct?

Please Log in or Create an account to join the conversation.

More
03 Jan 2026 21:37 - 03 Jan 2026 21:40 #340939 by PCW
Replied by PCW on topic Servos drives directly start turning
Drifting usually indicates that you do not have the drive enables working.

The drives should be disabled until linuxCNC in running and in the machine-on state.
At this point, the encoder feedback and PID loop will prevent drifting.
If you get drift in the machine-on state that indicates a hal, encoder or PID tuning issue.

This is a safety issue, with analog drives, the drive enable is critical.


 
Last edit: 03 Jan 2026 21:40 by PCW.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
03 Jan 2026 22:51 #340942 by tommylight
Replied by tommylight on topic Servos drives directly start turning

Or is it possible that the drifting is normal (approx. 3-5 rpm)?

Yes it is normal for analog drives when there is no controller in use.

As I understand it, the axis should stand still when the OUTPUT_OFFSET is set correct, even in the normal CNC GUI. Is that correct?

Not entirely:
-the axis should stand still if everything is configured properly
-OUTPUT_OFFSET is used for adjusting forward/reverse speed, very rarely used.
-
You have other issues with enable not wired properly and controlled by LinuxCNC, you can NOT continue to do anything before fixing that as it is dangerous to you and to the machine.
The link i posted above, go step by step and check things work as described, no skipping.

Please Log in or Create an account to join the conversation.

More
06 Jan 2026 19:57 #341086 by JanCNC
Replied by JanCNC on topic Servos drives directly start turning
My wiring was a little bit different, I configured the enable signal to my normal Digital Outputs and connected the servo enable cable direct to the output signal.

I did some changes and tried to wired it properly but...
If I press F2 in LinuxCNC the analogena signal seem to work in the HALSHOW but there is no power on the TB5 Analog Drive Interface from the 7i77. The PINS ENA0- and ENA0+ on the TB5 connector should get power when I turn on the machine with F2 right???
 
Attachments:

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
06 Jan 2026 20:04 #341087 by tommylight
Replied by tommylight on topic Servos drives directly start turning

The PINS ENA0- and ENA0+ on the TB5 connector should get power when I turn on the machine with F2 right???

 

No.
They just short internally as a normal switch.

Please Log in or Create an account to join the conversation.

More
06 Jan 2026 21:52 #341090 by JanCNC
Replied by JanCNC on topic Servos drives directly start turning
Now the wiring is correct and the enable is working. If i test every axis for its own it seems to work fine.

But now i got a problem with my gantry Y Axis. If both Y Axis connected to the TB5 and we press F2 the Motors jumps around and an following error occures. Do you have any idea why this happend?
Attachments:

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
06 Jan 2026 22:44 #341093 by tommylight
Replied by tommylight on topic Servos drives directly start turning


But now i got a problem with my gantry Y Axis. If both Y Axis connected to the TB5 and we press F2 the Motors jumps around and an following error occures. Do you have any idea why this happend?

Do you mean both servo drives are connected to the same analog output?
If yes, that does not work, analog drives can not be wired like that as it will mess with the feedback.
Each MUST use it's own output and it's own feedback.

Please Log in or Create an account to join the conversation.

More
07 Jan 2026 00:19 #341096 by PCW
Replied by PCW on topic Servos drives directly start turning
The hal file shows independent analog outputs and encoders

Are you sure you have the feedback correct for Y and Y2?

You not only have to get the right (matching) directions but the
proper feedback so you don't get a instant runaway at drive enable.

Might be best to test  this with the linear axis disconnected

Please Log in or Create an account to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum