Need help to wire and config Mesa 7i92TM

More
22 Jun 2023 15:28 #274052 by andypugh
So, the BoB has the DB25 numbers.
And the Mesaflash output links the DB25 numbers to stepgen and GPIO numbers.

(So, for example, stepgen.0.step is on DB25 pin 2. pwmgen.0.out is on DB25 pin 14.)

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

More
22 Jun 2023 16:03 #274053 by CollieBabaX
And why is there that strange numbering in PncConf?

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

More
22 Jun 2023 16:15 #274054 by andypugh
The numbers in Pncconf are the function numbers, eg stepgen.0, pwmgen.0, or for pins where the function is not used, the GPIO number to match the HAL file pin names.
hm2_7i92.0.gpio.016 for example.

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

More
22 Jun 2023 16:26 - 22 Jun 2023 16:26 #274055 by CollieBabaX
In my PC in PncConf the numeration is like 000, 0, 0, 003, 4, 1, 007, ... see the attachments
I don't understand, where do you get the stepgen.0, pwmgen.0, ... numeration?
Attachments:
Last edit: 22 Jun 2023 16:26 by CollieBabaX.

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

More
22 Jun 2023 16:50 #274056 by Aciera

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

More
22 Jun 2023 17:52 #274061 by andypugh
Looking at Screenshot_2023-05-27_15-25-11_2023-06-22.png

The first pin is an unused input, being set up as GPIO, and is GPIO 000, and would appear in HAL as hm2_7i72.0.gpio.0000

The next pin is being set up as a PWM. It is pwm number 0, and would be controlled in HAL by the pins hm2_7i92.0.pwmgen.00.enable, .value etc.

The next pin is a stepgen, number 0, and would be controlled by h2_7i92.0stepgen.0.position (etc)

And then there is gpio.004, then the DIR pin for stepgen.0 (not numbered, I am not sure why), then stepgen.4 step and so on.

But, all you need to do in that screen is decide what you want to use each stepgen and PWM for. Then you work out which pins they are on the BoB from the mesaflash output.

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

More
26 Jun 2023 13:24 - 26 Jun 2023 13:24 #274247 by CollieBabaX
Ok so is the diagram in the attachments right?
And why there is not the enable pin? Don't need it?
Attachments:
Last edit: 26 Jun 2023 13:24 by CollieBabaX.

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

More
29 Jun 2023 14:24 - 29 Jun 2023 14:25 #274452 by CollieBabaX
I tried to change the configurations in PncConf to add limits switch in I/O, but with "mesaflash --addr 10.10.10.10 --device 7i92 --readhmid" it give me the same I/O pin numbers of the last screenshot, how can I add these inputs?
Last edit: 29 Jun 2023 14:25 by CollieBabaX.

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

More
29 Jun 2023 15:11 #274456 by PCW
The readhmid printout lists the firmware pinout
This is not affected by LinuxCNC or pncconf

If you wished to say use DB25 pins 10,11,12 as limit switch inputs
you would chose GPIO pins 13,14,15 in pncconf and assign then to
the desired limit switch inputs.

Before doing this in pncconf, you would need to disable the encoder
by setting the number of encoders to 0

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

More
29 Jun 2023 16:02 - 29 Jun 2023 16:05 #274460 by CollieBabaX
Thank you PCW
So if I understand correctly it should be like in the attached screenshots, right?
I also put the Y tandem axys but I don't have it at the moment, I will add it in the future.
Attachments:
Last edit: 29 Jun 2023 16:05 by CollieBabaX.

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

Moderators: PCWjmelson
Time to create page: 0.083 seconds
Powered by Kunena Forum