You are on page 1of 15

16.

Composition of program
16-1Composition of programs

M102(SPC1.0) Processing condition file "SPC1.0" is called. G92 X0 Y1250 The program coordinate system is set. G93 X20 Y80 The Retract is moved. M100 Laser mode is ON. E001 Cutting condition "E001" is called. G112 X30 Y30 I5 The hole of 5 is processed to the position of X30 and Y30. E002 Cutting condition "E002" is called. G112 X70 Y30 I20 Q5 The hole of 20 is processed to the position of X70 and Y30. E003 Cutting condition "E003" is called. G00 G41 X35 Y0 This command is for positioning. It moves the table and laser head to the designated X, Y axis location at the current traverse speed. M103 The processing start. G01 X30 Y0 G01 X0 G01 Y60 G01 X100 G01 Y0 Straight line of G01 X70 interpolation G01 Y15 G01 X30 G01 Y0 M104

The processing is finished. Cancellation of G00 G40 tool diameter correction Cancellation of M101 laser mode AMADA SCHOOL

G50 Retract return <67>


16-2 Explanation of G code and M code
M102: Cutting material specification The cutting condition file is selected according to the processing material. Format M102( ); ( ) Inside this parenthesis, the cutting condition material format is inputted.

Coordinate system setting (G92) It is necessary to provide the reference point of the coordinate system before the coordinates are specified by an absolute co-orientate instruction. The value is given in the program is usually for the movement of processing head axis using co-ordinate system Format G92 X__ Y__ ; This co-ordinate system brings the laser processing head to the specified X and Y code position with the format of above mentioned as instruction. This coordinate system is called a program coordinate system. If the program coordinate system is set once, the following absolute instruction values become the positions in the program coordinate system. Example 1: At the Origin Point start G92 X__ Y__ ; X and Y coordinates for Origin point position input. Example 2: When you start after it positions it by hand power G92 X__ Y__ ; Part size input.

AMADA SCHOOL

<68>


Origin point Offset setting (G93) It is possible to instruct by using G93" when the origin point of the program coordinate system ("X, Y, and Z code") is moved through the program. The coordinate system that moved according to this instruction is input, "Local coordinate system". Format G93 X__Y__ (Z__ ); The program Origin Point moves to the position specified by "X, Y, and Z code" according to the above-mentioned instruction. When the processing/cutting shape that there is a reference point in the material is programmed, it is suitable. Remarks The Origin point offset setting is effective only in an absolute instruction.

Processing mode (M100,M101) M100: Opens the mechanical shutter and enables laser operations.

It is a laser mode until M101's being instructed. M101: Closes the mechanical shutter and disables laser operations.

Cutting condition instruction (E code) Cutting condition (E001-E010) is selected from the processing condition file selected with M102 code. Format E;

E001-E004 is used in cutting usually (default). E010 is a condition for [Etching]. ([Etching] is not set in the condition of aluminum. )

AMADA SCHOOL

<69>


Rapid Traverse (G00) Positioning Format G00 X__Y__ (Z ); Each axis does the fast-forwarding positioning when instructing in the X,Y,Z" coordinates value following G00". The value of X,Y,Z" becomes a distance from the Origin point of the absolute coordinate system program, and it becomes a distance from a current position when incremental instructing.

Cutter compensation (G40,G41,G42)

G40 - Laser beam compensation-cancel G41 - Laser beam compensation-left G42 - Laser beam compensation-right When the A shape product is cut with the tool of radius R", only R should be offset from A as a passage of Tool (Laser beam) center as shown in the figure Thus, it is called as Cutter tool compensation" to move the position of the tool to obtain a prescribed size of the product.

Cutter compensation route B

Tool tip radius R

Product form A

AMADA SCHOOL

<70>


Laser beam machining (M103,M104) M103 - Start cutting mode M104 - Cutting mode cancel The laser beam is emit with M103, and the laser beam stops by M104 code.

Straight line motion (G01) Format G01 X Y ;

Example: G00 X0 Y0; G01 X200 Y100;

When G01 with X and Y coordinate value is inputted, straight line cutting process to the designated position is done from the current position. X and Y as for the input method For the absolute co-ordinate system, the movement becomes distance from origin point to programmed co-ordinates pint. For the incremental co-ordinate system, the movement becomes distance from previous position.

AMADA SCHOOL

<71>


Circular arc interpolation (G02,G03) G02 Circular arc interpolation clockwise CW G03 Circular arc interpolation Counter Clock Wise CCW Format G02 (or G03) X Y I J; G02 (or G03) X Y R; With G02 G03, cutting processing of circular arc form is ordered. As for G02 clockwise rotation, as for G03 it is counterclockwise direction. End position X and Y is the end position of the circular arc, being absolute or incremental R value is the input of size of the circular arc I and J value are the inputting starting position from the center of the arc value

End position X and Y

Center

Starting position

AMADA SCHOOL

<72>


Standard hole code (G111-G116) G111 G112 G113 G114 G115 G116 Square/Rectangle Round/Obround Single D/Double D Polygon Arc slot (Round ends) Arc slot (Flat ends)

As for the processing program of the round hole and the square hole etc, using code (subprogram which is prepared), it is possible to draw up simply. Standard hole code can be executed by 3 types as given below. Single-hit: individual hole inputting method Form register rapid fire: The method of registering hole form and continuing just hole position and appointing Form register pattern: The method of registering hole form and placing in pattern and doing position appointment Format Angular long angular processing G111 X Y I J Q K R C H M A; Circular long circular processing G112 X Y I J Q K H M A; SD . WD processing G113 X Y I J Q K H M A; Regular polygon processing G114 X Y I J Q K R C H M A; Arc slot processing G115 X Y I J Q K R H M A; Sector processing G116 X Y I J Q K R H M A;

AMADA SCHOOL

<73>


G111 Square/Rectangle (with Square/Radius/Chamfered corners) Single hit method: G111 X__ Y__ I__ J__ Q__ K__ R__ C__ H__ M__ A__; X... X-center of hole to cut Y... Y-center of hole to cut I... Length: J... Width: If omitted, a square hole is cut. Q... Approach length : Specify length. If omitted, the approach will not cut K... Lean angle R... Corner radius: Must be less than one half of the J value. C... Corner Chamfer: Must be less than one half of the J value. H... Wire / micro joint: Specify joint length. If omitted, no joint is allowed for. M... M00 - Shutter close/head up/stop program A0 Piercing override: If A0, then no piercing is done.

AMADA SCHOOL

<74>


Form register rapid fire: example (G111 angular long angle) Format When it shoots in rapid succession processes the square hole G111 IJQKRHMA; G111 X Y; <- Position appointment G111 X Y; <- Register of hole form

In the standard hole macro, if you do not execute hole position command (X,Y), you can register hole shape. After the block in which hole shape, you can use the same code of standard hole macro in which hole shape was registered to execute the hole position command (X,Y). If a hole shape is registered once, it will be affective till the program END command, as long as another hole shape is registered.

Form register pattern Format When you process the corner hole by BHC (bolt hall circle) pattern G111 I J Q K R H M A ; Registration of hole shape G126 X Y I J K ; Processing pattern call In the standard hole macro, if you do not execute hole position command (X,Y), you can register hole shape. After the block in which hole shape, you can use the same code of standard hole macro in which hole shape was registered to execute the hole position command (X,Y). If a hole shape is registered once, it will be affective till the program END command, as long as another hole shape is registered. 0 ordering I of fixed BHC (bolt hall circle) form hole form, when G126 X Y I J K ; Pattern datum point normal line it controls, X: Pattern reference point X Y: Pattern reference point Y I: Radius J: Starting angle (0when omitting it) K: Number

AMADA SCHOOL

<75>


Multiple Part setup (G98) G98 X Y I J P K X: Reference point X (lower left corner of product under the arranged left) Y: Reference point Y (lower left corner of product under the arranged left) I: X pitch J: Y pitch P: X number (The number of standard positions is not included. ) K: Y number (The number of standard positions is not included. )

X, Y datum point

Material

Product

Remarks - Please instruct in X and Y absolute co-ordinate system. - Please instruct in I, J, P, and K by the positive number or 0. The pitch between each product : in consideration of width, the width of the outside frame, and the size etc. of the material. Macro memory U V U: Macro storage beginning V: Macro storage end

(Specify it by the figure of 1-59. ) (Specify it by the same figure as U. )

AMADA SCHOOL

<76>


Type of Multiple macro recall (G75,G76) G75 W Q (P ) (Part processing instruction in X direction). G76 W Q (P ) (Part processing instruction in Y direction). W: Macro number (Specify it by the same figure as U and V). Q: Starting position P: Restart position It instructs in the number (75 or 76) in which the macro is stored by U and V with W. Many instruct in the direction of Part processing with G75 and G76, and it instructs in the position that begins on Q.

G 75W_Q 1

G 75W_Q 2

G 75W_Q 3

G 75W_Q 4

G 76W_Q 1

G 76W_Q 2

G 76W_Q 3

G 76W_Q 4

Large number setting button of taking machine side Trial processing: Mandatory only Q1 processing Remaining processing: From Q which is appointed other than Q1 all process all processing: From Q which is appointed all processing
Processing being Reopening position completed

Reopening position P is not ordered usually. Large number after discontinuing taking, it is something which orders start position when it reopens. Example: G75 W_ Q3 P3

10

11

12

AMADA SCHOOL

<77>


Program example For four rows in horizontal direction and three rows in the vertical direction M102(SPC1.0); G92 X0 Y1250; (G92 x1250.Y1250;) M100; G98 X20 Y20 I110 J70 P3 K2; U1; : : V1; G75 W1 Q3; M101; G50;

Only horizontally for one row Only G75 can be used. Only 1 and 2 can be used about Q. M102(SPC1.0); G92 X0 Y1250; M100; G98 X20 Y20 I70 J0 P5 K0; U1; E002 : : M104 : G00 G40: V1; G75 W1 Q1; ( G75 W1 Q2 ) M101; G50;

Only to the vertical direction for one row Only G76 can be used. Only 1 and 3 can be used about Q. M102(SPC1.0); G92 X0 Y1250; M100; G98 X20 Y20 I0 J50 P0 K2 ; U1; E002 : : M104 : G00 G40: V1 G76 W1 Q1; (G76W1Q3) M101; G50;

AMADA SCHOOL

<78>


16-3 G code list
G code G00* G01* G02* G03* G04 G09 G24 G31 G32 G33 G40* Name Rapid traverse Straight line motion Circular arc Clockwise CW Circular arc Counter clockwise CCW Dwell Exact stop Piercing mode Assistance gas selection Z axis tracking sensor ON Z axis tracking sensor OFF Laser beam path compensation cancel Laser beam Compensation Left Laser beam Compensation Right Home return Multiple macro recall Multiple macro recall Absolute programming Incremental programming Coordinate system setting Origin point offset Multiple part setup It instructs in the coordinate value by the distance from the Retract. It instructs in the coordinate value by the distance from the previous position. The Retract of the program coordinate system is set. The reference point of the work offset (origin shift) (new Retract) is set. Function Positioning in fast-forwarding positioning and corner part Straight line cutting Circular arc processing of clockwise Anti-clockwise circular arc processing A state as it is maintained at the specified time. when axis moves Turns on the laser beam at the specified power, pulse condition, and time. Selection of assistance gas kind and pressure Turn on the optional Z-axis tracking sensor Turn off the optional Z-axis tracking sensor. The correction of tool (laser optical axis) diameter is released. Laser beam path compensation to LEFT of path Laser beam path compensation to LEFT of path X, Y, and Z axis are returned to the Retract position, and driving is ended.

G41* G42* G50 G75 G76 G90* G91* G92* G93* G98

AMADA SCHOOL

<79>


G code G111 G112 G113 G114 G115 G116 G121 G122 Name Square/Rectangle processing Round/Obround processing Single D/Double D processing Polygon processing Arc slot processing Arc slot (flat ends) processing HS-edge detectionmeasurement HS-edge detection calibration BHC (bolt hall circle) LAA ARC (arc) Automatic Retract return X-GRID (X-grid) Y-GRID (Y-grid) Active cutting Scaling and coordinates rotation Function Macro that processes Square/Rectangle hole Macro that processes Round/Obround hole Macro that processes single D double D Macro that processes positive, polygonal hole Macro that processes arc slot Macro that processes Arc slot (flat ends) hole HS roller end face detection measurement HS roller end face detection calibration

G126 G128 G129 G130 G136 G137 G139 G150

The macro shape is arranged in BHC. The macro shape is arranged in LAA. The macro shape is arranged in ARC. X, Y, and Z axis are returned to the Retract position. The macro shape is arranged in GRID. The macro shape is arranged in GRID.

Remarks - * It was attached, the G code the modal is the cord/code. Until this is modified with the G cord/code of the same group, or is cancelled the function is effective. The * it has not been attached, the G code only 1 blocks which are ordered is effective.

AMADA SCHOOL

<80>


16-4 M code list
M code M00 Name Programmed stop Function Program pause function. If the start button is pushed, you re-start. Program pause function. If the start button is pushed, you re-start. With functional validity, invalidity can be selected the optional stop button. End of the program is ordered. Program return function joins to the function of M02. When the program ends, it returns to the forefront of the program automatically. Pallet load/ Work piece load Subprogram is called. End of subprogram. In addition, it returns simultaneously.

M01

Optional stop

M02 M30 M33 M96

Program end Program end Loading Subprogram call

M97

Subprogram end

to

main

program

M100

Laser mode Laser mode cancellation Cutting material appointment Shutter opening and head drop Shutter closing and head rise Shuttle exchange pallet

It enters into laser mode. It becomes a state where laser processing is possible. It ends laser mode. It becomes a state where laser processing is impossible. The data of the optional material is called from the processed conditional file. The head it falls, opens the shutter. The shutter is closed, the head is risen. The shuttle pallet is exchanged. Calibration start

M101 M102 M103 M104 M707 M722

Calibration ON

AMADA SCHOOL

<81>

You might also like