Help with Mesa cards
03 Oct 2021 16:46 #222120
by Kadrick
Help with Mesa cards was created by Kadrick
Hi guys,
Before to ask my questions, let me shortly described my project.
I start to rebuild my CNC with structure more rigid than all in profile. For that I machined new parts in aluminium (paint in blue in picture below). Mechanically, it is OK.
Concerning software, I use Mint 19.3 with linuxcnc 2.8.2. Mesaflash and hm2 with 5i25 folder from supplier are installed.
Like PLC I used arduino Mega + ethernet shield + relay.
Arduino allow me to control light (LED RGB), relay for pump, laser and others options.
I create pyvcp panel, configured custom_postgui.hal and write a code in python for interact with arduino through ethernet connexion. That work pretty well.
Before rebuilded my CNC I used chinese controler (A145A) and DM542 drivers for control my steppers motors.
For increasing accuracy I add linear encoders (X, Y1 and Y2) and then buy Mesa 6i25 and 7i77 for control all.
But it seems that I make a confusion between servo and stepper.
Then I cannot used my 7i77 for control stepper.
Can you confirm my mistake?
Can I used my chinese controller connected to P3 of 6i25 (P2 will used for 7i77)? or buying 7i76 is unavoidable.
If yes, which .bit I can flash?
When I load PNCconf it seems that linuxcnc don't recognize my 6i25 card.
As you can see there are not card specified after "Mesa0 PCI/ETH0/Parport Card:" It is normal?
below my actual configuration flash on mesa 6i25:
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 8 of MuxedQCount in configuration
Version: 3
Registers: 5
BaseAddress: 3600
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: 5B00
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 64 bytes
Module: StepGen
There are 5 of StepGen in configuration
Version: 2
Registers: 10
BaseAddress: 2000
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 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 StepGen 0 Dir/Table2 (Out)
14 1 IOPort StepGen 0 Step/Table1 (Out)
2 2 IOPort StepGen 1 Dir/Table2 (Out)
15 3 IOPort StepGen 1 Step/Table1 (Out)
3 4 IOPort StepGen 2 Dir/Table2 (Out)
16 5 IOPort StepGen 2 Step/Table1 (Out)
4 6 IOPort StepGen 3 Dir/Table2 (Out)
17 7 IOPort StepGen 3 Step/Table1 (Out)
5 8 IOPort StepGen 4 Dir/Table2 (Out)
6 9 IOPort StepGen 4 Step/Table1 (Out)
7 10 IOPort SSerial 0 TXData0 (Out)
8 11 IOPort SSerial 0 RXData0 (In)
9 12 IOPort SSerial 0 TXData1 (Out)
10 13 IOPort SSerial 0 RXData1 (In)
11 14 IOPort MuxedQCount 3 MuxQ-IDX (In)
12 15 IOPort MuxedQCount 3 MuxQ-B (In)
13 16 IOPort MuxedQCount 3 MuxQ-A (In)
IO Connections for P2
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 17 IOPort SSerial 0 TXEn4 (Out)
14 18 IOPort SSerial 0 TXData4 (Out)
2 19 IOPort SSerial 0 RXData4 (In)
15 20 IOPort SSerial 0 TXData3 (Out)
3 21 IOPort SSerial 0 RXData3 (In)
16 22 IOPort SSerial 0 TXData2 (Out)
4 23 IOPort SSerial 0 RXData2 (In)
17 24 IOPort MuxedQCountSel 0 MuxSel0 (Out)
5 25 IOPort MuxedQCount 0 MuxQ-A (In)
6 26 IOPort MuxedQCount 0 MuxQ-B (In)
7 27 IOPort MuxedQCount 0 MuxQ-IDX (In)
8 28 IOPort MuxedQCount 1 MuxQ-A (In)
9 29 IOPort MuxedQCount 1 MuxQ-B (In)
10 30 IOPort MuxedQCount 1 MuxQ-IDX (In)
11 31 IOPort MuxedQCount 2 MuxQ-A (In)
12 32 IOPort MuxedQCount 2 MuxQ-B (In)
13 33 IOPort MuxedQCount 2 MuxQ-IDX (In
Before to ask my questions, let me shortly described my project.
I start to rebuild my CNC with structure more rigid than all in profile. For that I machined new parts in aluminium (paint in blue in picture below). Mechanically, it is OK.
Concerning software, I use Mint 19.3 with linuxcnc 2.8.2. Mesaflash and hm2 with 5i25 folder from supplier are installed.
Like PLC I used arduino Mega + ethernet shield + relay.
Arduino allow me to control light (LED RGB), relay for pump, laser and others options.
I create pyvcp panel, configured custom_postgui.hal and write a code in python for interact with arduino through ethernet connexion. That work pretty well.
Before rebuilded my CNC I used chinese controler (A145A) and DM542 drivers for control my steppers motors.
For increasing accuracy I add linear encoders (X, Y1 and Y2) and then buy Mesa 6i25 and 7i77 for control all.
But it seems that I make a confusion between servo and stepper.
Then I cannot used my 7i77 for control stepper.
Can you confirm my mistake?
Can I used my chinese controller connected to P3 of 6i25 (P2 will used for 7i77)? or buying 7i76 is unavoidable.
If yes, which .bit I can flash?
When I load PNCconf it seems that linuxcnc don't recognize my 6i25 card.
As you can see there are not card specified after "Mesa0 PCI/ETH0/Parport Card:" It is normal?
below my actual configuration flash on mesa 6i25:
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 8 of MuxedQCount in configuration
Version: 3
Registers: 5
BaseAddress: 3600
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: 5B00
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 64 bytes
Module: StepGen
There are 5 of StepGen in configuration
Version: 2
Registers: 10
BaseAddress: 2000
ClockFrequency: 33.333 MHz
Register Stride: 256 bytes
Instance Stride: 4 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 StepGen 0 Dir/Table2 (Out)
14 1 IOPort StepGen 0 Step/Table1 (Out)
2 2 IOPort StepGen 1 Dir/Table2 (Out)
15 3 IOPort StepGen 1 Step/Table1 (Out)
3 4 IOPort StepGen 2 Dir/Table2 (Out)
16 5 IOPort StepGen 2 Step/Table1 (Out)
4 6 IOPort StepGen 3 Dir/Table2 (Out)
17 7 IOPort StepGen 3 Step/Table1 (Out)
5 8 IOPort StepGen 4 Dir/Table2 (Out)
6 9 IOPort StepGen 4 Step/Table1 (Out)
7 10 IOPort SSerial 0 TXData0 (Out)
8 11 IOPort SSerial 0 RXData0 (In)
9 12 IOPort SSerial 0 TXData1 (Out)
10 13 IOPort SSerial 0 RXData1 (In)
11 14 IOPort MuxedQCount 3 MuxQ-IDX (In)
12 15 IOPort MuxedQCount 3 MuxQ-B (In)
13 16 IOPort MuxedQCount 3 MuxQ-A (In)
IO Connections for P2
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 17 IOPort SSerial 0 TXEn4 (Out)
14 18 IOPort SSerial 0 TXData4 (Out)
2 19 IOPort SSerial 0 RXData4 (In)
15 20 IOPort SSerial 0 TXData3 (Out)
3 21 IOPort SSerial 0 RXData3 (In)
16 22 IOPort SSerial 0 TXData2 (Out)
4 23 IOPort SSerial 0 RXData2 (In)
17 24 IOPort MuxedQCountSel 0 MuxSel0 (Out)
5 25 IOPort MuxedQCount 0 MuxQ-A (In)
6 26 IOPort MuxedQCount 0 MuxQ-B (In)
7 27 IOPort MuxedQCount 0 MuxQ-IDX (In)
8 28 IOPort MuxedQCount 1 MuxQ-A (In)
9 29 IOPort MuxedQCount 1 MuxQ-B (In)
10 30 IOPort MuxedQCount 1 MuxQ-IDX (In)
11 31 IOPort MuxedQCount 2 MuxQ-A (In)
12 32 IOPort MuxedQCount 2 MuxQ-B (In)
13 33 IOPort MuxedQCount 2 MuxQ-IDX (In
Attachments:
Please Log in or Create an account to join the conversation.
03 Oct 2021 20:55 #222137
by PCW
Replied by PCW on topic Help with Mesa cards
A 7I77 is made for analog servo systems, a 7I76 makes
more sense for a step/dir system
more sense for a step/dir system
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19210
- Thank you received: 6438
03 Oct 2021 21:26 #222144
by tommylight
Replied by tommylight on topic Help with Mesa cards
A picture of the chinese controller ?
Please Log in or Create an account to join the conversation.
04 Oct 2021 16:46 #222207
by Kadrick
Replied by Kadrick on topic Help with Mesa cards
Attachments:
Please Log in or Create an account to join the conversation.
04 Oct 2021 17:36 #222208
by PCW
Replied by PCW on topic Help with Mesa cards
OK that should be driveable directly from the FPGA card
Please Log in or Create an account to join the conversation.
04 Oct 2021 21:17 #222220
by Kadrick
Replied by Kadrick on topic Help with Mesa cards
Thank for your help.
I will buying a 7i76 card, it is more straighforward.
I will buying a 7i76 card, it is more straighforward.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.233 seconds