Emcoturn 120 lathe retrofit

More
13 Aug 2016 19:38 #78728 by PCW
Replied by PCW on topic Emcoturn 120 lathe retrofit
You can do this all by hand

(unplug the VFD for safety)

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

More
14 Aug 2016 15:01 - 14 Aug 2016 15:06 #78747 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit
im not getting any signal on the HAL pin. I would like to test the encoder but Im not an EE, the encoder is a BEI H25D-SS-1800-ABZ-7406R-LED-SM16-S. Since its an older one Im having trouble decoding the serial number. from what I have found it is

H25 model
D square flange
SS shaft seal
1800 counts per rev
ABZ a, b and index
7406 (R) Open Collector: Current sink of 40 mA max. Current sourced by
external pull-up resistor. When called out as 7406R, pull-ups are
internal and sized at approximately 100 ohms/volt and current
sink is limited to 30 mA. Output can be pulled up to voltage other
than supply voltage (30 V max) when the 7406 is used without
internal pull-ups. Voltage regulator can be used to allow supply
voltage up to 28 V (called out as a special feature). Supply current
is 100 mA typical, 120 mA with internal pull-ups. The 7406R is
replaced by the 4469 or the 7272 in system upgrades, or with
the 7273 if external pull-ups are used.

LED cant find this
SM16 connector
S special order but dont know what it is

Can I hook up power and ground and probe the A,B and Z outputs?
Last edit: 14 Aug 2016 15:06 by LutzTD.

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

More
14 Aug 2016 15:12 #78751 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit
I have this connected like this


Attachments:

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

More
14 Aug 2016 15:33 #78754 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit
I had it connected completely wrong. does this look correct


Attachments:

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

More
14 Aug 2016 19:52 - 14 Aug 2016 19:53 #78761 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit
I think I am missing these HAL components. any thoughts on the HAL pin id for the 7i76e? This example from the docs here has parallel port pins
# add the encoder to HAL and attach it to threads.
loadrt encoder num_chan=1
addf encoder.update-counters base-thread
addf encoder.capture-position servo-thread

# set the HAL encoder to 100 pulses per revolution.
setp encoder.3.position-scale 100

# set the HAL encoder to non-quadrature simple counting using A only.
setp encoder.3.counter-mode true

# connect the HAL encoder outputs to LinuxCNC.
net spindle-position encoder.3.position => motion.spindle-revs
net spindle-velocity encoder.3.velocity => motion.spindle-speed-in
net spindle-index-enable encoder.3.index-enable <=> motion.spindle-index-enable

# connect the HAL encoder inputs to the real encoder.
net spindle-phase-a encoder.3.phase-A  <= parport.0.pin-10-in
net spindle-phase-b encoder.3.phase-B  <=TBD
net spindle-index encoder.3.phase-Z  <= parport.0.pin-11-in
Last edit: 14 Aug 2016 19:53 by LutzTD.

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

More
14 Aug 2016 19:57 - 14 Aug 2016 19:57 #78763 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit
is it these 3?
9  bit   OUT         FALSE  hm2_7i76e.0.encoder.00.input-a
9  bit   OUT         FALSE  hm2_7i76e.0.encoder.00.input-b
9  bit   OUT          TRUE  hm2_7i76e.0.encoder.00.input-index
Last edit: 14 Aug 2016 19:57 by LutzTD.

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

More
14 Aug 2016 20:02 #78764 by PCW
Replied by PCW on topic Emcoturn 120 lathe retrofit
No, nothing is missing ( you do not need the encoder component, that's only for software encoders )

First, it looks like this is a single ended encoder with index so the 7I76E encoder must first
be jumpered for TTL=single ended mode.

In single ended mode all inverted inputs must be left unconnected (7I76E pins 8,10,14 left open)

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

More
14 Aug 2016 20:15 - 14 Aug 2016 20:27 #78767 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit
I think I understand if you mean pins 8, 11, and 14 (those are the (-))

section from 7i76e manual

ENCODER INPUT MODE
The 7I76Es high speed encoder input can be programmed for differential or single
ended mode operation. W10, W11 and W13 set the encoder input mode. When
W10,W11,and W13 are in the right hand position, the encoder input is mode is differential.
When W10,W11, and W13 are in the left hand position, the encoder input mode is single
ended or "TTL". Note that W10 controls the input mode for the ‘A’ signal, W11 controls the
input mode for the ‘B’ signal and W13 controls the input mode for the index signal.




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

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

More
14 Aug 2016 20:25 #78768 by PCW
Replied by PCW on topic Emcoturn 120 lathe retrofit
Yes sorry 8,11,14
The following user(s) said Thank You: LutzTD

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

More
14 Aug 2016 20:26 #78769 by LutzTD
Replied by LutzTD on topic Emcoturn 120 lathe retrofit

Yes sorry 8,11,14


thanx, you can see above how really clueless I am on this :)

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

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