I wish to Write the NC part program and the precursor APT code for a congruent toolpath -- which is a magnification by 4, translation by 22.36 units along the line Y = 0.5x, and respective clockwise and counter-clockwise rotations of axes and vectors by 15degrees and 30degrees -- of the given toolpath on G-code below. Please, who can give me ideas? Thanks and God bless. Sly.
see if your machine control supports Scaling and rotating. They are quite easy to use and save major time.
Coordinate system rotation is turned on by code G68 and turned off with G69.
In G68 block is programmed X, Y and Z values that are center of rotation and R value which is angle of rotation. Positive R-value is counterclockwise rotation, negative value is clockwise rotation.
G68 X0.00 Y0.00 R15.0 <-- will rotate program CCW 15° about X0Y0,
don't forget to turn it off!
G51 scales program G-codes relative to a scaling center point defined as position (X, Y, and Z). G50 – Cancels the scaling factor applied.
A G51 applies scaling Specify scaling factors with a value I, J for X, Y, parameters are the coordinates of the scaling center.
G51 X0.0 Y0.0 I4.0 J4.0 ; turn scaling on <-- scales program to a factor of 4x
G50; cancel scale <-- don't forget to turn it off!
This site will be happy to rotate your code, It may not handle your G02 lines.