Emcoturn 120 lathe retrofit

More
10 years 2 months ago #78782 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit
thats great thanx. Its only for threading I guess so it wont be trying to read it at high rpms anyway. For the home switches the emco has 2 24vdc hall sensors. I assume I just power them and then put the hall sensor output as an input? When I set up the linuxcnc I think I put in for home switches, what would the entry in the HAL file look like and what pins would it assign? Or would I need to chose the pins to assign?

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

More
10 years 2 months ago #78783 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit
here are the lines added by the setup tool. This will be OK for a start if I can figure out the physical pin from the HAL pin. But what I would like to do is set up an output to power the hall sensor when the home search begins, an input to read the result (should be below I think), then turn off the hall sensor the rest of the time.
Code:
# --- HOME-X --- net home-x <= hm2_7i76e.0.7i76.0.0.input-00 # --- HOME-Z --- net home-z <= hm2_7i76e.0.7i76.0.0.input-01 ---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 # ---setup home / limit switch signals--- net home-z => axis.2.home-sw-in net z-neg-limit => axis.2.neg-lim-sw-in net z-pos-limit => axis.2.pos-lim-sw-in ini HOME_OFFSET = 0.000000 HOME_SEARCH_VEL = 0.050000 HOME_LATCH_VEL = 0.016667 HOME_FINAL_VEL = 0.000000 HOME_USE_INDEX = NO HOME_SEQUENCE = 1

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

More
10 years 2 months ago #78784 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit
I assume its these pins? Sorry I know this is really easy for programmers but its all completely new to me.

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

More
10 years 2 months ago #78801 by PCW
Replied by PCW on topic Emcoturn 120 lathe retrofit
Yes, hm2_7i76e.0.7i76.0.0.input-00 is the hal pin that corresponds to TB6 pin 1

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

More
10 years 2 months ago #78867 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit
would it make sense to create a custom m-code to turn on and off the home switches then call these as part of the homing routine?

M110
#!/bin/bash
# file to turn on home switches at output 1
halcmd setp hm2_7i76e.0.7i76.0.0.output-00 True
exit 0

M111
#!/bin/bash
# file to turn off home switches at output 1
halcmd setp hm2_7i76e.0.7i76.0.0.output-00 False
exit 0

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

More
10 years 2 months ago #78869 by PCW
Replied by PCW on topic Emcoturn 120 lathe retrofit
Why would you disable the home switches?

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

Time to create page: 0.495 seconds
Powered by Kunena Forum