eccentric turning

More
6 years 7 months ago #161426 by andypugh
Replied by andypugh on topic eccentric turning

alkabal wrote: -It is possible from ocode to update HAL pin ?

Yes.

-it is possible from macro.ui to change HAL value before send ocode ?

Yes.

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

More
4 years 9 months ago #230541 by hitchhiker
Replied by hitchhiker on topic eccentric turning
Hi!

i am complete new to linuxcnc..

i have a emco compact 5 cnc without turret.
i use a abz encoder for spindle index and speed.

i want to play arround with the eoffset.
is ot possible to get a walkthrough?
its hard for me to understand all the handcoded parts in the files.

any help possible? thanks.  

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

More
4 years 9 months ago #230546 by andypugh
Replied by andypugh on topic eccentric turning
Have you seen the sample config? You should be able to run that on your machine in simulator mode, and then you can use halmeter to follow the numbers through the HAL.

sample_configs -> sim -> axis -> external-offsets -> opa

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

More
4 years 9 months ago #230552 by hitchhiker
Replied by hitchhiker on topic eccentric turning
yes the simulation works.. but its with a C axis.. i dont have a c axis.. i have a lathe with abz encoder on the spindle.

i am absolute new to all that things ;)

i am happy that my lathe works and the modbus for vfd works...

some code parts could be help...

thank you.

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

More
4 years 9 months ago #230554 by andypugh
Replied by andypugh on topic eccentric turning

yes the simulation works.. but its with a C axis.. i dont have a c axis.. i have a lathe with abz encoder on the spindle.

i am absolute new to all that things
 

Well, you aren't going to be able to sort this out without becoming rather less new....

In the example HAL there is
Code:
net E:angle <= axis.c.pos-cmd net E:angle => xo.angle

and in your own HAL file you probably have something like
Code:
net spindle-revs encoder.0.position ... net spindle-revs motion.spindle-revs

Or something similar that defines a HAL signal name to link the encoder position to the rest of the system.

So you would need to combine the two, something like:
Code:
net spindle-revs x0.angle

A complication is that your spindle-pos is probably a 0.0 - 1.0 signal for a full turn, and the sample config is set up for 0-360 degrees. It looks like you can work round that by setting the fmult pin to n/360.

linuxcnc.org/docs/2.8/html/man/man9/eoffset_per_angle.9.html

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

More
4 years 9 months ago #230569 by hitchhiker
Replied by hitchhiker on topic eccentric turning
hi andy... 2 things after 4 hours without result...

i find out that my abz encoder had no working z signal... i done all on my desk... without the lathe.

i have 2 steppers with drivers connected to my parallelport and a encoder.

you are right 1 full rev is +1 or -1

i checked if all works with my standart ini/hal. all ok.

i start with m3 s200 the spindle
enter g33 z-5 k1
the indexpulse i done with a switch because my encoder have failed z signal.
the counting is correct back and forward.


now.. back to the eoffset..

i saw a video on youtube... with what i want.

the spindle is in moving,the encoder gets position and x is moving.



first i must get a working abz encoder...

but i dont understand how he get the degrees... he use a abz encoder thats what i know.

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

Time to create page: 0.406 seconds
Powered by Kunena Forum