Mesa 7i96 Ethernet board

More
7 years 6 months ago #130792 by hottabich
Replied by hottabich on topic Mesa 7i96 Ethernet board
Hello! Please help me in the Gemoccapy Interface to connect gmoccapy. spindle_feedback_bar and gmoccapy.spindle_at_speed_led. How to register in postgui.hal.

Please Log in to join the conversation.

More
7 years 6 months ago #130890 by pl7i92
Replied by pl7i92 on topic Mesa 7i96 Ethernet board
there shoudt already be a NET Spindle-at speed
look into the HAL of the mashine

then in postgui simple use this net
net spindle-at-speed gmoccapy.spindle_at_speed_led

if not you can use the pin of the spindle
net led spindle.0.at-speed gmoccapy.spindle_at_speed_led

you can use HAL SHOW to see if you got thise pins alredy connect so you dont run into error

Please Log in to join the conversation.

More
7 years 6 months ago #130902 by hottabich
Replied by hottabich on topic Mesa 7i96 Ethernet board
I write "net spindle-vel-cmd => gmoccapy.spindle_feedback_bar" in postgui.hal - and get error "Pin gmoccapy.spindle_feedback_bar doesn't exists". When the Halshow command run, everything works. With gmoccapy.spindle_at_speed_led is similar. How I should register that command? I do not understand how it can work with halcmd, but doesn't work when I put same command in postgui.hal.

Attachment not found


Attachment not found

Please Log in to join the conversation.

More
7 years 6 months ago #131285 by andypugh
Replied by andypugh on topic Mesa 7i96 Ethernet board
Is the postgui.hal file called as a POSTGUI file in the INI, or as an ordinary one?

Please Log in to join the conversation.

More
7 years 6 months ago #131322 by hottabich
Replied by hottabich on topic Mesa 7i96 Ethernet board
That's all I have.

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
7 years 6 months ago #131343 by andypugh
Replied by andypugh on topic Mesa 7i96 Ethernet board
You have
Code:
[HAL] HALFILE = linux_mesa7i96.hal HALFILE = io.hal HALFILE = custom.hal HALFILE = postgui.hal HALUI = halui

You need
Code:
[HAL] HALFILE = linux_mesa7i96.hal HALFILE = io.hal HALFILE = custom.hal POSTGUI_HALFILE = postgui.hal HALUI = halui

linuxcnc.org/docs/2.7/html/config/ini-config.html#_hal_section

Please Log in to join the conversation.

More
7 years 6 months ago #131376 by hottabich
Replied by hottabich on topic Mesa 7i96 Ethernet board
Thank you so much! I am 66 years old and without knowledge of English was lost in the beaten information. Linux newbie. Thanks again to you and the whole community for your not easy work!

Please Log in to join the conversation.

More
6 years 11 months ago #150705 by qwerasdferty
so after years of fighting with computers and parallel ports I have decided to get myself a Mesa 7i96.

I have setup a Raspberry pi 4 with debian 10 and linuxcnc 2.8, but the 7i96 config tool doesn't seem to run under debian 10 I think based on one of John's message in the 7i96 configuration tool thread. I followed John's instructions for installing it but I can't get it to work.

So I have started down the road of creating my own hal and ini files from the 7i90 examples. I seem to have the three stepper motors config working but now I need to get my spindle going.

I'm not quite sure how to port my old spindle configuration over to the new hal and ini format.

I am using a frequency to isolated analog output board to control my spindle controller. In my old config I used a stepgen to control the frequency which would in turn drive and relate to spindle RPM.

I'm not really sure in the new ini and hal configs how to port this over to the new format and to work with the 7i96.

I have a ctrl_type set to velocity.......at the end and p for position control.

how do I define my spindle in the ini and in the hal for this velocity control.......yet using the stepgen for frequency generation?

below is part of my old hal file
Code:
loadrt stepgen step_type=0,0,0,0 ctrl_type=p,p,p,v
Code:
#********************************************************** # Spindle Control # Use a scale module for offset and scaling of the stepgen # Offset and scale are determined by first calculating and testing # loadrt scale count=1 setp scale.0.in 0 setp scale.0.gain 1.5 setp scale.0.offset 0 addf scale.0 servo-thread # Connect spindle speed to scaler # net spindle-cmd spindle.0.speed-out => scale.0.in # # Connect scaler output to stepgen velocity # net spindle-freq <= scale.0.out => stepgen.3.velocity-cmd # # # Initialise the stepgen for the spindle # setp stepgen.3.position-scale 1 setp stepgen.3.maxvel 2500 setp stepgen.3.steplen 1 setp stepgen.3.stepspace 0 setp stepgen.3.dirhold 20000 setp stepgen.3.dirsetup 20000 setp stepgen.3.maxaccel 400 # # Enable # #setp parport.0.pin-17-out-invert 1 #net spindle-enable <= spindle.0.on => stepgen.3.enable parport.0.pin-17-out

Please Log in to join the conversation.

More
6 years 11 months ago #151152 by andypugh
Replied by andypugh on topic Mesa 7i96 Ethernet board
Can you give us a pin list for your 7i96?

(just start linuxcnc then open a terminal and type "halcmd show pin *7i96*" , then paste the output here (preferably in code tags)

Things should look pretty much the same as your current setup, except you set the spindle stepgen to velocity mode with a parameter:

linuxcnc.org/docs/2.8/html/man/man9/hostmot2.9.html#stepgen

Please Log in to join the conversation.

More
5 years 3 months ago #215962 by xenon-alien
Hello!
Can anyone share a hole folder with a 3 axis configuration for a LCNC 2.7.15 and MESA 7i96? (Debian 9)
I will try later the 2.8 version. (I'm new in LCNC and there are a lot of changes)

Please Log in to join the conversation.

Time to create page: 0.142 seconds
Powered by Kunena Forum