DRO usage

More
05 Oct 2012 09:51 #24969 by bigfefi
DRO usage was created by bigfefi
HI guys,
I have a little old manual bench mill.
I'd like to retrofit to cnc, but first i'd like to visualize it for manual usage
I mean.. What I like to do is
- Visualize the machine with linear scale.
- Using it by hand to make the pieces for the retrofit.
- Mount servo motor (I already have 3 axis Yaskawa kit ) and use Emc2.

The question is...

Is possible to use Emc like a standard manual DRO ?
This because if it's possible I can save money not buying the dro diplay and use saved money for higher resolutoin scale....


P.S: sorry for my english...

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

More
05 Oct 2012 10:32 #24970 by BigJohnT
Replied by BigJohnT on topic Re:DRO usage
Yes you can use the feedback from an encoder and just have a DRO. You can do this with hal or just use keystick or mini or you can use Axis.

John

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

More
10 Oct 2012 22:43 - 10 Oct 2012 23:11 #25227 by bigfefi
Replied by bigfefi on topic Re:DRO usage
I've tried this but the number on the DRO don't chamge.
I 've used an ELTRA rotary encoder for my test.
Connecting directly the encoder to the parallel port.
The encoder has 250 pulse per rev, and the signal are line driver (TTL?) with A,/A,B,/B,Z,/Z.
I have attached A & B only.
Using Xoscope I can verify that the encoder is perfectly working.
My parallelp port s in ECP mode. Using demesg| grep parport I see this

parport_pc 00:07: reported by Plug and Play ACPI
[ 10.754377] parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
[ 10.845263] lp0: using parport0 (interrupt-driven).


Maybe a problem on the parallel port configuratioN?
I need a breakoutboard?
Last edit: 10 Oct 2012 23:11 by bigfefi.

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

More
10 Oct 2012 23:14 #25228 by PCW
Replied by PCW on topic Re:DRO usage
Can you post a link to the HAL file you are using?

You should be able to start debugging this by using either halmeter
or the show hal configuration menu option in Axis and trace from
parallel port input pins (which should toggle as you rotate your encoder)
to the encoder components input and then count output

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

More
11 Oct 2012 06:48 #25229 by bigfefi
Replied by bigfefi on topic Re:DRO usage

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

More
11 Oct 2012 09:33 #25230 by andypugh
Replied by andypugh on topic Re:DRO usage
bigfefi wrote:

The encoder has 250 pulse per rev, and the signal are line driver (TTL?) with A,/A,B,/B,Z,/Z.
I have attached A & B only.


I think you need to do something with the complementary outputs (though I am not sure what).

Exactly how have you connected the encoder to the parallel port pins?

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

More
11 Oct 2012 09:53 #25231 by bigfefi
Replied by bigfefi on topic Re:DRO usage
The ancoder cable was cut away so i clamp the single signal wire
to an interface that have screw connectors on one side and DB25 connector to the other side
using this INTERFACE .

The encoder spec are here
I have the EL40 A 250 Z 5 L 6 model

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

More
11 Oct 2012 09:58 #25232 by andypugh
Replied by andypugh on topic Re:DRO usage
bigfefi wrote:

i clamp the single signal wire to an interface

OK, that wasn't quite the question I meant to ask.
The encoder has 8 wires. What does each one connect to?

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

More
11 Oct 2012 10:02 - 11 Oct 2012 10:04 #25233 by bigfefi
Replied by bigfefi on topic Re:DRO usage
I refer to enc cable.
wire1 = +5V
wire2 = gnd
wire3 = A
wire4 = B
wire5 = Z
wire6 = /A
wire7 = /B
wire8 = /Z

I connect wire 3 to DB25 pin 2
and
wire 4 to DB25 pin3.

With wire 1 and 2 I use the power supply.

No other ecnoder wires connected to parallel port.
Last edit: 11 Oct 2012 10:04 by bigfefi.

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

More
11 Oct 2012 10:26 #25234 by andypugh
Replied by andypugh on topic Re:DRO usage
bigfefi wrote:

No other ecnoder wires connected to parallel port.

I have a feeling that you need a differential receiver for this type of encoder, something like
uk.rs-online.com/web/p/line-receivers/0527912/
However, it is probably worth waiting for advice from PCW who knows a lot more about this subject than I do.

A hint that you can't just ignore the /A and /B lines would be if you can't see the parallel port pin voltage changing with your scope when everything is connected.

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

Time to create page: 0.104 seconds
Powered by Kunena Forum