PnCConf with RPI 4 and Mesa 7C81

More
5 years 11 months ago #189721 by smogol
Thanks PCW,
I'll give it a try and get back with the results:
BTW: when I run the mesafirmware command, I get the following configuration :
Code:
unable to set bpw32, fallback to bpw8 <-- this is ok, found a post covering it..... :-) Configuration Name: HOSTMOT2
My need is to hook my Chinese CNC. I downloaded the configs from the MESA site. Is there a better configuration to apply?
This is my actual DB25 pinout for my machine (extract out of my working .hal file):
Code:
net estop-out => parport.0.pin-01-out net ystep => parport.0.pin-02-out setp parport.0.pin-02-out-reset 1 net ydir => parport.0.pin-03-out net xstep => parport.0.pin-04-out setp parport.0.pin-04-out-reset 1 setp parport.0.pin-05-out-invert 1 net xdir => parport.0.pin-05-out net zstep => parport.0.pin-06-out setp parport.0.pin-06-out-reset 1 net zdir => parport.0.pin-07-out net astep => parport.0.pin-08-out setp parport.0.pin-08-out-reset 1 net adir => parport.0.pin-09-out net xenable => parport.0.pin-14-out net xenable => parport.0.pin-16-out net xenable => parport.0.pin-17-out net all-limit-home <= parport.0.pin-11-in-not net probe-in <= parport.0.pin-15-in-not

I am aware that I need to read and understand the documentation ;-) but a little help from the community will surely help me to get quickly to a running system and then I can enhance it in a second step.

Regards

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

More
5 years 11 months ago #189726 by PCW
Look like the 7C81 G540 or 5ABOB configs are close
You have X,Y swapped from the normal pins, but if you
assign XYZ stepgens in pncconf:
0 Y
1 X
2 Z
pncconf will create the correct hal connections

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

More
5 years 11 months ago - 5 years 11 months ago #190033 by smogol
I followed the instructions as mentioned in the upper post from PCW, renaming manually the reference to 7C81 and hm2_rspi and that worked well.
I can use the PnCConf to re-edit some gpios and redo the replacements.
My next step is to configure my HB04 to my rasberry pi as I could notice that the configuration has changed slignthly from the older version.

Change the subject ot solved
Last edit: 5 years 11 months ago by smogol.

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

More
2 years 10 months ago - 2 years 10 months ago #288733 by Mehta_123
how to hand edit input output (GPIO) in hal and ini? 
please give me one example.
Thanks!!!!!
Last edit: 2 years 10 months ago by Mehta_123.

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

More
2 years 5 months ago - 2 years 5 months ago #301023 by Marvin_Maverick

how to hand edit input output (GPIO) in hal and ini? 
please give me one example.
Thanks!!!!!
 


I am not sure if I undestand your question correct; but:
The *.hal and *.ini-files are plain text-files. you can edit them using any editor (notepad++ for instance).
I attached an excample for a *.hal- and *.ini-file. These excamples are for a RaspberryPi5 using only the GPIO-Port (useing the "Generic driver for any GPIO supported by gpiod" described here: linuxcnc.org/docs/stable/html/drivers/hal_gpio.html )

I hope this is helpfull.
Last edit: 2 years 5 months ago by Marvin_Maverick.

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

More
2 years 5 months ago #301041 by tommylight
Word of caution, never use Office suits to edit machine files, use only text editors like Marvin mentioned, or GEdit, XED, mousepad, geany, nano, etc

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

Moderators: cmorley
Time to create page: 0.165 seconds
Powered by Kunena Forum