problem figuring out which pins are which on 7i52s

More
13 Nov 2018 16:56 #120577 by 3D-Master
Hello,

is there an easy way of figuring out which pins have which function on the 7i52s?
i need to know which if these pins are pwm and dir for each axis

the manual says:

CONNECTORS
DIFFERENTIAL OUTPUT CONNECTOR P3
Connector P3 is a 3.5MM pluggable screw terminal block with the following pinout:
P3 PIN FUNCTION DIR
1 GND FROM 7I52S
2 GND FROM 7I52S
3 TX0A FROM 7I52S
4 /TX0A FROM 7I52S
5 TX0B FROM 7I52S
6 /TX0B FROM 7I52S
7 +5V FROM 7I52S
8 +5V FROM 7I52S
9 GND FROM 7I52S
10 GND FROM 7I52S
11 TX1A FROM 7I52S
12 /TX1A FROM 7I52S
13 TX1B FROM 7I52S
14 /TX1B FROM 7I52S
15 +5V FROM 7I52S
16 +5V FROM 7I52S
17 GND FROM 7I52S
18 GND FROM 7I52S
19 TX2A FROM 7I52S
20 /TX2A FROM 7I52S
21 TX2B FROM 7I52S
22 /TX2B FROM 7I52S
23 +5V FROM 7I52S
24 +5V FROM 7I52S
Note that actual signal functions depend on FPGA configuration.

and since i have a different bitfile on my 7i80hd i cannot trust the manual. Hal show only says:

hm2_7i80.0.pwmgen.00.enable or .value /that doesnt help me

is it normal that the 7i52s isnt shown/named in Hal show? Because the 7i73 is shown

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

More
13 Nov 2018 17:18 #120580 by 3D-Master
okay i was able to make out that "3 TX0A FROM 7I52S" should be DIR (4 /TX0A FROM 7I52S is inverted) but neither "5 TX0B FROM 7I52S"
nor "6 /TX0B FROM 7I52S" show signs of life. Pin 7 and 8 only have 5V

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

More
13 Nov 2018 18:04 #120586 by PCW
TX0B AND TX3B ENABLE
Differential outputs TX0B and TX3B can be tri-stated (floated). To enable outputs
TX0B and /TX0B, /TX0BENA must be driven low by the FPGA. To enable outputs TX3B
and /TX3B, /TX3BENA must be driven low by the FPGA.

TX3BENA is GPIO 0 and TX0BENA is GPIO23 (if the 7I52S is on the first connector with GPIO 0..23)
The following user(s) said Thank You: 3D-Master

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

More
13 Nov 2018 18:29 #120590 by 3D-Master
okay thank you i think that works now

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

More
13 Nov 2018 18:36 #120591 by 3D-Master
for everyone else having the same problem:

setp hm2_[HOSTMOT2](BOARD).0.gpio.000.is_output true
setp hm2_[HOSTMOT2](BOARD).0.gpio.023.is_output true

setp hm2_[HOSTMOT2](BOARD).0.gpio.000.out false
setp hm2_[HOSTMOT2](BOARD).0.gpio.023.out false

in my case no need for "[HOSTMOT2]" and "(BOARD)" is replaced by "7i80"

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

More
13 Nov 2018 20:37 #120609 by 3D-Master
so everything, as far as i can see, works properly but when i have the motor on y or z connected and close linuxcnc the motor spools up to maximum rpm. doesnt happen with x axis and yes, i can control the motor when connected to z and y axis.

x axis connected, controllable, then closed linuxcnc => the motor stays still
y or z axis connected, controllable, then closed linuxcnc => motor spools up to maximum rpm

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

More
13 Nov 2018 21:00 #120618 by PCW
Feedback backwards on Y,Z?

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

More
13 Nov 2018 21:34 #120622 by 3D-Master
no i mean i can jog x,y and z without a problem, feedback also is correct but when i close linuxcnc only y and z will let the motor spool up

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

More
13 Nov 2018 21:45 - 13 Nov 2018 21:50 #120624 by PCW
Ahh, I somehow got it in my mind that "close linuxcnc" meant "close the loop in linuxcnc"

Normally PWM/dir drives would have an enable signal that's turned off
when LinuxCNC is not running or on a fault.

If you want to depend on the disabled state of the I/O pins to zero PWM you will probably have to chose the PWM pins that are a 0 drive level when linuxCNC is not running and then possibly invert the PWM in HAL:so it has the correct polarity for the drive.

(if you are using differential drive signals you can swap the +,- pins to do the inversion)

At power up, the + pins of the 7I52S differential pairs will be in a low state and the - pins will be in a high state
Last edit: 13 Nov 2018 21:50 by PCW.

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

More
13 Nov 2018 23:39 #120636 by 3D-Master
ah you mean instead of using TX1B i should use /TX1B and then invert the signal in HAL?

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

Time to create page: 0.083 seconds
Powered by Kunena Forum