Yet another homing/limit question

More
10 Aug 2015 07:55 - 10 Aug 2015 08:01 #61256 by brianbonedoc

File Attachment:

File Name: tormach_11....ini.txt
File Size:7 KB

Anyone have any ideas -
Machine is 3 axis, limit switches on each end of the axis, no home switches.

I can get the machine to home (go to machine limit) and back off and zero one axis - but only if I remark out "#" the other corresponding debounce.0.x pin.
For example leaving debounce.0.0.in will allow the X axis to home properly - but not the others. If I leave debounce.0.1 and remark out the others, the Y axis will work properly.
But If I leave all the debounce.0.x's - then the machine will hit the limit switch and error out without even trying to back off the switches.

Heres a snippet of code (this will allow X to work/home properly)

net all-limit <= hm2_5i25.0.gpio.014.in => debounce.0.0.in #debounce.0.1.in debounce.0.2.in

# route through AND gates to enable switches via UI
net and-home-x debounce.0.0.out enable-limit-x.in1
net and-home-y debounce.0.1.out enable-limit-y.in1
net and-home-z debounce.0.2.out enable-limit-z.in1


# post gui connects this to the UI
net limit-switch-enable enable-limit-x.in0 enable-limit-y.in0 enable-limit-z.in0

# connect to axes

net home-limit-x enable-limit-x.out axis.0.home-sw-in axis.0.neg-lim-sw-in axis.0.pos-lim-sw-in
net home-limit-y enable-limit-y.out axis.1.home-sw-in axis.1.neg-lim-sw-in axis.1.pos-lim-sw-in
net home-limit-z enable-limit-z.out axis.2.home-sw-in axis.2.neg-lim-sw-in axis.2.pos-lim-sw-in




File Attachment:

File Name: novakon.hal.txt
File Size:25 KB


File Attachment:

File Name: postgui_to....hal.txt
File Size:6 KB


Attachment not found

Attachments:
Last edit: 10 Aug 2015 08:01 by brianbonedoc.

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

More
10 Aug 2015 08:02 #61257 by brianbonedoc

File Attachment:

File Name: tormach_11...8-09.txt
File Size:7 KB
Attachments:

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

More
10 Aug 2015 10:25 - 13 Aug 2015 02:59 #61259 by brianbonedoc
OK, so like a blind squirrel finding a nut, I managed to get the homing to work.

I changed this:

net home-limit-x-raw <= hm2_5i25.0.gpio.014.in => debounce.0.0.in
net home-limit-y-raw <= hm2_5i25.0.gpio.014.in => debounce.0.1.in
net home-limit-z-raw <= hm2_5i25.0.gpio.014.in => debounce.0.2.in

net home-limit-x enable-limit-x.out axis.0.home-sw-in axis.0.neg-lim-sw-in axis.0.pos-lim-sw-in
net home-limit-y enable-limit-y.out axis.1.home-sw-in axis.1.neg-lim-sw-in axis.1.pos-lim-sw-in
net home-limit-z enable-limit-z.out axis.2.home-sw-in axis.2.neg-lim-sw-in axis.2.pos-lim-sw-in

To this:

net all-limit <= hm2_5i25.0.gpio.014.in => debounce.0.0.in debounce.0.1.in debounce.0.2.in

net home-limit-x enable-limit-x.out axis.0.home-sw-in
net home-limit-y enable-limit-y.out axis.1.home-sw-in
net home-limit-z enable-limit-z.out axis.2.home-sw-in

I am not sure why deleting the pins axis.x.neg-lim-sw and pos worked but it did.

Heres proof:

Last edit: 13 Aug 2015 02:59 by brianbonedoc.

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

Time to create page: 0.127 seconds
Powered by Kunena Forum