MPG setup on XYYZ

More
14 Jun 2022 00:16 #245093 by Hammerbot
MPG setup on XYYZ was created by Hammerbot
Hi All,

I need help figuring out my MPG.
I have the standard cheap Chinese MPG (see pict) and I have it mostly working.

I am running a Rasp Pi4B with Mesa 7i76e.

My HAL is 100% from PNCCONF with no customization as of yet. 
Axis are set as XYYZ and I think that may be messing wit the PNCCONF setup.

Seems like my attached HAL is close based upon reviews of other similar HAL from the forum.

The following will show as working in HalShow when selected:
    jog-incr-a, 
    jog-incr-b,
     jog-incr-c,
    axis-selected-count    -   this increases and decreases as the wheel is spun
    axis-select-x
    axis-select-y
    axis-select-z
    joint-select-a
    joint-select-b
    joint-select-c
    selected-jog-incr changes to selected value

A lot of the connections are made, but something is just not connected.

What am I missing that will link it all together?

I think line 346 needs to be to joint.3 , but need a second opinion. I don't believe this is the overall issue.

Thanks in advance for the help.

Tim
Attachments:

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

More
14 Jun 2022 02:23 #245094 by bevins
Replied by bevins on topic MPG setup on XYYZ
Here is the code that makes the mpg work. This is on my working machine and I have the same kind of mpg as yours.

Working mpg code for hal file

On this github site the Biesse remap in the config directory is a gantry machine but the X is dual motors. You can compare to this hal file and ini file to get ypurs working.

What is yours not doing?
The following user(s) said Thank You: Hammerbot

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

More
14 Jun 2022 02:24 #245095 by bevins
Replied by bevins on topic MPG setup on XYYZ
Mine is using a 7i77 with analog servo's so dont let that get you side tracked. Just check the basic structure.
The following user(s) said Thank You: Hammerbot

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

More
15 Sep 2022 00:35 #251958 by Hammerbot
Replied by Hammerbot on topic MPG setup on XYYZ
So I have been working on this occasionally and have re-checked everything.
My issue is that I can not get the axis to enable. 
Originally I reported that they did, but I don't believe that was correct.

So all the above is correct except that the signals:
  axis-select-x
  axis-select-y and
  axis select z
and the connected pins:
  axis.x.jog-enable
  axis.y.jog-enable and
  axis.z.jog-enable 
do not enable (via HalShow) when the individual axis are selected on the MPG.

I have been trying to read and understand the differences between what Bob supplied and all the other examples, but I can't sort it out...
Can anyone explain why these would not enable from the HAL originally attached?

Thanks so much, Tim

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

More
27 Sep 2022 12:34 #252854 by andypugh
Replied by andypugh on topic MPG setup on XYYZ
Looking in your HAL I see
net axis-select-x  halui.axis.x.select
net axis-select-z  halui.axis.z.select

But nowhere do I see anything that connects those to an output from the MPG

It looks like the inputs are meant to be here:
# --- JOINT-SELECT-A ---
net joint-select-a     <=  [HMOT](CARD0).7i76.0.0.input-10
# --- JOINT-SELECT-B ---
net joint-select-b     <=  [HMOT](CARD0).7i76.0.0.input-11
# --- JOINT-SELECT-C ---
net joint-select-c     <=  [HMOT](CARD0).7i76.0.0.input-12
# --- JOG-INCR-A ---
net jog-incr-a     <=  [HMOT](CARD0).7i76.0.0.input-13
# --- JOG-INCR-B ---
net jog-incr-b     <=  [HMOT](CARD0).7i76.0.0.input-14
# --- JOG-INCR-C ---
net jog-incr-c     <=  [HMOT](CARD0).7i76.0.0.input-15

But those are using different signal names, so won't pass the values to where you want them.

First note that the "signal" names (the first thing after the net) can be anythign at all, there are no magic values that will automatically connect things up.

But, any "net" commands with exactly the same signal value will cause all pins in the net to take the same value.

So, I think that the fix is for you to change the a, b, c to x, y, z. But be aware that they only need to be the same, you could stick with a, b,c everywhere as long as it was consistent, if you really wanted to confuse future-you.
The following user(s) said Thank You: Hammerbot

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

More
28 Sep 2022 00:29 #252903 by Hammerbot
Replied by Hammerbot on topic MPG setup on XYYZ
Andy,

Thanks so much for the help.
I just needed someone to explain it to me like I am a 40 year old kindergartener...

Changing "joint-select-a" to "axis-select-x" and both the other 2 like that (y, z) made all the difference.
Working now and love it.

My HAL was almost directly out of PNCCONF. This seems like it was missed with the update from Axis to Joint in the prior update.

Thanks again for the help.  Tim 

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

Time to create page: 0.087 seconds
Powered by Kunena Forum