First Machine, can't get 6i25 to drive CL57Y/CL86Y
- Autumn Reign
- Away
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
16 Nov 2025 22:53 #338543
by Autumn Reign
First Machine, can't get 6i25 to drive CL57Y/CL86Y was created by Autumn Reign
I've been working on a large format gantry cnc for a few months now and while I have plenty of mechanical design experience and a decent bit of controls, LinuxCNC and this style of hardware is well outside of my (current) comfort zone. I've got my HAL/ini files loading into LinuxCNC without error, and am starting to get the hang of syntax and method for this kind of machine control, but I've got some pretty glaring rookie issues left to sort.
I can power up the mesa board and actuate my steppers with mechanical switches on the 5v and 0v outputs, so my machine wiring is functional and my driver is not fried or otherwise inoperable. I am using 5v on PU+ for power input and then grounding PU- on my z axis stepgen on pin 7, starting the pin count from 0. I have inverted the pin with setp hm2_5i25.0.gpio.007.invert_output true in my hal and the pin reads 5V when idle so I think I have everything right up to that point. However, nothing moves when homing or jogging a joint, and when I let the home run I see no activity with a multimeter on the pin. I feel like I am doing something dumb and unless I can find a solution I'll go get some daughter cards for the 6i25. For several reasons none of the standard offering quite fit my needs but I can make some combination work.
Any advice? I've called into Mesa twice and have been able to make a lot of headway from the info gained there to even get to this point but this is where I am starting to stumble. I feel like I am missing something on timing or tuning obvious in retrospect. Files attached.
I can power up the mesa board and actuate my steppers with mechanical switches on the 5v and 0v outputs, so my machine wiring is functional and my driver is not fried or otherwise inoperable. I am using 5v on PU+ for power input and then grounding PU- on my z axis stepgen on pin 7, starting the pin count from 0. I have inverted the pin with setp hm2_5i25.0.gpio.007.invert_output true in my hal and the pin reads 5V when idle so I think I have everything right up to that point. However, nothing moves when homing or jogging a joint, and when I let the home run I see no activity with a multimeter on the pin. I feel like I am doing something dumb and unless I can find a solution I'll go get some daughter cards for the 6i25. For several reasons none of the standard offering quite fit my needs but I can make some combination work.
Any advice? I've called into Mesa twice and have been able to make a lot of headway from the info gained there to even get to this point but this is where I am starting to stumble. I feel like I am missing something on timing or tuning obvious in retrospect. Files attached.
Please Log in or Create an account to join the conversation.
- langdons
-
- Offline
- Platinum Member
-
Less
More
- Posts: 739
- Thank you received: 83
16 Nov 2025 23:51 - 17 Nov 2025 00:02 #338544
by langdons
Replied by langdons on topic First Machine, can't get 6i25 to drive CL57Y/CL86Y
What version of LinuxCNC are you using?
Did you install from the ISO?
Did you buy those drivers from stepperonline? (there are clones of the clones)
What GUI are you using (I assume AXIS)?
What does the 6i25 connect to?
Perhaps the problem is whatever is between the 6i25 and the drivers.
The pulse pin carries high frequancy pulses, don't trust a multimeter to reliably measure it, especially when it's set to DC.
Try setting your multimeter to AC, or use an LED+current-limiting resistor to view the pulses.
Did you install from the ISO?
Did you buy those drivers from stepperonline? (there are clones of the clones)
What GUI are you using (I assume AXIS)?
What does the 6i25 connect to?
Perhaps the problem is whatever is between the 6i25 and the drivers.
The pulse pin carries high frequancy pulses, don't trust a multimeter to reliably measure it, especially when it's set to DC.
Try setting your multimeter to AC, or use an LED+current-limiting resistor to view the pulses.
Last edit: 17 Nov 2025 00:02 by langdons.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17410
- Thank you received: 5070
17 Nov 2025 00:38 - 17 Nov 2025 00:57 #338546
by PCW
Replied by PCW on topic First Machine, can't get 6i25 to drive CL57Y/CL86Y
What firmware are you using?
sudo mesaflash --device 5i25 --readhmid
Will print the pinout of the currently installed firmware
( assuming you are using the 5abob firmware, DB25 pin 7 is stepgen 2 DIR, not STEP )
sudo mesaflash --device 5i25 --readhmid
Will print the pinout of the currently installed firmware
( assuming you are using the 5abob firmware, DB25 pin 7 is stepgen 2 DIR, not STEP )
Last edit: 17 Nov 2025 00:57 by PCW.
Please Log in or Create an account to join the conversation.
- Autumn Reign
- Away
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
17 Nov 2025 00:45 #338548
by Autumn Reign
Replied by Autumn Reign on topic First Machine, can't get 6i25 to drive CL57Y/CL86Y
2.9.7, Preempt rt ISO
Stepper online, no clones.
axis
The drivers, CLXX's no daughters.
I think the problem being between the 6i25 and the drivers is probable.
I tried some weak oscilloscopes. Nothing better than AC multimeters, it just read gibberish. I really should get a good one as a work expense. Something that can ID freq bands. I could go that route if this SHOULD work.
Stepper online, no clones.
axis
The drivers, CLXX's no daughters.
I think the problem being between the 6i25 and the drivers is probable.
I tried some weak oscilloscopes. Nothing better than AC multimeters, it just read gibberish. I really should get a good one as a work expense. Something that can ID freq bands. I could go that route if this SHOULD work.
Please Log in or Create an account to join the conversation.
- Autumn Reign
- Away
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
17 Nov 2025 00:56 #338549
by Autumn Reign
Replied by Autumn Reign on topic First Machine, can't get 6i25 to drive CL57Y/CL86Y
I believe it's Bob if I did the flash right. I'm still not 100% on how all these talk and write to one another. I'll run the readhmid after I am done making dinner.
I'm not sure if this nomenclature starts at 0 or 1. It's physically the 8th pin starting from 1 which is how I understand DB25 to be counted by, but the config starts joints from 0 and I'm not sure how to describe the count due to that.
I'm not sure if this nomenclature starts at 0 or 1. It's physically the 8th pin starting from 1 which is how I understand DB25 to be counted by, but the config starts joints from 0 and I'm not sure how to describe the count due to that.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17410
- Thank you received: 5070
17 Nov 2025 01:05 #338550
by PCW
Replied by PCW on topic First Machine, can't get 6i25 to drive CL57Y/CL86Y
On the 6I25/5I25 mesaflash lists DB25 pin numbers
DB25 connectors are numbered:
1 2 3 4 5 6 7 8 9 10 11 12 13
14 15 16 17 18 19 20 21 22 23 24 25
Also you don't need to use GPIO to invert step or dir pins, there are aliased names like:
hm2_5i25.0.stepgen.00.direction.invert_output
hm2_5i25.0.stepgen.00.step.invert_output
DB25 connectors are numbered:
1 2 3 4 5 6 7 8 9 10 11 12 13
14 15 16 17 18 19 20 21 22 23 24 25
Also you don't need to use GPIO to invert step or dir pins, there are aliased names like:
hm2_5i25.0.stepgen.00.direction.invert_output
hm2_5i25.0.stepgen.00.step.invert_output
Please Log in or Create an account to join the conversation.
- Autumn Reign
- Away
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
17 Nov 2025 01:38 #338554
by Autumn Reign
Replied by Autumn Reign on topic First Machine, can't get 6i25 to drive CL57Y/CL86Y
I read a few posts that you said on this but it failed to compile when launching linuxcnc when I used that stepgen/invert nomenclature. Past posts included 1 or TRUE in the definition, I will try the above verbatim.
Please Log in or Create an account to join the conversation.
- Autumn Reign
- Away
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
17 Nov 2025 01:49 #338555
by Autumn Reign
Replied by Autumn Reign on topic First Machine, can't get 6i25 to drive CL57Y/CL86Y
General configuration information:
BoardName : MESA5I25
FPGA Size: 9 KGates5
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: QCount
There are 2 of QCount in configuration
Version: 2
Registers: 5
BaseAddress: 3000
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 10 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
DB25 pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. 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 QCount 0 Quad-IDX (In)
12 15 IOPort QCount 0 Quad-B (In)
13 16 IOPort QCount 0 Quad-A (In)
IO Connections for P2
DB25 pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. Pin Dir
1 17 IOPort StepGen 5 Dir/Table2 (Out)
14 18 IOPort StepGen 5 Step/Table1 (Out)
2 19 IOPort StepGen 6 Dir/Table2 (Out)
15 20 IOPort StepGen 6 Step/Table1 (Out)
3 21 IOPort StepGen 7 Dir/Table2 (Out)
16 22 IOPort StepGen 7 Step/Table1 (Out)
4 23 IOPort StepGen 8 Dir/Table2 (Out)
17 24 IOPort StepGen 8 Step/Table1 (Out)
5 25 IOPort StepGen 9 Dir/Table2 (Out)
6 26 IOPort StepGen 9 Step/Table1 (Out)
7 27 IOPort SSerial 0 TXData2 (Out)
8 28 IOPort SSerial 0 RXData2 (In)
9 29 IOPort SSerial 0 TXData3 (Out)
10 30 IOPort SSerial 0 RXData3 (In)
11 31 IOPort QCount 1 Quad-IDX (In)
12 32 IOPort QCount 1 Quad-B (In)
13 33 IOPort QCount 1 Quad-A
When using:
setp hm2_5i25.0.stepgen.03.direction.invert_output
setp hm2_5i25.0.stepgen.03.step.invert_output
Results:
Debug file information:
Note: Using POSIX realtime
./Autumn.hal:240: setp requires 2 arguments, 1 given
12304
Stopping realtime threads
Unloading hal components
RTAPI_PCI: Unmapped 65536 bytes at 0x7f370745c000
Note: Using POSIX realtime
But:
setp hm2_5i25.0.stepgen.03.direction.invert_output TRUE
setp hm2_5i25.0.stepgen.03.step.invert_output TRUE
Executes and launches
BoardName : MESA5I25
FPGA Size: 9 KGates5
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: QCount
There are 2 of QCount in configuration
Version: 2
Registers: 5
BaseAddress: 3000
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 10 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
DB25 pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. 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 QCount 0 Quad-IDX (In)
12 15 IOPort QCount 0 Quad-B (In)
13 16 IOPort QCount 0 Quad-A (In)
IO Connections for P2
DB25 pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. Pin Dir
1 17 IOPort StepGen 5 Dir/Table2 (Out)
14 18 IOPort StepGen 5 Step/Table1 (Out)
2 19 IOPort StepGen 6 Dir/Table2 (Out)
15 20 IOPort StepGen 6 Step/Table1 (Out)
3 21 IOPort StepGen 7 Dir/Table2 (Out)
16 22 IOPort StepGen 7 Step/Table1 (Out)
4 23 IOPort StepGen 8 Dir/Table2 (Out)
17 24 IOPort StepGen 8 Step/Table1 (Out)
5 25 IOPort StepGen 9 Dir/Table2 (Out)
6 26 IOPort StepGen 9 Step/Table1 (Out)
7 27 IOPort SSerial 0 TXData2 (Out)
8 28 IOPort SSerial 0 RXData2 (In)
9 29 IOPort SSerial 0 TXData3 (Out)
10 30 IOPort SSerial 0 RXData3 (In)
11 31 IOPort QCount 1 Quad-IDX (In)
12 32 IOPort QCount 1 Quad-B (In)
13 33 IOPort QCount 1 Quad-A
When using:
setp hm2_5i25.0.stepgen.03.direction.invert_output
setp hm2_5i25.0.stepgen.03.step.invert_output
Results:
Debug file information:
Note: Using POSIX realtime
./Autumn.hal:240: setp requires 2 arguments, 1 given
12304
Stopping realtime threads
Unloading hal components
RTAPI_PCI: Unmapped 65536 bytes at 0x7f370745c000
Note: Using POSIX realtime
But:
setp hm2_5i25.0.stepgen.03.direction.invert_output TRUE
setp hm2_5i25.0.stepgen.03.step.invert_output TRUE
Executes and launches
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17410
- Thank you received: 5070
17 Nov 2025 04:06 #338559
by PCW
Replied by PCW on topic First Machine, can't get 6i25 to drive CL57Y/CL86Y
Note that that is the default (as shipped) firmware, not the 5ABOB firmware
Please Log in or Create an account to join the conversation.
Time to create page: 0.084 seconds