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

More
9 months 1 week ago #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! 

Please Log in to join the conversation.

More
9 months 1 week ago #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 to join the conversation.

More
9 months 1 week ago #341521 by PCW
You MUST set the 7I97 PWMgens offset mode to true or runaways are guaranteed.

Please Log in to join the conversation.

More
9 months 1 week ago #341714 by bnet

You MUST set the 7I97 PWMgens offset mode to true or runaways are guaranteed.
 
Yep, that fixed everything! Thanks a million! 

For those who run into this in the future, I needed to add to each axis definition in the .hal:
Code:
setp   hm2_7i97.0.pwmgen.xx.offset-mode true

Where "xx" = joint number. 

Now the machine is stable and jogging smooth and silently. Beauty. 

Please Log in to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum