Mesa 7i96s firmware for Index (2.9 release)
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 18511
- Thank you received: 5069
01 Dec 2024 02:30 #315700
by PCW
Replied by PCW on topic Mesa 7i96s firmware for Index (2.9 release)
It connects to the hardware stepgen index pin
probably something like:
hm2_7i96s.0.stepgen.00.index-enable
halcmd show pin hm2 | grep index
(when linuxcnc is running)
should list it
probably something like:
hm2_7i96s.0.stepgen.00.index-enable
halcmd show pin hm2 | grep index
(when linuxcnc is running)
should list it
Please Log in or Create an account to join the conversation.
- vibram
- Offline
- Senior Member
-
Less
More
- Posts: 43
- Thank you received: 1
01 Dec 2024 08:51 #315716
by vibram
Replied by vibram on topic Mesa 7i96s firmware for Index (2.9 release)
Here is the output of the command:
38 bit I/O FALSE hm2_7i96s.0.7i73.0.0.enc0.index-enable
38 bit I/O FALSE hm2_7i96s.0.7i73.0.0.enc1.index-enable
38 bit I/O FALSE hm2_7i96s.0.7i73.0.0.enc2.index-enable
38 bit I/O FALSE hm2_7i96s.0.7i73.0.0.enc3.index-enable
38 bit I/O FALSE hm2_7i96s.0.encoder.00.index-enable <=> spindle-index-enable
38 bit OUT FALSE hm2_7i96s.0.encoder.00.input-index
38 bit I/O FALSE hm2_7i96s.0.stepgen.00.index-enable
38 bit IN FALSE hm2_7i96s.0.stepgen.00.index-invert
38 bit I/O FALSE hm2_7i96s.0.stepgen.01.index-enable
38 bit IN FALSE hm2_7i96s.0.stepgen.01.index-invert
and the end of my readhmid
O Connections for P1 -> 7I96_2
Pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. Pin Dir
P1-01/DB25-01 34 IOPort StepGen 0 Index (In)
P1-02/DB25-14 35 IOPort StepGen 1 Index (In)
P1-03/DB25-02 36 IOPort StepGen 2 Index (In)
P1-04/DB25-15 37 IOPort StepGen 3 Index (In)
P1-05/DB25-03 38 IOPort StepGen 4 Index (In)
I connected normal input on IO 34 qnd 35, it works fine. But how should I tell the system the stepgen index for axis X is on the 36 and for the axis z on the 37 ?
38 bit I/O FALSE hm2_7i96s.0.7i73.0.0.enc0.index-enable
38 bit I/O FALSE hm2_7i96s.0.7i73.0.0.enc1.index-enable
38 bit I/O FALSE hm2_7i96s.0.7i73.0.0.enc2.index-enable
38 bit I/O FALSE hm2_7i96s.0.7i73.0.0.enc3.index-enable
38 bit I/O FALSE hm2_7i96s.0.encoder.00.index-enable <=> spindle-index-enable
38 bit OUT FALSE hm2_7i96s.0.encoder.00.input-index
38 bit I/O FALSE hm2_7i96s.0.stepgen.00.index-enable
38 bit IN FALSE hm2_7i96s.0.stepgen.00.index-invert
38 bit I/O FALSE hm2_7i96s.0.stepgen.01.index-enable
38 bit IN FALSE hm2_7i96s.0.stepgen.01.index-invert
and the end of my readhmid
O Connections for P1 -> 7I96_2
Pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. Pin Dir
P1-01/DB25-01 34 IOPort StepGen 0 Index (In)
P1-02/DB25-14 35 IOPort StepGen 1 Index (In)
P1-03/DB25-02 36 IOPort StepGen 2 Index (In)
P1-04/DB25-15 37 IOPort StepGen 3 Index (In)
P1-05/DB25-03 38 IOPort StepGen 4 Index (In)
I connected normal input on IO 34 qnd 35, it works fine. But how should I tell the system the stepgen index for axis X is on the 36 and for the axis z on the 37 ?
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 18511
- Thank you received: 5069
01 Dec 2024 14:43 - 01 Dec 2024 16:57 #315734
by PCW
Replied by PCW on topic Mesa 7i96s firmware for Index (2.9 release)
I connected normal input on IO 34 qnd 35, it works fine. But how should I tell the system the stepgen index for axis X is on the 36 and for the axis z on the 37 ?
You cannot, the index mapping is fixed by the firmware. That is, GPIO 34 is always the index for stepgen 00,
GPIO 35 is the index for stepgen 01 etc. You can, however map any stepgen to any axis.
You cannot, the index mapping is fixed by the firmware. That is, GPIO 34 is always the index for stepgen 00,
GPIO 35 is the index for stepgen 01 etc. You can, however map any stepgen to any axis.
Last edit: 01 Dec 2024 16:57 by PCW.
Please Log in or Create an account to join the conversation.
- rickjmain
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
14 Apr 2025 21:41 #326319
by rickjmain
Replied by rickjmain on topic Mesa 7i96s firmware for Index (2.9 release)
Hi PCW, I'm still fairly early in my latest build, just testing things out. I've flashed over the firmware, and it shows the Index function on GPIO 34-38. I've also made an adapter cable with 220 ohm resistors. I can see the GPIO pins change in halshow when i connect them to ground but the hm2_7i96s.0.stepgen.xx.index-enable pin doesn't change. Should I be linking like so:
net x-index-enable <= hm2_7i96s.0.gpio.034.in
net x-index-enable => joint.0.index-enable
or like this:
net x-index-enable <= hm2_7i96s.0.stepgen.00.index-enable
net x-index-enable => joint.0.index-enable
Thanks for your help on this!
net x-index-enable <= hm2_7i96s.0.gpio.034.in
net x-index-enable => joint.0.index-enable
or like this:
net x-index-enable <= hm2_7i96s.0.stepgen.00.index-enable
net x-index-enable => joint.0.index-enable
Thanks for your help on this!
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 18511
- Thank you received: 5069
14 Apr 2025 23:34 #326325
by PCW
Replied by PCW on topic Mesa 7i96s firmware for Index (2.9 release)
net x-index-enable <= hm2_7i96s.0.stepgen.00.index-enable
net x-index-enable => joint.0.index-enable
Would be correct.
To test: (with linuxcnc running and watching x-index-enable with halshow)
halcmd -kf
halcmd: sets x-index-enable
(this should set x-index-enable true)
Then toggle the index input
(that should set x-index-enable false)
net x-index-enable => joint.0.index-enable
Would be correct.
To test: (with linuxcnc running and watching x-index-enable with halshow)
halcmd -kf
halcmd: sets x-index-enable
(this should set x-index-enable true)
Then toggle the index input
(that should set x-index-enable false)
The following user(s) said Thank You: rickjmain
Please Log in or Create an account to join the conversation.
- rickjmain
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
14 Apr 2025 23:53 #326326
by rickjmain
Replied by rickjmain on topic Mesa 7i96s firmware for Index (2.9 release)
That worked perfectly, thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 0.122 seconds