problem figuring out which pins are which on 7i52s

More
16 Nov 2018 19:46 #120861 by 3D-Master
can someone explain why /TX0B and /TX3B are good (0v when linuxcnc is closed) but 1,2,4 and 5 have 4.6v when linuxcnc is closed? this doesnt make sense to me

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

More
16 Nov 2018 20:16 #120862 by PCW
Because TXB0 and TXB3 have enable pins and are disabled when LinuxCNC
is not running.

I would suggest using the TX pins that are in the desired state when LinuxCNC is not running and fixing the running output polarity in the hal file

(or using a output pin for a common drive enable if your drives have a enable input as most PWM drives have)

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

More
16 Nov 2018 20:39 #120863 by 3D-Master
so in case of TX1B, i would have to write setp hm2_7i80.0.gpio.039.invert_output true ?

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

More
16 Nov 2018 21:06 - 16 Nov 2018 21:07 #120864 by PCW
If the 7i52s is on the first connector, it would be on GPIO19

You should run mesaflash with the --readhmid option to get a pinout file for your
configuration if there is a question about GPIO pin mapping:

mesaflash --device 7i80hd --addr 10.10.10.10 --readhmid > mypins.txt


If you are using LinuxCNC 2.8 you can do this more cleanly
by inverting the PWM pin:

setp hm2_7i80.0.pwmgen.NN.out0.invert_output true
Last edit: 16 Nov 2018 21:07 by PCW.

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

More
16 Nov 2018 22:43 #120870 by 3D-Master

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

More
17 Nov 2018 16:04 #120902 by 3D-Master
that kinda works but everytime i start up Linuxcnc the motor spools up for a split second, maybe i have to put a relay between the 7i52s pwm and the motor driver or probably use the sleep input but i dont know if it is the enable input. This is what the manual says:

SLP HIGH Inverted sleep input: This pin is pulled high by the driver board, enabling the driver by default; drive SLP low to put the motor driver into a low-power sleep mode.

Does low-power sleep mode mean disabled?

BTW its the Pololu G2 pwm Driver board

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

More
17 Nov 2018 18:06 #120913 by PCW
I would guess that sleep mode means disabled

Another option is disabling the primary servo power on the AC side
with a relay until linuxcnc is running

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

More
20 Nov 2018 13:50 #121047 by andypugh

Another option is disabling the primary servo power on the AC side
with a relay until linuxcnc is running


I always do this anyway. The main power relay is controlled by the LinuxCNC "machine on" output.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum