First Analog Build - 7i97 - Anilam - Issue enabling machine

  • bnet
  • bnet's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
17 Jan 2026 21:50 #341499 by bnet
I am working on integrating my first analog servo build. 7i97 and Anilam drives. I am following the steps here . I have the encoder scaling correct but when I go to enable the machine, there is a brief moment of runaway before I get two errors: 
"joint 1 following error"
"could not switch the machine on. is limit switch activated?"

I am only working on joint 1 at the moment. 
No limit switches are in use at the moment. 

I have tried inverting 'output scaling' and 'encoder scaling' in every possible combination on the configuration page. 

Any suggestions? 

Thanks! 
Attachments:

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
18 Jan 2026 02:17 #341519 by tommylight
Those are two separate issues, first is always (granted wiring is OK) hal/settings issue, the second is a limit switch triggered or inverted issue.
For the first, some checks:
-disconnect one of the analog output wires from mesa, power on the machine and enable shortly = the motor should very slowly turn. Be aware that if wiring is not OK the machine might run away at full speed
-reconnect the wires
-use a DVM set in beep or resistance mode and check between analog ground on the drive and machine ground = there should not be low resistance, usually. machine should be powered off.
-use the DVM and measure the analog output voltage on Mesa or on the drive while LinuxCNC is disabled but the machine is powered on and LinuxCNC is running = there should be no voltage
-
-use the calibration screen to invert the output, or encoder, but NEVER both, test by enabling the machine
-if you still get joint errors, lover the P value to 10 or 5 or 2 and test.

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

More
18 Jan 2026 02:32 #341521 by PCW
You MUST set the 7I97 PWMgens offset mode to true or runaways are guaranteed.
The following user(s) said Thank You: tommylight

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

Time to create page: 0.067 seconds
Powered by Kunena Forum