Reassign Breakout Board pins in PathPilot?

More
13 May 2024 23:13 #300539 by Whitebarn
How do I change the input and output pins in PathPilot? 
- I'm using the PCNC 440 setup with 7i92 Mesa card.
- I bought a driver board that doesn't match the 440's pin-out.

Not my first PathPilot build, I've installed it on 2 machines using standard BOB's. They run quite well. 

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

More
13 May 2024 23:54 #300542 by PCW
If you can prevent PathPilot from re-writing the firmware
you could use firmware with the correct pinout for your BOB

Note that the GPIO pins would not change with different
firmware, but things like the step/dir, encoder or PWM pins
can be moved anywhere.
The following user(s) said Thank You: Whitebarn

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

More
14 May 2024 04:18 #300549 by Whitebarn
Meaning edit in the Mesa firmware?
It looks like I can edit it on the 440 HAL file. I just don't understand Linux terms and commands well enough to know how to reassign io db25 pins.
Any advice to help me figure out how?

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

More
14 May 2024 05:35 #300550 by blazini36
PCW will write the firmware for you and post it here. It doesn't have anything to do with your knowledge of linux.

You have to tell him what pinout you need. Since you mentioned DB25 I assume you have a 7i92TM. Look at the manual and find the IO number for the pins you want to do what, make a list and post it here.

Pins are GPIO by default so nothing changes with those, you assign them as input/output in HAL. Encoders, pwmgens, stepgens are modules, a stepgen has 2 pins for example, so list what pins of the connector you need as step and direction.
The following user(s) said Thank You: Whitebarn

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

More
21 May 2024 18:33 #301099 by Whitebarn
Thanks! So if I'm understanding you right, I can swap step and dir pins in HAL, without firmware changes?
Or all changes require firmware changes to match?

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

More
21 May 2024 18:35 #301100 by PCW
What actual breakout board do you have?
There is likely existing firmware that has the correct pinout

 
The following user(s) said Thank You: Whitebarn

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

More
21 May 2024 18:56 #301102 by blazini36

Thanks! So if I'm understanding you right, I can swap step and dir pins in HAL, without firmware changes?
Or all changes require firmware changes to match?
 

No, the function of the pin is firmware, changing the purpose of the pin is done in firmware. As PCW mentioned there's a bunch of pre-made firmwares that you can usually download by going to the Mesa store and clicking "support software" for the card.

It'd be nice if there was some easier way to navigate the files other than the filenames.

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

More
21 May 2024 18:59 #301103 by Whitebarn
I have 3 Chinese 3040 routers, I don't have the board numbers. And I have a couple lathes that I'll be starting from scratch.
I posted my lathe questions before, and got no reply, so I put them on hold.
forum.linuxcnc.org/pathpilot/49554-nonto...oor-and-limit-inputs

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

More
21 May 2024 19:05 #301106 by Whitebarn
I can switch to a normal board and drives on the routers, not a big deal.

But, my biggest lathe problem is that freq2pin is assigned to a pin that is an output on bobs like cnc4pc C10

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

More
21 May 2024 19:14 #301108 by Whitebarn
Also I really appreciate your help, and the work you do!

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

Moderators: cncbasher
Time to create page: 0.170 seconds
Powered by Kunena Forum