Mesa 5i25 & 7i77 bios
- PCW
- Offline
- Moderator
- Posts: 17912
- Thank you received: 4797
Please Log in or Create an account to join the conversation.
- barisduzenli
- Offline
- Junior Member
- Posts: 29
- Thank you received: 2
Please Log in or Create an account to join the conversation.
- barisduzenli
- Offline
- Junior Member
- Posts: 29
- Thank you received: 2
I wired encoder output pins on CN1 to 7i77 as you mentioned. And yes it works. Thank you.
When I turn servo's shaft by hand, each axis' encoder is changing 0.12 for a lap.
But I have another problem now.
When we start linuxcnc without any mdi command or manual click command. Servos start to run. They accelerates quickly to top speed and stops instantly. And I do not know why, one of the three servos does not turn.
If this may cause of tuneless, yes I forget to try servo tuning tutorial gnipsel.com/linuxcnc/tuning/servo.html you have mentioned before.
If not I do not know what I have to do.
For tomorrow, nothing there is in my mind except trying servo tuning tutorial.
I wired
Driver's CN1 7i77's TB3
Opt_A (pin 21) to QA0 (Pin 1)
Opt_/A (pin 22) to /QA0 (Pin 2)
GND (pin 19) to GND (Pin 3)
Opt_B (pin 23) to QB0 (Pin 4)
Opt_/B (pin 25) to /QB0 (Pin 5)
Others are unconnected that I saw another post.,
Also +-10V from Mesa to pin 25 and 13 respectively .TB3 PIN FUNCTION DIR
1 QA0 TO 7I77 PA+ pin 20
2 /QA0 TO 7I77 PA- pin19
3 GND FROM 7I77 GND pin 1
4 QB0 TO 7I77 PB+ pin 18
5 /QB0 TO 7I77 PB- pin 17
6 +5V FROM 7I77 do not connect
7 IDX0 TO 7I77 do not connect
8 /IDX0 TO 7I77 do not connect
Drive enable from Mesa to pin 29 and 9.
And, this topic may wrong to ask kind problems. I may open a new topic.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
- Posts: 17912
- Thank you received: 4797
When we start linuxcnc without any mdi command or manual click command. Servos start to run. They accelerates quickly to top speed and stops instantly. And I do not know why, one of the three servos does not turn.
This is expected if the feedback is backwards (and you have a 50% chance of this on a new retrofit)
Once you have the encoder position read-out correct (correct scaling _and_ direction)
you may have to reverse the analog polarity on the hal file to get the desired negative feedback
This is done by changing the sign of the "scalemax" parameter
Please Log in or Create an account to join the conversation.
- jeffie-3
- Offline
- Senior Member
- Posts: 63
- Thank you received: 1
Here is the output when I ran mesaflash --device 5i25 --readhmid
Configuration Name: HOSTMOT2
General configuration information:
BoardName : MESA5I25
FPGA Size: 9 KGates
FPGA Pins: 144
Number of IO Ports: 2
Width of one I/O port: 17
Clock Low frequency: 33.3333 MHz
Clock High frequency: 200.0000 MHz
IDROM Type: 3
Instance Stride 0: 4
Instance Stride 1: 64
Register Stride 0: 256
Register Stride 1: 256
Modules in configuration:
Module: WatchDog
There are 1 of WatchDog in configuration
Version: 0
Registers: 3
BaseAddress: 0C00
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: IOPort
There are 2 of IOPort in configuration
Version: 0
Registers: 5
BaseAddress: 1000
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: MuxedQCount
There are 12 of MuxedQCount in configuration
Version: 3
Registers: 5
BaseAddress: 3500
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: MuxedQCountSel
There are 1 of MuxedQCountSel in configuration
Version: 0
Registers: 0
BaseAddress: 0000
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: SSerial
There are 1 of SSerial in configuration
Version: 0
Registers: 6
BaseAddress: 5A00
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 64 bytes
Module: LED
There are 1 of LED in configuration
Version: 0
Registers: 1
BaseAddress: 0200
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Configuration pin-out:
IO Connections for P3
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 0 IOPort SSerial 0 TXEn3 (Out)
14 1 IOPort SSerial 0 TXData3 (Out)
2 2 IOPort SSerial 0 RXData3 (In)
15 3 IOPort SSerial 0 TXData2 (Out)
3 4 IOPort SSerial 0 RXData2 (In)
16 5 IOPort SSerial 0 TXData1 (Out)
4 6 IOPort SSerial 0 RXData1 (In)
17 7 IOPort MuxedQCountSel 0 MuxSel0 (Out)
5 8 IOPort MuxedQCount 0 MuxQ-A (In)
6 9 IOPort MuxedQCount 0 MuxQ-B (In)
7 10 IOPort MuxedQCount 0 MuxQ-IDX (In)
8 11 IOPort MuxedQCount 1 MuxQ-A (In)
9 12 IOPort MuxedQCount 1 MuxQ-B (In)
10 13 IOPort MuxedQCount 1 MuxQ-IDX (In)
11 14 IOPort MuxedQCount 2 MuxQ-A (In)
12 15 IOPort MuxedQCount 2 MuxQ-B (In)
13 16 IOPort MuxedQCount 2 MuxQ-IDX (In)
IO Connections for P2
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 17 IOPort SSerial 0 TXEn6 (Out)
14 18 IOPort SSerial 0 TXData6 (Out)
2 19 IOPort SSerial 0 RXData6 (In)
15 20 IOPort SSerial 0 TXData5 (Out)
3 21 IOPort SSerial 0 RXData5 (In)
16 22 IOPort SSerial 0 TXData4 (Out)
4 23 IOPort SSerial 0 RXData4 (In)
17 24 IOPort MuxedQCountSel 3 MuxSel0 (Out)
5 25 IOPort MuxedQCount 3 MuxQ-A (In)
6 26 IOPort MuxedQCount 3 MuxQ-B (In)
7 27 IOPort MuxedQCount 3 MuxQ-IDX (In)
8 28 IOPort MuxedQCount 4 MuxQ-A (In)
9 29 IOPort MuxedQCount 4 MuxQ-B (In)
10 30 IOPort MuxedQCount 4 MuxQ-IDX (In)
11 31 IOPort MuxedQCount 5 MuxQ-A (In)
12 32 IOPort MuxedQCount 5 MuxQ-B (In)
13 33 IOPort MuxedQCount 5 MuxQ-IDX (In)
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
- Posts: 19435
- Thank you received: 6508
you really need to read this, thoroughly.
forum.linuxcnc.org/10-advanced-configura...ning-detailed-how-to
Please Log in or Create an account to join the conversation.
- jeffie-3
- Offline
- Senior Member
- Posts: 63
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
- Posts: 17912
- Thank you received: 4797
5i25_7i77x2.bit firmware
Please Log in or Create an account to join the conversation.
- jeffie-3
- Offline
- Senior Member
- Posts: 63
- Thank you received: 1
I guess I just need to go ahead and flash it. I have downloaded on to a jump drive the 5i25.zip file from mesa. Could you give me step by step instructions. I understand dos well, just not linux.
Thank you,
Jeff
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
- Posts: 17912
- Thank you received: 4797
First copy 5i25.zip file to your hard drive (in your home directory) and unzip it
cd to configs/hostmot2
then run the mesaflash command:
sudo mesaflash --device 5i25 --write 5i25_7i77x2.bit
If the mesaflash commend is not present, you will need to install it
On a standard LinuxCNC distribution you should be able to install mesaflash with
sudo apt-get install mesaflash
Please Log in or Create an account to join the conversation.