Is there a bug in PnCConf

More
14 Mar 2016 12:37 - 14 Mar 2016 14:00 #71627 by Clive S
I am struggling trying to get homing_with_min_limit working ( have it working with home only). using 7i76 and Linux version 2.74 and steppers.

There seem to be a problem in setting it up with PnCConf in that if you say set axis X to home and axis Y shared home with min limit and go to the next page where you set the latching etc they are all greyed out but not when home only is checked.

Also looking in the resultant INI file it displays axis X, Y and A (this only happens when changes are made to homing)

I have asked this before. I want to change my ini and hal file to be able to use a shared switch for home and min limit. (it is set up as home only) I don't seem to be able to do it with PnCConf. see post (general config #71546) Thanks

EDIT looking back I have found this #69430 which seem to indicate it is a bug in 2.7.3 that has been fixed but missed 2.7.4 so how can I update to get the fix.
Last edit: 14 Mar 2016 14:00 by Clive S. Reason: added text

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

More
15 Mar 2016 01:00 #71662 by cmorley
Replied by cmorley on topic Is there a bug in PnCConf
You either need to wait for 2.7.5 to be released or use the builtbot procedure to get the most current 2.7.x bug fixes.
buildbot.linuxcnc.org/

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

More
15 Mar 2016 12:03 #71675 by Clive S
Replied by Clive S on topic Is there a bug in PnCConf

You either need to wait for 2.7.5 to be released or use the builtbot procedure to get the most current 2.7.x bug fixes.
buildbot.linuxcnc.org/

Ok I will have to wait as I don't have the expertise to do that.

Would you mind helping me out with the lines of code to put in the hal file to enable me to set up shared homing with min limit on the X axis
I have a 7i76 mesa

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

More
16 Mar 2016 05:27 #71708 by cmorley
Replied by cmorley on topic Is there a bug in PnCConf
In the Hal file you should have a lines like these but with appropriate pin names:

# --- HOME-X ---
net home-x <= hm2_5i24.0.gpio.050.in

# --- MIN-HOME-Y ---
net min-home-y <= hm2_5i24.0.gpio.051.in


anf in the X axis section:

# ---setup home / limit switch signals---

net home-x => axis.0.home-sw-in
net x-neg-limit => axis.0.neg-lim-sw-in
net x-pos-limit => axis.0.pos-lim-sw-in

and the Y section

# ---setup home / limit switch signals---

net min-home-y => axis.1.home-sw-in
net min-home-y => axis.1.neg-lim-sw-in
net y-pos-limit => axis.1.pos-lim-sw-in

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

More
16 Mar 2016 16:07 #71726 by Clive S
Replied by Clive S on topic Is there a bug in PnCConf
OK this is from my HAl file that works with homing but the switch does not trip when activated after homing.

. I want to change it so that I have shared home with min_ limit (one switch)

# external input signals
# --- Mill HOME-X ---
net home-x <= hm2_5i25.0.7i76.0.0.input-00

# --- Mill HOME-Y ---
net home-y <= hm2_5i25.0.7i76.0.0.input-01

# --- Mill HOME-Z ---
net home-z <= hm2_5i25.0.7i76.0.0.input-02.

# --X-setup home / limit switch signals---
net home-x => axis.0.home-sw-in
net x-neg-limit => axis.0.neg-lim-sw-in
net x-pos-limit => axis.0.pos-lim-sw-in

# --Y -setup home / limit switch signals---
net home-y => axis.1.home-sw-in
net y-neg-limit => axis.1.neg-lim-sw-in
net y-pos-limit => axis.1.pos-lim-sw-in

I have tried to put your code in but it errors. The above was setup with PnCConf mesa 5i25 + 7i76 steppers
attached hal and ini file

File Attachment:

File Name: Warco_mill.hal
File Size:10 KB


File Attachment:

File Name: Warco_mill.ini
File Size:4 KB
Attachments:

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

More
17 Mar 2016 02:38 #71761 by cmorley
Replied by cmorley on topic Is there a bug in PnCConf
# external input signals


# --- MIN-HOME-X ---
net min-home-x     <=  hm2_5i25.0.7i76.0.0.input-00

# --- MIN-HOME-Y ---
net min-home-y     <=  hm2_5i25.0.7i76.0.0.input-01

# --- MIN-HOME-Z ---
net min-home-z     <=  hm2_5i25.0.7i76.0.0.input-02
# ---setup home / limit switch signals---

net min-home-x     =>  axis.0.home-sw-in
net min-home-x     =>  axis.0.neg-lim-sw-in
net x-pos-limit     =>  axis.0.pos-lim-sw-in
# ---setup home / limit switch signals---

net min-home-y     =>  axis.1.home-sw-in
net min-home-y     =>  axis.1.neg-lim-sw-in
net y-pos-limit     =>  axis.1.pos-lim-sw-in
# ---setup home / limit switch signals---

net min-home-z     =>  axis.2.home-sw-in
net min-home-z     =>  axis.2.neg-lim-sw-in
net z-pos-limit     =>  axis.2.pos-lim-sw-in

please post any errors.

Chris M

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

More
17 Mar 2016 10:09 #71771 by Clive S
Replied by Clive S on topic Is there a bug in PnCConf
Chris attached is the errors and hal file.

As you can see it shows an error when toggle machine on. so none of the axis will jog. BUT if I make my sensors trigger ie (put some metal on them so that they light up) I can then jog.

before I put your code in they all worked OK but only as home switches they would not work as limits.

I have left the original code in the hal file but commented out so you can see the difference
Thanks for the help. Clive







File Attachment:

File Name: Warco_mill-2.hal
File Size:10 KB
Attachments:

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

More
17 Mar 2016 20:54 #71829 by cmorley
Replied by cmorley on topic Is there a bug in PnCConf
looks like you need to invert the limit switches:
# external input signals


# --- MIN-HOME-X ---
net min-home-x     <=  hm2_5i25.0.7i76.0.0.input-00-not

# --- MIN-HOME-Y ---
net min-home-y     <=  hm2_5i25.0.7i76.0.0.input-01-not

# --- MIN-HOME-Z ---
net min-home-z     <=  hm2_5i25.0.7i76.0.0.input-02-not

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

Moderators: cmorley
Time to create page: 1.000 seconds
Powered by Kunena Forum