both-home-* error

More
08 Feb 2016 16:06 #69769 by acondit
both-home-* error was created by acondit
I am running linuxCNC version 2.7.3.

I am trying to set up a config to use a 7i43 board with pncconf. I tried to set up two home and limit switches (both-home-x) and (both-home-z). However, when I look at the hal file
I get (both-home-y) and (both-home-a).

From Hal file:
# external input signals

# --- BOTH-HOME-Y ---
net both-home-y <= hm2_7i43.0.gpio.026.in

# --- BOTH-HOME-A ---
net both-home-a <= hm2_7i43.0.gpio.027.in

When I try to re-edit the file in pncconf it shows (both-home-x) and (both-home-z). I know I can fix it by hand editing but I don’t know what else may be going wrong that is not so obvious.

I also tried setting up X, Y and Z and got Y, Z, and A. So it seems that there is some sort of indexing problem.
Attachments:

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

More
08 Feb 2016 16:07 #69770 by acondit
Replied by acondit on topic both-home-* error
I think that I found the problem. I believe that in linuxcnc/src/emc/usr_intf/pncconf/private_data.py the following:

home_limits_shared = [ _("All Limits + Home"),_("X Minimum Limit + Home"), _("Y Minimum Limit + Home"), _("Z Minimum Limit + Home"),
_("A Minimum Limit + Home"),_("X Maximum Limit + Home"), _("Y Maximum Limit + Home"), _("Z Maximum Limit + Home"),
_("A Maximum Limit + Home"),_("X Both Limit + Home"), _("Y Both Limit + Home"), _("Z Both Limit + Home"),
_("A Both Limit + Home") ]

should be changed to

home_limits_shared = [ _("X Minimum Limit + Home"), _("Y Minimum Limit + Home"), _("Z Minimum Limit + Home"),
_("A Minimum Limit + Home"),_("X Maximum Limit + Home"), _("Y Maximum Limit + Home"), _("Z Maximum Limit + Home"),
_("A Maximum Limit + Home"),_("X Both Limit + Home"), _("Y Both Limit + Home"), _("Z Both Limit + Home"),
_("A Both Limit + Home”), _("All Limits + Home") ]

I tried setting X minimum + home, and Z minimum + home and got y minimum + home and a minimum + home. The other data structures all have “All Limits” at the end of their respective arrays while “home_limits_shared” has it at the front of the array.

I am not a python programmer so I am not positive that this is the fix.

Long prolog short questions.
Is pncconf running interpreted?
Is the python source available on the standard user install so that I can edit it and test the change or do I need to install the developer source and run make?

Thanks in advance,
Alan

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

More
08 Feb 2016 18:16 - 08 Feb 2016 23:19 #69775 by acondit
Replied by acondit on topic both-home-* error
On more thought I think my proposed fix would just make matters worse. If something is indexing into the array one too far, then moving the first item to the end of the array should make it index in two too far. Back to the drawing board.

I added this info to the pncconf area. I would delete this topic here if I could.
Last edit: 08 Feb 2016 23:19 by acondit.

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

Time to create page: 0.132 seconds
Powered by Kunena Forum