eccentric turning
19 Mar 2020 20:36 #160772
by alkabal
Replied by alkabal on topic eccentric turning
I have also :
Attached you can found my hal and ini
net spindle-pos-deg <= orient.orient-spindle.angle-scaled-out # degree position from 0/360 (only positive value)
net spindle-orient-degree-cmd <= spindle.0.orient-angle
net spindle-orient-degree-cmd => orient.orient-spindle.angle
Attached you can found my hal and ini
Please Log in or Create an account to join the conversation.
22 Mar 2020 02:31 #161056
by alkabal
Replied by alkabal on topic eccentric turning
Hi
I'm trying to understand the process, this require to link this HAL value from macro to HAL the problem is i don't found some exemple, your original lathemacro pass the value to ocode subroutine.
-It is possible from ocode to update HAL pin ?
Or
-it is possible from macro.ui to change HAL value before send ocode ?
Or
-need to use other way like a remap/add new Gcode to interpreter ?
Or
- What did you think ?
The goal is mostly to allow me to easily turn some eccentric screw. (polygon is also something i like to be possible to do)
Br
I'm trying to understand the process, this require to link this HAL value from macro to HAL the problem is i don't found some exemple, your original lathemacro pass the value to ocode subroutine.
#net spindle-pos-deg => eoffset_per_angle.Xeoffset.angle
net spindle-pos => eoffset_per_angle.Xeoffset.angle
net Xeoffset-radius-ref => eoffset_per_angle.Xeoffset.radius-ref
net Xeoffset-enable-in => eoffset_per_angle.Xeoffset.enable-in
net Xeoffset-fnum => eoffset_per_angle.Xeoffset.fnum
net Xeoffset-rfraction => eoffset_per_angle.Xeoffset.rfraction
net Xeoffset-fmult => eoffset_per_angle.Xeoffset.fmult
net Xeoffset-start-angle => eoffset_per_angle.Xeoffset.start-angle
-It is possible from ocode to update HAL pin ?
Or
-it is possible from macro.ui to change HAL value before send ocode ?
Or
-need to use other way like a remap/add new Gcode to interpreter ?
Or
- What did you think ?
The goal is mostly to allow me to easily turn some eccentric screw. (polygon is also something i like to be possible to do)
Br
Attachments:
Please Log in or Create an account to join the conversation.
25 Mar 2020 13:28 #161426
by andypugh
Replied by andypugh on topic eccentric turning
Yes.-It is possible from ocode to update HAL pin ?
Yes.-it is possible from macro.ui to change HAL value before send ocode ?
Please Log in or Create an account to join the conversation.
- hitchhiker
- Offline
- Premium Member
Less
More
- Posts: 138
- Thank you received: 9
02 Jan 2022 11:34 #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.
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.
02 Jan 2022 13:04 #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
sample_configs -> sim -> axis -> external-offsets -> opa
Please Log in or Create an account to join the conversation.
- hitchhiker
- Offline
- Premium Member
Less
More
- Posts: 138
- Thank you received: 9
02 Jan 2022 14:03 #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.
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.
02 Jan 2022 14:36 #230554
by andypugh
Well, you aren't going to be able to sort this out without becoming rather less new....
In the example HAL there is
and in your own HAL file you probably have something like
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:
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
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
net E:angle <= axis.c.pos-cmd
net E:angle => xo.angle
and in your own HAL file you probably have something like
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:
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.
- hitchhiker
- Offline
- Premium Member
Less
More
- Posts: 138
- Thank you received: 9
02 Jan 2022 20:06 #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.
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.
- hitchhiker
- Offline
- Premium Member
Less
More
- Posts: 138
- Thank you received: 9
03 Jan 2022 23:01 - 03 Jan 2022 23:07 #230691
by hitchhiker
Replied by hitchhiker on topic eccentric turning
hi me again...
net spindle-position encoder.0.position => xo.angle gives me 1 count for 1 rev.
ok this works. but i struggle with:
net E:active <= motion.eoffset-activenet E:active => xo.active
the motion.eoffset-active shows everytime false.and i dont know what i must do.i need help...can someone please help... i dont understand it.
i upload my hals and inis.... what do i wrong?!can someone bring me to the right way?!
thanks
net spindle-position encoder.0.position => xo.angle gives me 1 count for 1 rev.
ok this works. but i struggle with:
net E:active <= motion.eoffset-activenet E:active => xo.active
the motion.eoffset-active shows everytime false.and i dont know what i must do.i need help...can someone please help... i dont understand it.
i upload my hals and inis.... what do i wrong?!can someone bring me to the right way?!
thanks
Last edit: 03 Jan 2022 23:07 by hitchhiker.
The following user(s) said Thank You: jpg
Please Log in or Create an account to join the conversation.
04 Jan 2022 11:58 #230748
by jpg
Replied by jpg on topic eccentric turning
Hello, I tried on my side too, with a port // configuration (identical to yours, in fact) I would like to help you, but I am less advanced than you on this configuration (contrary to you, I wish to keep the C axis) I am happy to not be alone on this subject, thank you !
Please Log in or Create an account to join the conversation.
Moderators: piasdom
Time to create page: 0.262 seconds