Home> Industry Information> CNC contest: Polar coordinate programming description of "Century Star" CNC system in Central China

CNC contest: Polar coordinate programming description of "Century Star" CNC system in Central China

June 27, 2022


1. Function: Normally, the Cartesian coordinate system (X, Y, Z) is generally used, but the points on the workpiece can also be defined by polar coordinates. If a workpiece or a part is set to a radius and angle to a fixed point (pole), the polar coordinate system is often used.

2, pole definition and plane

1) Pole definition: Define the pole position of the polar coordinate system with the G38 command, which is the zero position relative to the current workpiece coordinate system.

2) Plane: The polar coordinate is defined by the pole defined by G38 as the reference plane. For example, G38 X20 Y20, the current polar coordinate programming plane is the XOY plane.

3, programming

1) Polar coordinate radius RP: The polar coordinate radius defines the distance from the point to the pole, as shown in Figure 1. This value is always saved and needs to be reprogrammed only after the pole changes or the plane changes.

2) Polar coordinate angle AP: The polar angle refers to the angle between the axis of abscissa and the axis of abscissa in the plane (such as the X axis in the XOY plane), as shown in Figure 1. The angle can be a positive angle or a negative angle. This value is always saved and needs to be reprogrammed only after the pole changes or the plane changes.


The polar radius and polar angle of the positive direction of the graph in different planes

4, programming examples

Running in polar coordinates allows you to program the position programmed with polar coordinates as a position programmed with Cartesian coordinates:

G00-fast moving linear interpolation

G01-linear interpolation with feed rate

G02-clockwise circular interpolation

G03-counterclockwise circular interpolation

%0001

N10 G92 X0 Y0 Z0 M03 S1000

N20 G00 X40 Y40

N30 G38 X0 Y0; X/Y plane (G17 plane)

N40 G42 D01 G01 AP=45 RP=20 ; pole coordinates in the current workpiece coordinate system

N50 AP=135

N60 AP=-135

N70 AP=315 RP=20

N80 AP=45

N90 G40 G91 Y20

N100 G00 X0 Y0

N110 M05

N120 M30

The above is the CNC contest: Polar coordinate programming description of "Century Star" CNC system in Central China we have listed for you. You can submit the following form to obtain more industry information we provide for you.

You can visit our website or contact us, and we will provide the latest consultation and solutions

Share to:

Send Inquiry

Home> Industry Information> CNC contest: Polar coordinate programming description of "Century Star" CNC system in Central China
We will contact you immediately

Fill in more information so that we can get in touch with you faster

Privacy statement: Your privacy is very important to Us. Our company promises not to disclose your personal information to any external company with out your explicit permission.

Send