Emcoturn 120 lathe retrofit

More
14 Aug 2016 20:31 - 14 Aug 2016 20:34 #78770 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit
does the encoder 0V go to pin 9 like this?

Attachments:
Last edit: 14 Aug 2016 20:34 by LutzTD.

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

More
14 Aug 2016 20:35 #78771 by PCW
Replied by PCW on topic Emcoturn 120 lathe retrofit
Yes, that looks right

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

More
14 Aug 2016 21:11 - 14 Aug 2016 21:12 #78773 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit
looks like its all working now. I can see all three channels in the HAL oscilloscope. Im worried 1800 pulses may be too fast, but Ill address that later. Next is the axis home switches.
Attachments:
Last edit: 14 Aug 2016 21:12 by LutzTD.

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

More
14 Aug 2016 22:09 - 14 Aug 2016 22:12 #78778 by PCW
Replied by PCW on topic Emcoturn 120 lathe retrofit
1800 counts per turn should be fine, the 7I76e encoder counter can count faster than any standard encoder
(up to ~25 MHz). It may be that the encoder would need lower value pull-up resistors than the 7I76e's built in 2K resistors
if the count rate is very high but I don't think that would be the case with a lathe spindle.
Last edit: 14 Aug 2016 22:12 by PCW.

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

More
15 Aug 2016 00:56 #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
15 Aug 2016 02:15 #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.
# --- 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
15 Aug 2016 02:23 #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.

Attachments:

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

More
15 Aug 2016 14:19 #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
16 Aug 2016 15:15 #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
16 Aug 2016 15:21 #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.

Moderators: cncbasher
Time to create page: 0.472 seconds
Powered by Kunena Forum