|
From: <ray...@us...> - 2003-07-20 13:40:51
|
Update of /cvsroot/emc/documents/lyx In directory sc8-pr-cvs1:/tmp/cvs-serv26897 Modified Files: User_Gcode_Basics.lyx Log Message: added commands Index: User_Gcode_Basics.lyx =================================================================== RCS file: /cvsroot/emc/documents/lyx/User_Gcode_Basics.lyx,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** User_Gcode_Basics.lyx 19 Jul 2003 21:37:52 -0000 1.3 --- User_Gcode_Basics.lyx 20 Jul 2003 13:40:48 -0000 1.4 *************** *** 262,268 **** value, an expression, or a unary operation value. In this chapter all examples will use explicit numbers. - Expressions and unary operations are treated in the computation chapter. - The use of parameter values or variables are described in detail in the - Using Variables chapter. \layout Standard --- 262,265 ---- *************** *** 320,323 **** --- 317,326 ---- is considered close enough if it is within 0.0001 of an integer. + \layout Standard + + Two cases of values are treated in separate chapters. + These are the use of expressions and unary operations and the use of parameter + values or variables. + \layout Section *************** *** 1841,1848 **** \layout Standard Tool diameter compensation (g40, g41, g42) and tool length compensation ! (g43, g49) are covered in a separate page. ! Canned milling cycles (g80 - g89, g98) are covered in their own page. ! Coordinate systems and how to use them is also covered in a separate page. (g10, G53 - G59.3, G92, G92.2) \layout Section --- 1844,1859 ---- \layout Standard + Some of these command sets are considered in their own chapters. + These include; + \layout Itemize + Tool diameter compensation (g40, g41, g42) and tool length compensation ! (g43, g49) ! \layout Itemize ! ! Canned milling cycles (g80 - g89, g98) ! \layout Itemize ! ! Coordinate systems and how to use them is also covered in a separate page. (g10, G53 - G59.3, G92, G92.2) \layout Section *************** *** 1907,1911 **** \layout Standard ! I like to put a G0 Z2.0 (Z value depending on clamp height) towards the beginning of my code, before making any X or Y moves. \layout Standard --- 1918,1922 ---- \layout Standard ! I like to put a G0 Z2.0 (Z value depending on clamp height) toward the beginning of my code, before making any X or Y moves. \layout Standard *************** *** 2578,2581 **** --- 2589,2743 ---- \align center Table 5 M Word List + \layout Quotation + + 3.6.1 Program Stopping and Ending - M0, M1, M2, M30, M60 + \layout Quotation + + To stop a running program temporarily (regardless of the setting of the + optional stop switch), program M0. + + \layout Quotation + + To stop a running program temporarily (but only if the optional stop switch + is on), program M1. + + \layout Quotation + + It is OK to program M0 and M1 in MDI mode, but the effect will probably + not be noticeable, because normal behavior in MDI mode is to stop after + each line of input, anyway. + + \layout Quotation + + To exchange pallet shuttles and then stop a running program temporarily + (regardless of the setting of the optional stop switch), program M60. + + \layout Quotation + + If a program is stopped by an M0, M1, or M60, pressing the cycle start button + will restart the program at the following line. + + \layout Quotation + + To end a program, program M2. + To exchange pallet shuttles and then end a program, program M30. + Both of these commands have the following effects. + + \layout Quotation + + 1. + Axis offsets are set to zero (like G92.2) and origin offsets are set to + the default (like G54). + 2. + Selected plane is set to CANON_PLANE_XY (like G17). + 3. + Distance mode is set to MODE_ABSOLUTE (like G90). + 4. + Feed rate mode is set to UNITS_PER_MINUTE (like G94). + 5. + Feed and speed overrides are set to ON (like M48). + 6. + Cutter compensation is turned off (like G40). + 7. + The spindle is stopped (like M5). + 8. + The current motion mode is set to G_1 (like G1). + 9. + Coolant is turned off (like M9). + + \layout Quotation + + No more lines of code in an RS274/NGC file will be executed after the M2 + or M30 command is executed. + Pressing cycle start will start the program back at the beginning of the + file. + + \layout Quotation + + 3.6.2 Spindle Control - M3, M4, M5 + \layout Quotation + + To start the spindle turning clockwise at the currently programmed speed, + program M3. + + \layout Quotation + + To start the spindle turning counterclockwise at the currently programmed + speed, program M4. + + \layout Quotation + + To stop the spindle from turning, program M5. + + \layout Quotation + + It is OK to use M3 or M4 if the spindle speed is set to zero. + If this is done (or if the speed override switch is enabled and set to + zero), the spindle will not start turning. + If, later, the spindle speed is set above zero (or the override switch + is turned up), the spindle will start turning. + It is OK to use M3 or M4 when the spindle is already turning or to use + M5 when the spindle is already stopped. + + \layout Quotation + + 3.6.3 Tool Change - M6 + \layout Quotation + + To change a tool in the spindle from the tool currently in the spindle to + the tool most recently selected (using a T word - see Section 3.7.3), program + M6. + When the tool change is complete: * The spindle will be stopped. + * The tool that was selected (by a T word on the same line or on any line + after the previous tool change) will be in the spindle. + The T number is an integer giving the changer slot of the tool (not its + id). + * If the selected tool was not in the spindle before the tool change, the + tool that was in the spindle (if there was one) will be in its changer + slot. + * The coordinate axes will be stopped in the same absolute position they + were in before the tool change (but the spindle may be re-oriented). + * No other changes will be made. + For example, coolant will continue to flow during the tool change unless + it has been turned off by an M9. + The tool change may include axis motion while it is in progress. + It is OK (but not useful) to program a change to the tool already in the + spindle. + It is OK if there is no tool in the selected slot; in that case, the spindle + will be empty after the tool change. + If slot zero was last selected, there will definitely be no tool in the + spindle after a tool change. + + \layout Quotation + + 3.6.4 Coolant Control - M7, M8, M9 + \layout Quotation + + To turn mist coolant on, program M7. + + \layout Quotation + + To turn flood coolant on, program M8. + + \layout Quotation + + To turn all coolant off, program M9. + + \layout Quotation + + It is always OK to use any of these commands, regardless of what coolant + is on or off. + + \layout Quotation + + 3.6.5 Override Control - M48 and M49 + \layout Quotation + + To enable the speed and feed override switches, program M48. + To disable both switches, program M49. + See Section 2.2.1 for more details. + It is OK to enable or disable the switches when they are already enabled + or disabled. + \layout Subsection* *************** *** 2909,2920 **** Table 6 G and M Code Modal Groups \layout Standard ! \align center There is some question about the reasons why some codes are included in the modal group that surrounds them. But most of the modal groupings make sense in that only one state can be active at a time. - \layout Comment - - M words described here. \layout Section --- 3071,3079 ---- Table 6 G and M Code Modal Groups \layout Standard ! There is some question about the reasons why some codes are included in the modal group that surrounds them. But most of the modal groupings make sense in that only one state can be active at a time. \layout Section *************** *** 2927,2930 **** --- 3086,3221 ---- \emph default the order in which they will be executed. + Items are executed in the order shown below if they occur on the same line. + + \layout Enumerate + + comment (includes message). + \layout Enumerate + + set feed rate mode (G93, G94 - inverse time or per minute). + \layout Enumerate + + set feed rate (F). + \layout Enumerate + + set spindle speed (S). + + \layout Enumerate + + select tool (T). + + \layout Enumerate + + change tool (M6). + + \layout Enumerate + + spindle on or off (M3, M4, M5). + + \layout Enumerate + + coolant on or off (M7, M8, M9). + + \layout Enumerate + + enable or disable overrides (M48, M49). + + \layout Enumerate + + 10. + dwell (G4). + + \layout Enumerate + + set active plane (G17, G18, G19). + + \layout Enumerate + + set length units (G20, G21). + + \layout Enumerate + + cutter radius compensation on or off (G40, G41, G42) + \layout Enumerate + + cutter length compensation on or off (G43, G49) + \layout Enumerate + + coordinate system selection (G54, G55, G56, G57, G58, G59, G59.1, G59.2, G59.3). + + \layout Enumerate + + set path control mode (G61, G61.1, G64) + \layout Enumerate + + set distance mode (G90, G91). + + \layout Enumerate + + set retract mode (G98, G99). + + \layout Enumerate + + home (G28, G30) or change coordinate system data (G10) or set axis offsets + (G92, G92.1, G92.2, G94). + + \layout Enumerate + + perform motion (G0 to G3, G80 to G89), as modified (possibly) by G53. + + \layout Enumerate + + stop (M0, M1, M2, M30, M60). + \layout Standard + + The order that will often surprise the beginning part program writer is + that dwell is evaluated before any motion. + Putting a dwell at the end of a block of code produces a dwell before the + motion commands in the line are executed rather than after they are executed. + If you want a dwell at the bottom of a z move to clean up a drill or mill + you will need to program it on the next line along with the retract move. + + \layout Section + + Reordering a Block of Code + \layout Standard + + The following quotation is taken from the RS274NGC writeup by Tom Kramer. + \layout Quotation + + The three types of item whose order may vary on a line (as given at the + beginning of this section) are word, parameter setting, and comment. + Imagine that these three types of item are divided into three groups by + type. + + \layout Quotation + + The first group (the words) may be reordered in any way without changing + the meaning of the line. + + \layout Quotation + + If the second group (the parameter settings) is reordered, there will be + no change in the meaning of the line unless the same parameter is set more + than once. + In this case, only the last setting of the parameter will take effect. + For example, after the line "#3=15 #3=6" has been interpreted, the value + of parameter 3 will be 6. + If the order is reversed to "#3=6 #3=15" and the line is interpreted, the + value of parameter 3 will be 15. + + \layout Quotation + + If the third group (the comments) contains more than one comment and is + reordered, only the last comment will be used. + + \layout Quotation + + If each group is kept in order or reordered without changing the meaning + of the line, then the three groups may be interleaved in any way without + changing the meaning of the line. + For example, the line "g40 g1 #3=15 (foo) #4=-7.0" has five items and means + exactly the same thing in any of the 120 possible orders (such as "#4=-7.0 + g1 #3=15 g40 (foo)") for the five items. \the_end |