7i92TM P1 Pin config - switches not recognized

More
27 Mar 2023 13:49 #267603 by petlegpete
Hello,
I am replacing the parport setup with a 7i92TM retaining my G540 (gantry plasma table). I use a connector board to connect home & limit and THC  to P1 as shown in the attached picture. 
The switches are not recongnized so I started to wonder if the pin 1 on the connector board matches pin 1 on P1. Can anybody let me know about the P1 layout? I have not managed to find it anywhere in the manual. I assumes that both connectors follow a standard since they only fit in one direction. 
The machine moves when I disable the switches in the hal file. At least I got that far...:-) 

Thanks in advance, 
Peter 
 
Attachments:

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

More
27 Mar 2023 14:33 #267606 by tommylight
Upload hal, ini, and the result of mesaflash readhmid, so we can have a look.

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

More
27 Mar 2023 15:25 #267610 by petlegpete
Thanks for looking into this. 

Maybe some more info.

I used the gantry on parport with two motors on Y-Axis but one inversed. Worked fine with one home&limit switch but I see the advantage of having two. Y2 switch is already added in the hal but I deactivate it for testing. 

The charge pump setting is copied from one of your hal files but it does not work for me. I deactivated it on the G540 to get going. 

The THC is a Proma 150 for the moment. I have it so if I could get it to work would be great. 

Files attached. 

Thanks a lot. 
Attachments:

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

More
27 Mar 2023 15:32 #267611 by PCW
P1 pinout is standard for Headers
Its likely you have enabled some output functions on P1

Make sure the driver config line in the hal or ini file only enables
the stepgens/pwmgens that you are using, as most firmware has
these functions available on P1 in addition to P2.

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

More
28 Mar 2023 06:12 - 28 Mar 2023 06:16 #267667 by petlegpete
That get's me thinking. 

thanks
Attachments:
Last edit: 28 Mar 2023 06:16 by petlegpete.

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

More
28 Mar 2023 06:30 - 28 Mar 2023 06:32 #267668 by petlegpete
Is my understanding correct that the i/os flagged OUT can only be used as output and the ones with IN are inputs. What about the ones which have no indication? (Sec. func = NONE)? 
Can they be either or depending on what I make them in the pncconf? 
So more inputs on P1 would require a custom flash. Is that even possible to have different pin configs for P1 and P2? 

Thanks again for your help. 

 
Last edit: 28 Mar 2023 06:32 by petlegpete.

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

More
28 Mar 2023 12:19 #267692 by tommylight
Mesa, in general, has stepgens, pwmgens, encoders, IO.
Even if the firmware has for example stepgen on pins 2 and 3, if that stepgen is not loaded in Hal loadrt line, those same pins can be used as IO,
Not sure about NONE.
And yes, there are firwares with different pinouts on P1 and P2, have a look on the support files, there are sime files with PIN extension, those list pins for included firwares.

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

More
28 Mar 2023 12:47 #267695 by PCW
Pins marked "none" can only be used as GPIO
("None" refers to the secondary function)

All GPIO pins start-up as inputs and must be specifically set
for output mode to use these pins as outputs

Output pins (PWM,Stepgen etc) that are not enabled
(via the num_stepgens, num_pwmgens etc configuration tokens)
revert to GPIO so can be used as GP inputs and outputs

Enabled Input pins (like encoder pins) can be used as GP inputs
They can also be used as GP outputs if the secondary function is disabled

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

More
29 Mar 2023 05:27 #267773 by petlegpete
Thanks a lot gents. That helps a lot. Would be great if MESA would make it that clear in their manuals. 

I am afraid though that this is not the last time I need your help. 

Regards

 
The following user(s) said Thank You: tommylight

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

Time to create page: 0.096 seconds
Powered by Kunena Forum