background image

 

 

 

 

 

 

Ncstudio 

PC-BASED NUMERIC CONTROLLER 

 

PROGRAMMING MANUAL 

 

 

 

 

 

 

 

 

 

Where there is motion control 

there  is  WEIHONG

Summary of Contents for Ncstudio

Page 1: ...Ncstudio PC BASED NUMERIC CONTROLLER PROGRAMMING MANUAL Where there is motion control there is WEIHONG ...

Page 2: ...oducts and relative machine equipment carefully read this manual to have a better use of them Because of continuous update in hardware and software it is possible that the software and the hardware you have received differ from the statement in this manual Company address phone number and our website are listed here for your convenience Any questions please feel free to contact us We will always b...

Page 3: ...ons 5 3 2 Format of Program Block 6 3 3 Format of Subprogram 6 4 Programming Instruction System 7 4 1 Spindle Function S Feed Function F Tool Function T 7 4 2 Miscellaneous Function M Code 8 4 3 Preparatory Function G Code 8 4 4 Advanced Functions 51 4 5 Expressions Used in Program Instructions 55 4 6 Comments in Program 56 4 7 Demonstration of Machining File Programming 56 4 8 G Command Appendix ...

Page 4: ...ect tool offset setting for detailed introduction please refer to chapter 4 3 G923 directly set tool offset 8 Strengthened function for command G906 to test if the specified port is timeout For detailed introduction please refer to chapter 4 4 9 New command M903 is used for modifying the current tool number For detailed introduction please refer to command M list in chapter 4 4 10 Command G92 is t...

Page 5: ...machine tool by CNC device The most commonly used storage mediums are punched tape and disk Creation of Machining File As shown in Fig 2 1 below a machining file can be created by traditional manual programming or CAD CAM application Such as the popular MasterCAM application Fig 2 1 Creation of a Machining File 2 2 Summarization of CNC Machine Tool Machine Tool Coordinate Axes To simplify programm...

Page 6: ...orkpiece The positive directions of coordinate axes mentioned above are directions of tool feeding relative to the supposedly stationary workpiece If the workpiece is kinetic the coordinate axes are marked with According to relative motion the positive direction of workpiece movement is opposite to that of tool movement that is X X Y Y Z Z A A B B C C Likewise their negative directions are contrar...

Page 7: ...oke range of each coordinate axis After starting the machine it is necessary to back to REFER point manually or automatically so as to create the MCS The REFER point can coincide with MO or not If not the distance from machine REFER point to MO can be set by parameter setting After the machine returns to the REFER point the machine origin which is the reference point of all coordinate axes is conf...

Page 8: ...ctions Address symbols and definitions are as shown in Form 3 1 Form 3 1 Address Symbols Address Symbol Description B Basic Function O Optional Function D Cutter radius offset number B O F Feedrate function B G Preparatory commands B O H Tool length offset B I Arc center modifier for X axis B O J Arc center modifier for Y axis B O K Arc center modifier for Z axis B L Repetition count B O M Miscell...

Page 9: ...e executed by CNC device The format of program block defines the syntax of function word in each program block as shown in Fig 3 2 N G X F M S Program Block No Preparatory F Dimension W Feed F W Miscellaneous F W Spindle F W F Function W Word Program Block Fig 3 2 Format of Program Block 3 3 Format of Subprogram A subprogram is a section of machining codes which can be called repeatedly It must be...

Page 10: ... tool relative to the workpiece being machined Its unit is mm min With the help of feedrate override switch on the operation panel F can be adjusted between feedrate percent 0 120 F functions differently with different commands G00 command specifying the rapid traverse speed modal for the current machining procedure G01 G03 command specifying the feed speed modal for the current machining procedur...

Page 11: ...top M11 Spindle unclamp M01 Optional program stop M17 Subprogram return M02 End of the program M30 End of program and return to program top M03 Spindle on CW rotation M98 Subprogram call M04 Spindle on CCW rotation M99 End of subprogram and return to the beginning of main program for continuous execution M05 Spindle stop M801 String info transmission between modules M06 Automatic tool change ATC M...

Page 12: ...ancelled They cannot be used in the same program block For example G90 G91 G0 X10 is unallowable Programming Example As shown in Fig 4 1 below programming with G90 G91 the tool moves in sequence from origin to point 1 2 and 3 20 60 40 Y X O 15 25 45 1 2 3 N X Y N01 X20 Y15 N02 X40 Y45 N03 X60 Y25 N X Y N01 X20 Y15 N02 X20 Y30 N03 X20 Y 20 G90 programming G91 programming Fig 4 1 G90 G91 Programming...

Page 13: ...es a WCS without cutter movement As a non modal command G92 is usually put in the first block of machining file to create a WCS and synchronously offset origins of other WCSs which can be used to adjust the length of cutter holder G921 Specify Work Coordinate Value of Current Point Command Format G921 X_Y_Z_ Description X_Y_Z_ workpiece coordinates of the current point G921 is used to set workpiec...

Page 14: ...Position G992 Temporarily Set WCS according to Tool Position Command Format G992 X_Y_Z_ I_J_K_ Description The function of this command is similar to G92 command Their difference is G92 command alters the WCS permanently and takes the same standard to the whole system while G992 command alters the WCS temporarily and only influences the coordinate parsing of processing instruction which will be re...

Page 15: ...92 I 1 3 J 2 M17 O3456 3 Add the following contents at the end of the processing file G00 G90 X 1 G906 G992 I 1 M17 Both the above two programs can realize the related array machining The first 4 parameters can be adjusted and customized Note G992 X_Y_Z_ sets the current point as a specified point in the new coordinate system G992 I_J_K_ translates the original coordinate system a specified distan...

Page 16: ...Param setting interface The setting value will be saved automatically by the controller Note Once a WCS is confirmed the following instruction values in absolute programming are all relative to the origin of WCS G54 G59 are modal functions which can be mutually cancelled G54 is the default Programming Example As shown in Fig 4 5 programming based on WCS to make the tool move from current point to ...

Page 17: ...y cancelled X Y Z G17 G18 G19 Fig 4 6 Coordinate Plane Selection G20 G21 OR G70 G71 Inch Metric Command Command format G20 G21 G70 G71 Description G20 70 inch G21 71 metric This group of G codes is defined at the beginning of the program block If one of them is specified the units of all subsequent operations will be changed If not specified the default unit is metric G50 G51 Scaling Function Comm...

Page 18: ...ther with the scaling of Z axis If so an alarm will appear These G codes cannot be used in the execution process of scaling function G28 G29 G53 and G92 or else the outcome may contain an error If there is G51 in the program without G50 the scaling function will be automatically closed at the end of the program Programming Example N01 G00 X50 0 Y50 0 rapid positioning N02 G51 X100 0 Y80 0 P0 5 spe...

Page 19: ...n of the third axis positive means counterclockwise rotation while negative clockwise rotation In the process of rotation coordinate of the third axis perpendicular to the current plane is constant Respectively swiveling in XY plane the coordinate of Z axis keeps still swiveling in YZ plane the coordinate of X axis keeps still and swiveling in ZX plane the coordinate of Y axis keeps still For exam...

Page 20: ...the previous rotation The function of G69 is to cancel the previous rotation command In the above mentioned program line C cancels the G68 of line C line B the G68 of line B and line A the G68 of line A If G69 not used all rotation commands will be automatically cancelled at the end of current machining The following example contains the nesting of rotation command and scaling command G90 G0 x0 y0...

Page 21: ...while G51 1 X10 Y10 Z10 specifies the mirror image of the contour relative to the point 10 10 10 For G50 1 X_Y_Z_ is used to specify the invalid axes of mirror image function For example G50 1 X0 closes the mirror image function of X axis and G50 1 Y0 Z0 closes the mirror image functions of Y axis and Z axis If X Y and Z axes are all specified or no one is specified it denotes the mirror image fun...

Page 22: ...g point to the target point all coordinate axes can move simultaneously G01 is available until replaced by other command in the group of G function G00 G02 G03 Programming Example N05 G00 G90 X40 Y48 Z2 S500 M03 tool rapidly moves to X40 Y48 Z2 and the spindle rotates CW at 500 rpm N10 G01 Z 12 F100 tool goes to Z 12 with feed rate as 100 mm min N15 X20 Y18 Z 10 tool moves to P2 along a line N20 G...

Page 23: ...enter is marked on a drawing begin programming directly without calculation X Y plane is the default plane in circular programming or you can specify a circular interpolation plane via G17 G18 or G19 Helical interpolation is available by specifying another axis in a linear command at the same time to move synchronously with circular interpolation K can be used to specify the pitch in helical inter...

Page 24: ... End point X 10 20 10 20 Y 0 R 1 0 b 10 10 Fig 4 10 G02 G03 Programming 20 0 Y X 40 Fig 4 11 A Full Circle Interpolation Programming Example A full circle interpolation see Fig 4 11 Solution 1 G00 X0 Y0 G02 X0 Y0 I20 J0 F300 Solution 2 G00 X0 Y0 G02 X20 Y 20 R 20 F300 G02 X0 Y0 R20 F300 Programming Example Helical programming in G03 as shown in Fig 4 12 ...

Page 25: ...cle execute tool retract to get a smooth hole bottom 3 After boring a hole the spindle should be stopped and dwell for 1 3s until totally stopped before tool retract in order to avoid thread scratches and ensure the smoothness of workpiece 4 In transverse turning G04 can be used before tool retract to make sure the spindle rotates at least one circle 5 When chamfering or centering on a lathe the d...

Page 26: ...lishment and cancel of cutter radius compensation can only use G00 or G01 command instead of G02 or G03 When using cutter radius compensation the radius value must be measured accurately and then saved into the memory as the cutter path offset cutter radius value D code is used in programming to make cutter offset no correspond to cutter radius value When G41 G42 is used the cutter will move a rad...

Page 27: ...not be opposite to last direction 10 0 10 20 Current moving direction Previous moving direction Fig 4 15 Schematic Diagram of Cutter Moving Direction For example G92 G0 X0 Y0 G0 G41 X10 Y10 D01 F1000 G1 X20 Y10 If G1 X5 Y10 is added here an error will appear because the direction is opposite to that of above mentioned instruction Change it to G1 X10 Y50 or other instruction not opposite to the las...

Page 28: ...tracts or adds the saved tool offset value from or to the command value of Z axis G43 and G44 are modal commands When G43 or G44 is programmed they will be always effective until G49 command appears to cancel them Z X 3 10 Tool nose position after length compensation Tool nose position before length compensation 0 Fig 4 16 Tool Length Compensation Programming Example See Fig 4 16 for tool length c...

Page 29: ... t to be written which can greatly simplify the program Description of each command is shown in the following table G Code Drilling operation Operation at bottom of hole Retraction operation Application G73 Intermittent feed Rapid motion High speed peck drilling cycle G74 Cutting feed Dwell then spindle CW Cutting feed Left tapping cycle G76 Cutting feed Oriented spindle stop with one displacement...

Page 30: ...e to point R the cutter rapidly feeds from initial point to point R Operation 3 hole machining executing hole machining at the mode of cutting feed Operation 4 operations at bottom of hole including dwell exact stop of spindle cutter displacement and so on Operation 5 return to point R for continuing hole machining and safely moving the cutter Operation 6 return to initial point at rapid traverse ...

Page 31: ...epth When drilling a hole the impact of drill on hole depth should also be taken into consideration Hole machining cycle is not related to plane selection command G17 G18 and G19 Whichever plane is selected hole machining is positioning in XY plane and drilling in Z axis Canned Cycle Codes Data Form Data of Address R and Address Z in canned cycle commands are specified in incremental mode G91 R in...

Page 32: ... is cancelled Therefore these commands can be specified at the beginning of the program and then it is unnecessary to specify them again in the following consecutive machining if the data of a certain hole is changed such as hole depth you only need to modify this data G80 command is used to cancel hole machining mode if any G code of Group 01 G00 G01 G02 G03 appears in the program block the hole ...

Page 33: ... Machining Process Process Description 1 The cutter rapidly moves to the specified hole position X Y 2 Moves to the appointed point R 3 Moves down Q relative to the present drilling depth 4 Rapidly moves upward retract distance set by the parameter retract amount 5 Repeats the above drilling operations until reaching point Z at the bottom of hole 6 Returns to the initial point G98 or R point G99 a...

Page 34: ...tom of hole in ms with no decimal point F_ feed speed even if the canned cycle is cancelled this modal data is still effective in the subsequent machining Currently tapping speed is specified by the parameter spindle speed when tapping instead of by this F data K_ number of repeats repeated movement and drilling effective under G91 incremental mode Hole machining process is as shown in Fig 4 20 In...

Page 35: ...top M02 G76 Fine Boring Cycle This command is not supported at the moment Command Format G76 X_Y_Z_R_Q_P_F_K_ Description X_Y_ hole position data absolute incremental coordinate Z_ the position of point Z at the bottom of the hole absolute programming the distance from point R to point Z at the bottom of the hole incremental programming R_ the position of point R absolute programming the distance ...

Page 36: ... in G00 2 Moves down to the specified point R in G00 without spindle orientation 3 Moves down to the point Z at the bottom of the hole in G01 after P oriented spindle stop executed 4 Shifts δ distance the offset distance 5 Retracts to the initial point G98 or point R G99 in G00 6 Spindle CCW on Alarm As a Modal Value requested in G76 cycle the value of Q must be specified carefully because it is a...

Page 37: ...ycle Command Format G81 X_Y_Z_R_F_ K_ Description X_Y_ hole position data absolute incremental coordinate Z_ the position of point Z at the bottom of the hole absolute programming the distance from point R to point Z at the bottom of the hole incremental programming R_ the position of point R absolute programming the distance from the initial point to point R incremental programming F_ feed speed ...

Page 38: ...ial point X10 Y10 Z 20 hole 5 and setting the new point Z as 20 G80 M02 G82 Drilling Cycle of Dwell at the Bottom of Hole Command Format G82 X_Y_Z_R_P_F_K_ Description X_Y_ hole position data absolute incremental coordinate Z_ the position of point Z at the bottom of the hole absolute programming the distance from point R to point Z at the bottom of the hole incremental programming R_ the position...

Page 39: ...moving to the initial point G17 M03 spindle CW on G90 G99 Setting the coordinates of point R point Z and hole 1 with dwell time as 2s drilling speed as 800 G82 X5 Y5 Z 10 R 5 P2000 F800 X25 hole 2 Y25 hole 3 G98 X5 hole 4 and setting to return to the initial point G80 M05 spindle stop M02 G83 Deep Hole Peck Drilling Cycle Command Format G83 X_Y_Z_R_Q_F_K_ Description X_Y_ hole position data absolu...

Page 40: ...lane where the cutter changes from G00 to Gxx and the previous peck depth G83 is especially for machining deep holes Q Q Q δ δ Point Z Point R Initial point P G98 Q Q Q δ δ Point Z Point R Initial point P G99 X Y X Y δ Set by parameter δ Set by parameter Fig 4 25 G83 Machining Process Process Description 1 The cutter moves to the specified hole position X Y in G00 2 Moves to the specified point R ...

Page 41: ...bottom of the hole absolute programming the distance from point R to point Z at the bottom of the hole incremental programming R_ the position of point R absolute programming the distance from the initial point to point R incremental programming P_ the dwell time at the bottom of the hole in ms with no decimal point F_ feed speed even if the canned cycle is cancelled this modal data still effectiv...

Page 42: ... dwell as 2s tapping speed as 800 G84 X5 Y5 Z 10 R 5 P2000 F800 X25 hole 2 Y25 hole 3 G98 X5 hole 4 and setting to return to the initial point G80 M05 drill stop M02 G85 Drilling Cycle Command Format G85 X_Y_Z_R_F_K_ Description X_Y_ hole position data absolute incremental coordinate Z_ the position of point Z at the bottom of the hole absolute programming the distance from point R to point Z at t...

Page 43: ...0 Z10 moving to the initial point G17 M03 spindle CW on G90 G99 Specifying the coordinates of point R point Z and hole 1 with machining speed as 800 G85 X5 Y5 Z 10 R 5 F800 X25 hole 2 Y25 hole 3 G98 X5 hole 4 and setting to return to the initial point G80 M05 spindle stop M02 G86 High Speed Drilling Cycle Command Format G86 X_Y_Z_R_F_K_ Description X_Y_ hole position data absolute incremental coor...

Page 44: ... Description 1 The cutter moves to the hole position X Y in G00 2 Moves down to the specified point R in G00 3 Moves down to point Z at the bottom of the hole in G01 4 Drill stops rotating 5 Retracts to initial point G98 or point R G99 in G00 6 Drill starts to rotate Programming Example F1200 S600 G90 G00 X0 Y0 Z10 moving to the initial point G17 M03 drill CW on G90 G99 Specifying the coordinates ...

Page 45: ...ell time at the bottom of the hole in ms with no decimal point F_ feed speed even if the canned cycle is cancelled this modal data is still effective in the subsequent machining K_ number of repeats repeated movement and drilling effective under G91 incremental mode Point Z Point R Initial Point G98 P OSS Spindle CW OSS Spindle CW G99 not in use Fig 4 29 G87 Machining Process Tool Offset δ OSS Ori...

Page 46: ...00 G90 G00 X0 Y0 Z10 moving to the initial point G17 M03 spindle CW on G90 G98 Specifying the coordinates of point R point Z and hole 1 with offset as 5 dwell time as 4s and boring speed as 800 G87 X5 Y5 Z 10 R 5 Q5 P4000 F800 X25 hole 2 Y25 hole 3 X5 hole 4 and setting to return to the initial point G80 M05 spindle stop M02 G88 Boring Cycle This command is not supported at the moment Command Form...

Page 47: ...r P X Y X Y Fig 4 31 G88 Machining Process Process Description 1 The cutter moves to the hole position X Y in G00 2 Moves down to the specified point R in G00 3 Moves down to point Z at the bottom of the hole in G01 4 Spindle stop after P 5 Retracts to point R in G01 6 Retracts to initial point G98 or point R G99 in G00 7 Spindle CW Programming Example F1200 S600 G90 G00 X0 Y0 Z10 moving to the in...

Page 48: ... F_ feed speed even if the canned cycle is cancelled this modal data is still effective in the subsequent machining K_ number of repeats repeated movement and drilling effective under G91 incremental mode Z R Initial Point G98 Z R Initial Point G99 P P X Y X Y Fig 4 32 G89 Machining Process Process Description 1 The cutter moves to the hole position X Y in G00 2 Moves down to the specified point R...

Page 49: ...nstructions when the execution of a special canned cycle instruction is finished the standard canned cycle instruction remains effective until canceled For Example G81 Z 20 R 5 F100 K0 specifying the cycle action G34 X10 Y10 I10 J90 K10 drilling10 holes around a circle X100 drilling another hole not influenced by the previous G34 If there is no standard canned cycle instruction when executing a sp...

Page 50: ...91 G81 G99 Z 5 R6 F500 K1 N002 G34 X10 Y10 I20 J45 K8 The machine tool starts drilling from position 1 until to position 8 The included angle is θ between position 1 and positive direction of X axis Drilling actions are specified by G81 in program block N001 1 2 3 4 5 6 7 8 Fig 4 33 Sketch Map of Bolt Hole Circle G35 Holes on Line at Angle Cycle Command Format G35 Xx Yy Id Jθ Kn Description Drills...

Page 51: ...xis K number of holes within 9999 9999 If the number is 0 an error report will be given If the number is greater than 0 hole drilling will be clock wise but if smaller than 0 hole drilling will be counter clockwise G36 drills n evenly spaced holes on a circle with X Y as center and r as radius at the same time the included angle is θ between the first drilling point and X axis and the angle betwee...

Page 52: ... X300 Y 100 I50 P10 J100 K15 Machine tool moves from P first to A then drills 10 holes with hole interval as 50mm in X axis until to B then moves 100mm in Y direction to C and then drills 10 holes until to D in X axis The rest can be done in the same manner until J is reached with 15 10 holes drilled Drilling action is specified by G81 of program block N001 X11 300m m y1 100mm x 50mm Position befo...

Page 53: ... following N01 G90 X0 Y0 Z100 N02 G00 X 50 Y51 963 M03 S800 N03 Z20 M08 F4000 N04 G91 G81 X20 Z 18 F4000 R 17 K4 N05 X10 Y 17 321 N06 X 20 K4 N07 X 10 Y 17 321 N08 X20 K5 N09 X10 Y 17 321 N10 X 20 K6 N11 X10 Y 17 321 N12 X20 K5 N13 X 10 Y 17 321 N14 X 20 K4 N15 X10 Y 17 321 N16 X20 K3 N17 G80 M09 N18 G90 G00 Z100 N19 X0 Y0 M05 N20 M30 G Codes Related with Encoder G916 Writing Axis Configuration Da...

Page 54: ... H_ Description H_ axis No 0 X axis 1 Y axis 2 Z axis that needs to calculate the deceleration distance from the triggering point of cross signal Programming Example G919 H0 Calculate the cross signal deceleration distance of X axis i e the X axis will stop with deceleration after passing through a waiting signal This instruction calculates the distance between triggering point and stop position 4...

Page 55: ...ate override command Command Format G903 Description This instruction sets feedrate override as 100 forcedly whatever the value the user sets It is often used in functions of backing to machine origin and tool measurement to ensure accuracy This non modal command should be used together with G00 G01 G02 or G03 Programming Example G905 G903 G01 X10 Y20 Z0 F600 F feedrate is set as 600 mm min forced...

Page 56: ...1 P_ wait time in milliseconds This instruction is used for synchronization That is to say the following operation will go on only after various parameters are synchronized G906 should be executed for synchronization before using the internal system parameters or instructions concerning modifying system parameters and status such as G92 M902 The extended function of G906 is overtime check for a sp...

Page 57: ...1072 limit off M802 P131073 limit on M802 P458752 clear external offset After modifying G codes of fixed tool measurement use this command to clear external offset after measurement M901 Directly Control Output Port Command Format PLC PLCADDRESS LEVEL_ Description PLC PLCADDRESS PLC address of port PLC PLCADDRESS or PLC Integer Expression indicating PLC internal address LEVEL_ port value 0 1 Progr...

Page 58: ...nment Expression An assignment expression begins with an equal mark followed by an arithmetic expression which is constituted by various operators functions variables brackets etc The operators available now are divided into the following seven classes in order of priority 1 Bracket 2 Function 3 Plus sign Minus sign NOT 4 Multiplication Division 5 Addition Subtraction 6 Equal Not equal Greater tha...

Page 59: ...ree 1 4 log6 G01 X2 Y Assign 4 log6 to Y 4 6 Comments in Program A comment in a program is started with a single quotation mark end of line pattern content behind the single quotation mark does not work until the end of line For Example G00 X3 Y5 rapid traverse to X3 Y5 The content behind the single quotation mark can only act as a comment and will not be executed when the program is run 4 7 Demon...

Page 60: ...rd in Z axis N13 G00 Z57 upward 57mm in Z axis at rapid traverse rate N14 G49 X 80 Y 20 M05 M09 M30 length compensation cancel 80mm and 20mm in the reverse direction of X axis and Y axis respectively spindle stop coolant off end of program and return to the program header Example 2 Programming for the Workpiece Shown in Fig 4 40 R25 R25 20 15 135 X Y 50 Fig 4 40 Workpiece Machining Sketch N01 G92 ...

Page 61: ... to X60 Y120 radius 20mm N05 G01 X40 linear interpolation 40mm in the positive direction of X axis N06 Y 50 linear interpolation 50mm in the reverse direction of Y axis N07 X40 linear interpolation 40mm in the positive direction of X axis N08 Y50 linear interpolation 50mm in the positive direction of Y axis N09 X70 linear interpolation 70mm in the positive direction of X axis N10 Y 40 linear inter...

Page 62: ...ter length compensation on N04 G74 X50 Y0 Z 28 R 5 P1000 F1000 L2 CCW tapping at 1000mm min tapping depth 28mm dwell for 1s at the bottom of the hole executed twice N05 G00 X 50 Y50 rapid traverse to X15 Y65 and start tapping N06 G00 X50 rapid traverse to X65 Y65 and start tapping N07 G80 hole machining cancel N08 G00 X 65 Y 65 rapid traverse to X0 Y0 N09 G49 M05 M09 M30 length compensation cancel...

Page 63: ...ear interpolation to X0 Y10 N150 G00 Y 10 rapid traverse to X0 Y0 N160 M17 subprogram return Y X Z X 60 60 10 2 10 Z Y X X R 14 14 2 0 0 Fig 4 43 Workpiece Machining Sketch Fig 4 44 Workpiece Machining Sketch Example 6 Programming for the Workpiece shown in Fig 4 44 N01 G92 X10 Y0 Z0 workpiece coordinates system establishment N02 G91 G00 X 10 M03 S1000 M08 Incremental coordinates adopted spindle C...

Page 64: ...end of program and return to the program header 4 8 G Command Appendix The appendix of G codes is as shown below G code Function G code Function G00 Rapid positioning G65 Subprogram call G01 Linear interpolation G68 Coordinate system rotation G02 Circular interpolation clockwise G69 Cancel coordinate system rotation G03 Circular interpolation counterclockwise G70 Input in inch G04 Dwell G71 Input ...

Page 65: ...inate programming G44 Tool length negative compensation G91 Incremental coordinate programming G49 Cancel tool length compensation G92 Set WCS according to tool position G50 Scaling off G98 Return to initial point G51 Scaling on G99 Return to point R G50 1 Mirror image off G903 100 feedrate override command G51 1 Mirror image on G904 Conditional movement command G53 Machine coordinate system G905 ...

Page 66: ...mand but also convenient to write programs directly in the program edit operation interface Example 1 Use named parameters to compile a subprogram of tool coolant and tool change as follows O1000 subprogram of tool coolant and tool change M901 H COOLANT_START_PORT P1 G04 P10 IF ENABLE_CTP G53 G00 G90 X CTP_POS X Y CTP_POS Y Z CTP_POSZ move to the position of tool change G00 G90 Z10 or lift the cut...

Page 67: ...MACHPOS Y Mechanical coordinate of current point Y axis DOUBLE Mechanical coordinate of current point Y axis 03 CURMACHPOS Z Mechanical coordinate of current point Z axis DOUBLE Mechanical coordinate of current point Z axis 04 CURWORKPOS X Workpiece coordinate of current point X axis DOUBLE Workpiece coordinate of current point X axis 05 CURWORKPOS Y Workpiece coordinate of current point Y axis DO...

Page 68: ...tool presetter stands Z axis in fixed tool measurement 19 ENABLE_CTP Back to fixed point valid BOOL Back to fixed point after the program ends normally 20 CTP_POS X The position of fixed point X axis DOUBLE Mechanical coordinate of fixed point X axis 21 CTP_POS Y The position of fixed point Y axis DOUBLE Mechanical coordinate of fixed point Y axis 22 CTP_POS Z The position of fixed point Z axis DO...

Page 69: ...eed of Z axis in fine positioning stage DOUBLE The feed speed of Z axis in fine positioning stage when backing to the reference point 38 BKREF_F2_DIR X The direction of X axis at the fine positioning stage INT The moving direction of X axis in fine positioning stage when backing to the reference point 39 BKREF_F2_DIR Y The direction of Y axis at the fine positioning stage INT The moving direction ...

Page 70: ...the transom Y axis only used in the double drive configuration 48 FIXEDCYCLE_BA CK G73_G83 retract amount DOUBLE The retract amount after each peck in high speed deep hole chip breaking drilling cycle 49 FIXEDCYCLE_OS S The direction of G76_G87 oriented spindle stop INT Orientation is only effective within X Y plane G17 0 1 G17 X X 50 FIXEDCALI_REC Z axis workpiece coordinate in fixed tool measure...

Page 71: ...command M 0 99 plus 200 is regarded as the corresponding subprogram while G code 0 99 plus 600 is regarded as the corresponding subprogram Program Example for Custom and Extended M Command Conditional statement if can be used to set the actions like gear shift during spindle rotating O202 M17 spindle CW only one direction supported O203 M901 H2 P1 G04 P5 M17 spindle CCW only one direction supporte...

Page 72: ...ute Arc Plot AA X Y qc qd AR Relative Arc Plot AR X Y qc qd CI Circle CI r qd EA Edge Absolute Rectangle EA X Y ER Edge Relative Rectangle ER X Y EW Edge Wedge EW r q1 qc qd Besides PA PR PU PD also support three dimensional instructions Notes PLT format has strong expansibility and different products have different instructions If you meet unidentifiable instructions please contact us as soon as ...

Page 73: ...t At present the system supports Entities as below LINE LWPOLYLINE ARC CIRCLE ELLIPSE SPLINE Prompt Save the figure drawn with Auto CAD as DXF format and then perform Open and Load and Simulation Mode in our system At this time the figure shown in the track window is what you have drawn with Auto CAD ...

Page 74: ...RMB 21 00 ...

Reviews: