NC programming

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.
M4S1000
G0Z3
G0X-20Y-10
G1Z-1F100
G1X70
G1Y20
G1X60
G02I60J30R10C270E180
G1Y40
G02I60J40R10C180E90
G1X70
G1Y80
G1X-20
G1Y50
G1X-10
G02I-10J40R10C90E0
G1Y30
G02I-10J30R10C0E270
G1X-20
G1Y-10
G0Z3
M5

Answer
 
Comments 0

3 Answers

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.
i-logic.com/utilities/rotatenc.htm

 
Comments 0