@@ -371,9 +371,6 @@ int Interp::work_plane_build(block_pointer block, setup_pointer s,
371371 *complete = 0 ;
372372 CHKS ((block->p_flag && (fabs (block->p_number - p) > 1e-9 || p < 0 || p > 3 )),
373373 _ (" P word with G68.2 must be 0, 1, 2 or 3" ));
374- CHKS ((block->a_flag || block->b_flag || block->c_flag ||
375- block->u_flag || block->v_flag || block->w_flag ),
376- _ (" G68.2 takes no A, B, C, U, V or W: the plane is placed by X, Y and Z" ));
377374
378375 if (p == 0 || p == 1 ) {
379376 // three angles. P0: each about an axis of the frame as rotated so
@@ -524,7 +521,7 @@ int Interp::work_plane_build(block_pointer block, setup_pointer s,
524521 return INTERP_OK ;
525522}
526523
527- // G68.2, G68.4 and G69 from convert_g
524+ // G68.2, G68.3, G68. 4 and G69 from convert_g
528525int Interp::convert_work_plane (int g_code, block_pointer block, setup_pointer s)
529526{
530527 double origin[3 ], rotation[3 ][3 ];
@@ -535,6 +532,10 @@ int Interp::convert_work_plane(int g_code, block_pointer block, setup_pointer s)
535532 _ (" Cannot cancel a tilted work plane with cutter radius compensation on" ));
536533 return work_plane_cancel (s, true );
537534 }
535+ // every form, G68.3 included, places the plane by X, Y and Z alone
536+ CHKS ((block->a_flag || block->b_flag || block->c_flag ||
537+ block->u_flag || block->v_flag || block->w_flag ),
538+ _ (" G68.2, G68.3 and G68.4 take no A, B, C, U, V or W: the plane is placed by X, Y and Z" ));
538539 if (g_code == G_68_3 ) {
539540 CHKS ((s->g68_seq_code != 0 ), _ (" G68.3 cannot interrupt a G68.2 sequence" ));
540541 return convert_work_plane_from_tool (block, s);
0 commit comments