7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB

More
08 Mar 2025 12:44 #323515 by Nathan40
Hi.

How do we add the inputs for the 5axis BOB pins in the hal files? Please share the lines that needed to be added for inputs oF BOB in the hal files.

Please Log in or Create an account to join the conversation.

More
08 Mar 2025 15:01 #323525 by PCW
First you look at the pinout of the firmware:

mesaflash --device 7i95t --addr 10.10.10.10 --readhmid

And then check which GPIO connect to which DB25 pin

Then in the configuration utility or hal file you connect
the selected GPIO pin (or inverted GPIO pin) to the linuxCNC
function pin you need

The expansion pinout on a 7I95/7I95T looks like this (from mesaflash --readhmid)

PIN                             GPIO
P1-01/DB25-01          41   IOPort       None           
P1-02/DB25-14          42   IOPort       None           
P1-03/DB25-02          43   IOPort       None           
P1-04/DB25-15          44   IOPort       None           
P1-05/DB25-03          45   IOPort       None           
P1-06/DB25-16          46   IOPort       None           
P1-07/DB25-04          47   IOPort       None           
P1-08/DB25-17          48   IOPort       None           
P1-09/DB25-05          49   IOPort       None           
P1-11/DB25-06          50   IOPort       None           
P1-13/DB25-07          51   IOPort       None           
P1-15/DB25-08          52   IOPort       None           
P1-17/DB25-09          53   IOPort       None           
P1-19/DB25-10          54   IOPort       None           
P1-21/DB25-11          55   IOPort       None           
P1-23/DB25-12          56   IOPort       None           
P1-25/DB25-13          57   IOPort       None     
 

Please Log in or Create an account to join the conversation.

More
08 Mar 2025 16:32 - 08 Mar 2025 16:34 #323531 by Nathan40
Hi 

Thanks for your reply. However, please can you share the required line for inputs in the HAL file for connection eg probe.
Last edit: 08 Mar 2025 16:34 by Nathan40.

Please Log in or Create an account to join the conversation.

More
08 Mar 2025 17:52 - 08 Mar 2025 17:53 #323534 by PCW
It depends on how you created your hal initial file, as the signal names may be different,
so a suggestion may not work. Best to create the connection with the configuration program
or read through the hal file to see if there is already a signal used for the desired connection.

If I made a new signal (probe) it would be something like:

net probe motion.probe-input  <= hm2_7i95.0.gpio.054.in
Last edit: 08 Mar 2025 17:53 by PCW.

Please Log in or Create an account to join the conversation.

More
08 Mar 2025 23:48 #323546 by Nathan40
Thanks for your reply . Just curios if we need to loadrt something in hal before putting the new command.

Please Log in or Create an account to join the conversation.

More
09 Mar 2025 00:10 #323548 by PCW
No., unless you need a new component to provide the pins.
(which is not the case here)

If you are learning, I would definitely poke around a bit with halshow
(in axis it's: Machine --> Show Hal Configuration)

 

Please Log in or Create an account to join the conversation.

More
10 Mar 2025 07:03 #323594 by Nathan40
Hi

thanks for your response. The input pin if the 5A BOB has to be inverted. It is giving an error that pin cannot be inverted. Please help.

 

Please Log in or Create an account to join the conversation.

More
10 Mar 2025 22:02 #323636 by PCW
To invert a GPIO input, you use the inverted pin, for example:

hm2_7i95.0.gpio.054.in_not
The following user(s) said Thank You: Nathan40

Please Log in or Create an account to join the conversation.

More
11 Mar 2025 22:51 #323712 by Nathan40
Thank you PCW for your unconditional support.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
22 Mar 2025 17:39 - 22 Mar 2025 18:37 #324574 by Nathan40
Hi

Attaching the hal file I used with parallel port.
Please guide how I can connect the  spindle and encoder on the 5ABOB with 7i95t board. Upon checking pin file I can see PWM on pin ! and pin 4 (Step) and pin 5 (Direction)  and inputs on 10 and 12 pins for 5ABoB for the 7i95t mesa board, 

addf pwmgen.update servo-thread

addf abs.0 servo-thread
addf scale.0 servo-thread
addf lowpass.0 servo-thread
addf near.0 servo-thread

net spindle-cmd-rpm => pwmgen.0.value
net spindle-on <= spindle.0.on => pwmgen.0.enable
net spindle-pwm <= pwmgen.0.pwm
setp pwmgen.0.pwm-freq 100.0
setp pwmgen.0.scale 238
setp pwmgen.0.offset 0.01
setp pwmgen.0.dither-pwm true
net spindle-cmd-rpm     <= spindle.0.speed-out
net spindle-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-cmd-rps     <= spindle.0.speed-out-rps
net spindle-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-at-speed    => spindle.0.at-speed
net spindle-cw <= spindle.0.forward
net spindle-ccw <= spindle.0.reverse

setp encoder.0.position-scale 1000
setp encoder.0.counter-mode 1
net spindle-position encoder.0.position => spindle.0.revs
net spindle-velocity-feedback-rps encoder.0.velocity => spindle.0.speed-in
net spindle-index-enable encoder.0.index-enable <=> spindle.0.index-enable
net spindle-phase-a encoder.0.phase-A
net spindle-phase-b encoder.0.phase-B
net spindle-index encoder.0.phase-Z

net spindle-cmd => near.0.in1
net spindle-velocity => near.0.in2
net spindle-at-speed spindle.0.at-speed <= near.0.out
setp near.0.scale 1.01



net spindle-cw      => parport.0.pin-05-out
net spindle-ccw     => parport.0.pin-04-out
net spindle-pwm     => parport.0.pin-01-out

net spindle-phase-a <= parport.0.pin-10-in
net spindle-index   <= parport.0.pin-12-in

Please help!
Attachments:
Last edit: 22 Mar 2025 18:37 by Nathan40.

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.096 seconds
Powered by Kunena Forum