- Posts: 11
- Thank you received: 0
Include rotation from A in G0
- anpoit00
- Offline
- New Member
-
Less
More
6 years 10 months ago #152154
by anpoit00
Include rotation from A in G0 was created by anpoit00
Hello,
I am trying to create a small cutting machine with 3 Axis - X Y linear axis and "A" rotate axis. I changed trivial kinematics module, calculate derivative of the way and calculate angle wit atan2 function. It works good but if the machine is moving with G0 i would like to set an angle of the target position (start angle of the next G1). Do I have to make changing in planner routine for the "look ahead"?
Greate thanks
I am trying to create a small cutting machine with 3 Axis - X Y linear axis and "A" rotate axis. I changed trivial kinematics module, calculate derivative of the way and calculate angle wit atan2 function. It works good but if the machine is moving with G0 i would like to set an angle of the target position (start angle of the next G1). Do I have to make changing in planner routine for the "look ahead"?
Greate thanks
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
6 years 10 months ago #152160
by andypugh
Replied by andypugh on topic Include rotation from A in G0
I don't really understand the question.
What is it about your machine that means you can't run it as a simple XYA config?
What is it about your machine that means you can't run it as a simple XYA config?
Please Log in or Create an account to join the conversation.
- anpoit00
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
6 years 10 months ago #152161
by anpoit00
Replied by anpoit00 on topic Include rotation from A in G0
I have found a video with a familar system : . The cutter position have to be tangential to the curve in each point. During G0 it must be move to the start angle position from next G1 or G2 ...
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
6 years 10 months ago #152162
by andypugh
Replied by andypugh on topic Include rotation from A in G0
I think that Gcodetools for Inkscape can do this automatically.
Another option would be an input filter to modify the G-code.
I thought I had already done this once, but all I can find is a suggestion that it should be fairly easy.
forum.linuxcnc.org/38-general-linuxcnc-q...tion?start=10#127201
Another option would be an input filter to modify the G-code.
I thought I had already done this once, but all I can find is a suggestion that it should be fairly easy.
forum.linuxcnc.org/38-general-linuxcnc-q...tion?start=10#127201
The following user(s) said Thank You: anpoit00
Please Log in or Create an account to join the conversation.
- anpoit00
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
6 years 10 months ago - 6 years 10 months ago #152166
by anpoit00
Replied by anpoit00 on topic Include rotation from A in G0
I doubt that it is work because unknowing angle for the next movement (for G1 yes but G2, G3 ..)
Last edit: 6 years 10 months ago by anpoit00.
Please Log in or Create an account to join the conversation.
- anpoit00
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
6 years 10 months ago #152168
by anpoit00
Replied by anpoit00 on topic Include rotation from A in G0
Ok i found the place. May be for somebody interesting
4516 STRAIGHT_TRAVERSE(block->line_number, end_x, end_y, end_z,
AA_end, BB_end, CC_end,
u_end, v_end, w_end);
settings->current_x = end_x;
settings->current_y = end_y;
settings->current_z = end_z;
Code:
int Interp::convert_straight(int move, //!< either G_0 or G_1
block_pointer block, //!< pointer to a block of RS274 instructions
setup_pointer settings) //!< pointer to machine settings
4516 STRAIGHT_TRAVERSE(block->line_number, end_x, end_y, end_z,
AA_end, BB_end, CC_end,
u_end, v_end, w_end);
settings->current_x = end_x;
settings->current_y = end_y;
settings->current_z = end_z;
Please Log in or Create an account to join the conversation.
Time to create page: 0.132 seconds