- Posts: 64
- Thank you received: 0
7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB
1 year 7 months ago #323515
by Nathan40
Replied by Nathan40 on topic 7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB
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.
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 to join the conversation.
1 year 7 months ago #323525
by PCW
Replied by PCW on topic 7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB
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
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 to join the conversation.
1 year 7 months ago #323531
by Nathan40
Replied by Nathan40 on topic 7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB
Hi
Thanks for your reply. However, please can you share the required line for inputs in the HAL file for connection eg probe.
Thanks for your reply. However, please can you share the required line for inputs in the HAL file for connection eg probe.
Please Log in to join the conversation.
1 year 7 months ago #323534
by PCW
Replied by PCW on topic 7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB
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
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
Please Log in to join the conversation.
1 year 7 months ago #323546
by Nathan40
Replied by Nathan40 on topic 7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB
Thanks for your reply . Just curios if we need to loadrt something in hal before putting the new command.
Please Log in to join the conversation.
1 year 7 months ago #323548
by PCW
Replied by PCW on topic 7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB
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)
(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 to join the conversation.
1 year 7 months ago #323594
by Nathan40
Replied by Nathan40 on topic 7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB
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.
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 to join the conversation.
1 year 7 months ago #323636
by PCW
Replied by PCW on topic 7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB
To invert a GPIO input, you use the inverted pin, for example:
hm2_7i95.0.gpio.054.in_not
hm2_7i95.0.gpio.054.in_not
Please Log in to join the conversation.
1 year 7 months ago #323712
by Nathan40
Replied by Nathan40 on topic 7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB
Thank you PCW for your unconditional support.
Please Log in to join the conversation.
1 year 7 months ago #324574
by Nathan40
Replied by Nathan40 on topic 7i95t pin and firmware files with Stepgens and Inputs 5Axis BoB
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!
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!
Please Log in to join the conversation.
Time to create page: 0.218 seconds
