rotation plane around y axis in g18

More
1 year 9 months ago #319062 by papagno-source
Hi.
In linuxcnc we have g10 l2 px rx and rotation plane xy around z on px origin selected.

For plane g18 not have implementation for linuxcnc ?

Thanks

Please Log in to join the conversation.

More
1 year 9 months ago #319205 by andypugh
No, rotation about Z is a special case.
Rotation of the other planes (including uvw) might be nice, though there doesn't seem to have been many requests for it.

Please Log in to join the conversation.

More
1 year 9 months ago #319293 by papagno-source
I think that for a cnc, rotations in the G17-G19-G20 planes are fundamental. There are many machines that have a double spindle, one installed vertically and the other horizontally. In these cases it is necessary to change the plane and the rotation of the plane, allows to greatly facilitate the work of programming the piece.

Please Log in to join the conversation.

More
1 year 9 months ago #319297 by Aciera
The usual approach is to create a configuration for vertical and another for horizontal operation but
one can easily create a kinematic that allows for switching between vertical and horizontal spindle orientation even in Gcode.

Please Log in to join the conversation.

More
1 year 9 months ago #319386 by papagno-source
Thanks for reply.

Please can write a example for orientation plane in Gcode.

Much thanks.

Please Log in to join the conversation.

More
1 year 9 months ago #319388 by Aciera
For a basic example have a look at the 'configs/sim/axis/vismach/millturn' for a similar use case.

The kinematic file used is this one:
github.com/LinuxCNC/linuxcnc/blob/master...onents/millturn.comp

For a simple vertical/horizontal kinematic you would only need to change this:
Code:
case 0: pos->tran.x = j[0]; pos->tran.y = j[1]; pos->tran.z = j[2]; pos->a = j[3]; break; case 1: pos->tran.x = j[2]; pos->tran.y = -j[1]; pos->tran.z = j[0]; pos->a = j[3]; break; } // unused coordinates: pos->b = 0; pos->c = 0; pos->u = 0; pos->v = 0; pos->w = 0;
to
Code:
case 0: pos->tran.x = j[0]; pos->tran.y = j[1]; pos->tran.z = j[2]; break; case 1: pos->tran.x = -j[0]; pos->tran.y = j[2]; pos->tran.z = j[1]; break; } // unused coordinates: pos->a = 0; pos->b = 0; pos->c = 0; pos->u = 0; pos->v = 0; pos->w = 0;

Please Log in to join the conversation.

More
1 year 9 months ago #319415 by papagno-source
I am very grateful for the support you give us.

Thanks

Please Log in to join the conversation.

More
1 year 9 months ago #319417 by papagno-source
I have add millturn.com.

When compile with make , have :
hal/components/millturn.comp: In function ‘millturn_setup’:
hal/components/millturn.comp:71:9: warning: implicit declaration of function ‘hal_set_unready’; did you mean ‘hal_port_read’? [-Wimplicit-function-declaration]
if (hal_set_unready(comp_id)) goto error;
^~~~~~~~~~~~~~~
hal_port_read
Linking ../rtlib/millturn.so


I use debian 10 with linuxcnc 2.9.pre0.
i have add milturn.comp at core_sim.hal in axis sim , have error :
Note: Using LXRT realtime
millturn: dlopen: /usr/lib/libint/rtlib/millturn.so: undefined symbol: hal_set_unready

how can resolve this ?

Thanks

Please Log in to join the conversation.

More
1 year 9 months ago #319418 by Aciera

I use debian 10 with linuxcnc 2.9.pre0.


I think you would have to update to 2.9.3.

Please Log in to join the conversation.

More
1 year 9 months ago #319652 by papagno-source
Hi.
For testing , is can modification trivkins kinematics for it , or is complicated.

Thanks

Please Log in to join the conversation.

Time to create page: 0.116 seconds
Powered by Kunena Forum