5i25 + 7i85s +....
10 Nov 2016 11:19 - 10 Nov 2016 11:51 #82647
by casetero
Replied by casetero on topic 5i25 + 7i85s +....
Thank you!
I think i have wired it correctly. Now i´m messing with the HAL file.
The thing is that i dont have a specific PIN for the TX6 and TX7, these are the phisical outputs of my 7i85s that i want to use for the ENABLE and PWM purpose of the SPIN1X.
How are they labeled in the HAL configuration?? There appear position-cmd and velocity-cmd for example, but i guess they aren´t the PINS i have to use.
Any advice??
Thank you again!
EDIT= In the manual of the 7i85s i´ve seen the GPIO´s of the card. It works nice. Thank you!!
I think i have wired it correctly. Now i´m messing with the HAL file.
The thing is that i dont have a specific PIN for the TX6 and TX7, these are the phisical outputs of my 7i85s that i want to use for the ENABLE and PWM purpose of the SPIN1X.
How are they labeled in the HAL configuration?? There appear position-cmd and velocity-cmd for example, but i guess they aren´t the PINS i have to use.
Any advice??
Thank you again!
EDIT= In the manual of the 7i85s i´ve seen the GPIO´s of the card. It works nice. Thank you!!
Last edit: 10 Nov 2016 11:51 by casetero.
Please Log in or Create an account to join the conversation.
10 Nov 2016 14:51 #82660
by PCW
Replied by PCW on topic 5i25 + 7i85s +....
For running the SPINX1 you need a FPGA configuration with a PWM generator
what FPGA configuration are you using?
You can read out the FPGA pinout with:
sudo mesaflash --device 5i25 --readhmid
what FPGA configuration are you using?
You can read out the FPGA pinout with:
sudo mesaflash --device 5i25 --readhmid
The following user(s) said Thank You: casetero
Please Log in or Create an account to join the conversation.
10 Nov 2016 16:09 #82665
by casetero
Replied by casetero on topic 5i25 + 7i85s +....
Hi,
My FPGA system is 5i25+7i85s. I have connected to it 3 encoders and 3 motors. So i have DIF OUT 6,7 free.
I have run the command :
sudo mesaflash --device 5i25 --readhmid
and it returns
sudo : mesaflash : command not found
The LED´s of the ENABLE and DIR are lighting in the SPIN1X. I have wired the ENABLE PIN of the SPIN1X to the PIN TX7 of the 7i85s. In the manual says that this TX7 PIN is the IO19, but i switch on off this pin and the LED doesnt switch off, so i guess that this PIN is always 0.
What am i doing wrong??
Thank you!
My FPGA system is 5i25+7i85s. I have connected to it 3 encoders and 3 motors. So i have DIF OUT 6,7 free.
I have run the command :
sudo mesaflash --device 5i25 --readhmid
and it returns
sudo : mesaflash : command not found
The LED´s of the ENABLE and DIR are lighting in the SPIN1X. I have wired the ENABLE PIN of the SPIN1X to the PIN TX7 of the 7i85s. In the manual says that this TX7 PIN is the IO19, but i switch on off this pin and the LED doesnt switch off, so i guess that this PIN is always 0.
What am i doing wrong??
Thank you!
Please Log in or Create an account to join the conversation.
10 Nov 2016 17:06 - 10 Nov 2016 17:19 #82670
by casetero
Replied by casetero on topic 5i25 + 7i85s +....
Ok, i have installed the mesaflash and this is what i take from the command:
Configuration pin-out:
IO Connections for P3
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 0 IOPort SSerial 0 RXData1 (In)
14 1 IOPort SSerial 0 TXData1 (Out)
2 2 IOPort StepGen 3 Step/Table1 (Out)
15 3 IOPort StepGen 3 Dir/Table2 (Out)
3 4 IOPort StepGen 2 Step/Table1 (Out)
16 5 IOPort StepGen 2 Dir/Table2 (Out)
4 6 IOPort StepGen 1 Step/Table1 (Out)
17 7 IOPort StepGen 1 Dir/Table2 (Out)
5 8 IOPort StepGen 0 Step/Table1 (Out)
6 9 IOPort StepGen 0 Dir/Table2 (Out)
7 10 IOPort MuxedQCountSel 0 MuxSel0 (Out)
8 11 IOPort MuxedQCount 0 MuxQ-A (In)
9 12 IOPort MuxedQCount 0 MuxQ-B (In)
10 13 IOPort MuxedQCount 0 MuxQ-IDX (In)
11 14 IOPort MuxedQCount 1 MuxQ-A (In)
12 15 IOPort MuxedQCount 1 MuxQ-B (In)
13 16 IOPort MuxedQCount 1 MuxQ-IDX (In)
IO Connections for P2
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 17 IOPort SSerial 0 RXData2 (In)
14 18 IOPort SSerial 0 TXData2 (Out)
2 19 IOPort StepGen 7 Step/Table1 (Out)
15 20 IOPort StepGen 7 Dir/Table2 (Out)
3 21 IOPort StepGen 6 Step/Table1 (Out)
16 22 IOPort StepGen 6 Dir/Table2 (Out)
4 23 IOPort StepGen 5 Step/Table1 (Out)
17 24 IOPort StepGen 5 Dir/Table2 (Out)
5 25 IOPort StepGen 4 Step/Table1 (Out)
6 26 IOPort StepGen 4 Dir/Table2 (Out)
7 27 IOPort MuxedQCountSel 4 MuxSel0 (Out)
8 28 IOPort MuxedQCount 2 MuxQ-A (In)
9 29 IOPort MuxedQCount 2 MuxQ-B (In)
10 30 IOPort MuxedQCount 2 MuxQ-IDX (In)
11 31 IOPort MuxedQCount 3 MuxQ-A (In)
12 32 IOPort MuxedQCount 3 MuxQ-B (In)
13 33 IOPort MuxedQCount 3 MuxQ-IDX (In)
As i understand im trying to use the IO19 for P2 and IO2 for P3, which is the HAL name for these PINS?? Which do i have to use??
Thank you!!
EDIT--> In the HAL file do i have to put num_stepgens=4 to activate these PINS? or do i let as it is num_stepgens=3??
Configuration pin-out:
IO Connections for P3
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 0 IOPort SSerial 0 RXData1 (In)
14 1 IOPort SSerial 0 TXData1 (Out)
2 2 IOPort StepGen 3 Step/Table1 (Out)
15 3 IOPort StepGen 3 Dir/Table2 (Out)
3 4 IOPort StepGen 2 Step/Table1 (Out)
16 5 IOPort StepGen 2 Dir/Table2 (Out)
4 6 IOPort StepGen 1 Step/Table1 (Out)
17 7 IOPort StepGen 1 Dir/Table2 (Out)
5 8 IOPort StepGen 0 Step/Table1 (Out)
6 9 IOPort StepGen 0 Dir/Table2 (Out)
7 10 IOPort MuxedQCountSel 0 MuxSel0 (Out)
8 11 IOPort MuxedQCount 0 MuxQ-A (In)
9 12 IOPort MuxedQCount 0 MuxQ-B (In)
10 13 IOPort MuxedQCount 0 MuxQ-IDX (In)
11 14 IOPort MuxedQCount 1 MuxQ-A (In)
12 15 IOPort MuxedQCount 1 MuxQ-B (In)
13 16 IOPort MuxedQCount 1 MuxQ-IDX (In)
IO Connections for P2
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 17 IOPort SSerial 0 RXData2 (In)
14 18 IOPort SSerial 0 TXData2 (Out)
2 19 IOPort StepGen 7 Step/Table1 (Out)
15 20 IOPort StepGen 7 Dir/Table2 (Out)
3 21 IOPort StepGen 6 Step/Table1 (Out)
16 22 IOPort StepGen 6 Dir/Table2 (Out)
4 23 IOPort StepGen 5 Step/Table1 (Out)
17 24 IOPort StepGen 5 Dir/Table2 (Out)
5 25 IOPort StepGen 4 Step/Table1 (Out)
6 26 IOPort StepGen 4 Dir/Table2 (Out)
7 27 IOPort MuxedQCountSel 4 MuxSel0 (Out)
8 28 IOPort MuxedQCount 2 MuxQ-A (In)
9 29 IOPort MuxedQCount 2 MuxQ-B (In)
10 30 IOPort MuxedQCount 2 MuxQ-IDX (In)
11 31 IOPort MuxedQCount 3 MuxQ-A (In)
12 32 IOPort MuxedQCount 3 MuxQ-B (In)
13 33 IOPort MuxedQCount 3 MuxQ-IDX (In)
As i understand im trying to use the IO19 for P2 and IO2 for P3, which is the HAL name for these PINS?? Which do i have to use??
Thank you!!
EDIT--> In the HAL file do i have to put num_stepgens=4 to activate these PINS? or do i let as it is num_stepgens=3??
Last edit: 10 Nov 2016 17:19 by casetero.
Please Log in or Create an account to join the conversation.
10 Nov 2016 17:29 #82671
by andypugh
Assuming you mean 19 and 20:
setp hm2_5i25.0.gpio.019.is-output 1
setp hm2_5i25.0.gpio.020.is-output 1
net signalname some.hal.pin => hm2_5i25.0.gpio.019.out
net anothersignalname another.hal.pin => hm2_5i25.0.gpio.020.out
4. Otherwise 0 would mean 1.
Replied by andypugh on topic 5i25 + 7i85s +....
1 17 IOPort SSerial 0 RXData2 (In)
14 18 IOPort SSerial 0 TXData2 (Out)
2 19 IOPort StepGen 7 Step/Table1 (Out)
15 20 IOPort StepGen 7 Dir/Table2 (Out)
As i understand im trying to use the IO19 for P2 and IO2 for P3, which is the HAL name for these PINS??
Assuming you mean 19 and 20:
setp hm2_5i25.0.gpio.019.is-output 1
setp hm2_5i25.0.gpio.020.is-output 1
net signalname some.hal.pin => hm2_5i25.0.gpio.019.out
net anothersignalname another.hal.pin => hm2_5i25.0.gpio.020.out
In the HAL file do i have to put num_stepgens=4 to activate these PINS? or do i let as it is num_stepgens=3??
4. Otherwise 0 would mean 1.
Please Log in or Create an account to join the conversation.
10 Nov 2016 17:43 #82674
by PCW
Replied by PCW on topic 5i25 + 7i85s +....
You probably want to use 5i25_7i85sspx2.bit since it has PWM gens on TX6 and 7 (on both P3 and P2)
Please Log in or Create an account to join the conversation.
10 Nov 2016 17:49 #82675
by casetero
Replied by casetero on topic 5i25 + 7i85s +....
The question was concerning to one PIN, with mesaflash it shows this PIN as IO19 and IO2. In the manual of the 7i85s it says:
FPGA PRIM I/0 -->IO2
FPGA SEC I/0 -->IO19
For the function TX7. In my system the SPIN1X is wired to the 7i85s so i guess the GPIO IO19 is the HAL PIN i have to use. But maybe im guessing too much.
The question of the num_stepgens=4 or 3, is because i have 3 motors in my system so i have always had num_stepgens=3, but i dont know if have to change to 4 in order to activate this PIN, but as my purpose is to use this PIN as GPIO i dont know if i have to add another stepgen to my HAL file.
Thank you!!
FPGA PRIM I/0 -->IO2
FPGA SEC I/0 -->IO19
For the function TX7. In my system the SPIN1X is wired to the 7i85s so i guess the GPIO IO19 is the HAL PIN i have to use. But maybe im guessing too much.
The question of the num_stepgens=4 or 3, is because i have 3 motors in my system so i have always had num_stepgens=3, but i dont know if have to change to 4 in order to activate this PIN, but as my purpose is to use this PIN as GPIO i dont know if i have to add another stepgen to my HAL file.
Thank you!!
Please Log in or Create an account to join the conversation.
10 Nov 2016 17:57 #82676
by PCW
Replied by PCW on topic 5i25 + 7i85s +....
What daughterboards are connected to P3 (GPIO 0..16) and P2 (GPIO 17..33) ?
Where do you want the SPINX1 to connect (P2 or P3)
In any case, the firmware you have will not work with the SPINX1 because the SPINX1 requires a PWM generator
so you must use 5i25_7i85sspx2.bit or something like it that has both stepgens and PWMgens
Where do you want the SPINX1 to connect (P2 or P3)
In any case, the firmware you have will not work with the SPINX1 because the SPINX1 requires a PWM generator
so you must use 5i25_7i85sspx2.bit or something like it that has both stepgens and PWMgens
Please Log in or Create an account to join the conversation.
10 Nov 2016 18:12 #82677
by casetero
Replied by casetero on topic 5i25 + 7i85s +....
I have a 5i25 connected via PCI slot to my PC and a 7i85s connected to the 5i25 via paralel port cable. My SPIN1X is connected to the 7i85s via the DIF OUT 7 to the ENABLE. I dont know what P3 and P2 means, sorry.
I guess i need to use the the hm2_5i25.0.gpio.019.out, but im not sure. Do i have to activate another stepgen in the HAL file to make it usable??
I have downloaded the 5i25_7i85sspx2.bit file. How can i install it?
Thank you!
I guess i need to use the the hm2_5i25.0.gpio.019.out, but im not sure. Do i have to activate another stepgen in the HAL file to make it usable??
I have downloaded the 5i25_7i85sspx2.bit file. How can i install it?
Thank you!
Please Log in or Create an account to join the conversation.
10 Nov 2016 18:16 #82678
by andypugh
No, you have to specifically _disable_ the stepgen to make the pin available as GPIO.
So, with num_stepgens = 3 the pins allocated to stepgens 4,5,6 and 7 become available as GPIO pins.
Replied by andypugh on topic 5i25 + 7i85s +....
I guess i need to use the the hm2_5i25.0.gpio.019.out, but im not sure. Do i have to activate another stepgen in the HAL file to make it usable??
No, you have to specifically _disable_ the stepgen to make the pin available as GPIO.
So, with num_stepgens = 3 the pins allocated to stepgens 4,5,6 and 7 become available as GPIO pins.
The following user(s) said Thank You: casetero
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.115 seconds