Re: Rotate your job
There are a few different ways to rotate , scale or tilt the G code program.
The 2 most common are:
G68 to rotate the part at an angle around a user defined X,Y pivot position
-or-
G140 for 2D & 3D part rotation and plane tilting.
See the manual and macro files for examples:
G68 U0 V0 A45
G140 U0 V0 W1 R45
Also see
G141 Mirror/Scale for X only. Negative value mirrors G141 L#
G142 Mirror/Scale for Y only. Negative value mirrors G142 L#
G143 Mirror/Scale for Z only. Negative value mirrors G143 L#
[FANUC G68]' G68 U0 V0 A45 ' U & V are the XY pivot rotation position and A is the Angle
[FANUC G69]' Cancels part rotation
NOTE: normally most CBK files use G68 canned cycle to mill out the interior of a rectangular pocket with user defined corner radius. You can change G68 to be used for rotation instead or else call the [FANUC G68] macro from another G code number if you wish to keep the function of both features. If you wanted to see graphics and/or be prompted to enter the pivot point and angle you can use the matrix logic command to do this conversationally. Although having the values saved and kept with the G code program would be better. See MATRIX below.
Other related macros
[Probe 2 points to align part rotation]
[Auto Align Start Probe]
MATRIX logic command
This command will rotate, scale and tilt the G code cutting motion in 3D until cancelled. You may use any or all of the parameters of MATRIX in a G code program of just a few for an exclusive action such as scaling a single axis to tilt the part up, rotate in 3D, elongate circles, shift it's center point etc
There are ten possible parameters to affect the tilt in 3D, clockwise rotation and the individual scale factor of each axis. The first three parameters represent a vector direction to tilt the part in 3D. To cancel this tilt, enter 0;0;0. The fourth parameter represents any clockwise rotation around the Z axis you would like. This is cancelled by zero. The next three parameters represent the individual scale factor of the X, Y and Z axes independently. Scaling is cancelled by using the value 1. The last three parameters are optional 3D pivot point coordinates to rotate the matrix around. You can obtain a normalized vector from your CAD/CAM system, the VECTOR logic command or vector from the PLANE3PTS logic command.
Tech Support
CamSoft Corp.
[email protected]
PH 951-674-8100
Fax 951-674-3110
PC Based CNC Controller For The Machine Tool CNC Retrofit And CNC Controller OEM market
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)