Index pulse home

More
27 Jun 2021 20:10 #213048 by Agapemachinist
OK so I’ve searched  for a topic But didn’t find anything.
my set up is a two axis lathe running a 5I25 with 7I76. 
Connected to DMM servos Using Position command
my question is I want to be able to use the index pulse given by the servo driver as a home switch. However since I am not using encoders into LinuxCNC  I have not found a way to get Linux to recognize the Index pulse since I have no encoder tied to the axis.. 
DMM Drivers have the ability to output a open collector index Pulse that is completely isolated. 
I want  LinuxCNC to Home to the switch and then find the pulse just like it normally would with an encoder

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

More
28 Jun 2021 07:51 #213101 by andypugh
Replied by andypugh on topic Index pulse home
This might take some experimentation, but it might be possible to configure for homing towards the switch then latching away from it, then use the  flipflop  HAL component with the switch connected to "set" and the "reset" connected to the pulse (and pass the output to the home-sw-in HAL pin)

But you need to be very sure that the index pulse lasts long enough to be reliably detected by HAL. Are you running a base thread? 

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

More
28 Jun 2021 08:49 #213110 by Agapemachinist
Replied by Agapemachinist on topic Index pulse home
Yes I was very concerned about the index pulse not being long enough to be detected on a normal input of the 7I76. I need to throw my Oscilloscope on it and measure it my hunch is it’s a standard index pluse.
I have one other option to achieve accurate homing on this machine. The DMM servos have the ability to return to absolute zero upon a command to a pin on the drives however I could never figure a way to actually work that into Linux. Because there can be no motion command a single pin would be activated and the drive themselves will home

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

More
28 Jun 2021 09:38 #213113 by andypugh
Replied by andypugh on topic Index pulse home
You might be able to lengthen the pulse in hardware (555 timer, for example) or in the servo config.
But first, you need to see how long it is, and whether you can make it longer with a slower LATCH_VELOCITY
7i76 inputs are only serviced at 1kHz, so you need a 2mS pulse to be sure.

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

More
28 Jun 2021 20:43 #213171 by Agapemachinist
Replied by Agapemachinist on topic Index pulse home
So I tried my oscilloscope when I was home unfortunately the battery was dead so I pulled up HalScope.. and did not see the pulse. so my guess is it to fast for the input to see..
this leads to the second question is there a why to use the go home lead for the servo drive with linuxcnc

I not even sure how that would work because linuxcnc what's do to the motion and in this case the drive would be moving the servos to ABS-0

any thoughts?

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

More
28 Jun 2021 21:28 #213174 by PCW
Replied by PCW on topic Index pulse home
One possibility is to use firmware that implements index on the stepgen.
You would need to access the other 5I25 connector for this (unless the encoder
inputs on the 7I76 are free) and LinuxCNC master.

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

More
01 Jul 2021 10:31 #213425 by Agapemachinist
Replied by Agapemachinist on topic Index pulse home
All of the 7I76 encoders inputs are used. To expand on that topic. What if I got 7I85 and use that for the pluse input? Would it possible to just use the z input with out doing closed loop in LinuxCNC

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

More
01 Jul 2021 13:48 #213434 by PCW
Replied by PCW on topic Index pulse home
Yes, you could use a 7I85 or 7I75 or a inexpensive parallel port BOB
Bare 5I25 inputs can also be used but you have to be careful and at the minimum
add a 220 Ohm series resistor to prevent overcurrent from negative inputs
damaging the ESD protection diodes on the 5I25 I/O pins

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

More
02 Jul 2021 01:17 #213468 by Agapemachinist
Replied by Agapemachinist on topic Index pulse home
Ok so I was checking some more things on my drives and wiring and the type of output is not compatible. If I interpret the schematic correctly it’s looking for sourcing host side. I will put up the drawing. I think that the 7I85 is my best bet.  The Drive outputs 2  independent Z index one a individual open collector and the other a set of A B Z Emulated encoder output. 
I will need some guidance on how to just pick the index pulse from the encoder input and use it as a homing index. 

 
Attachments:

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

Time to create page: 0.180 seconds
Powered by Kunena Forum