📄 main.lyx
字号:
Two M words from the same modal group may not appear on the same line.\layout StandardFor all other legal letters, a line may have only one word beginning with that letter.\layout StandardIf a parameter setting of the same parameter is repeated on a line, \begin_inset Quotes eld\end_inset \family typewriter #3=15 #3=6\family default \begin_inset Quotes erd\end_inset , for example, only the last setting will take effect. It is silly, but not illegal, to set the same parameter twice on the same line.\layout StandardIf more than one comment appears on a line, only the last one will be used; each of the other comments will be read and its format will be checked, but it will be ignored thereafter. It is expected that putting more than one comment on a line will be very rare. \layout SectionItem order\layout StandardThe 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 StandardThe first group (the words) may be reordered in any way without changing the meaning of the line.\layout StandardIf 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 \begin_inset Quotes eld\end_inset \family typewriter #3=15 #3=6\family default \begin_inset Quotes erd\end_inset has been interpreted, the value of parameter 3 will be 6. If the order is reversed to \begin_inset Quotes eld\end_inset \family typewriter #3=6 #3=15\family default \begin_inset Quotes erd\end_inset and the line is interpreted, the value of parameter 3 will be 15.\layout StandardIf the third group (the comments) contains more than one comment and is reordered, only the last comment will be used.\layout StandardIf 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 \begin_inset Quotes eld\end_inset \family typewriter g40 g1 #3=15 (foo) #4=-7.0\family default \begin_inset Quotes erd\end_inset has five items and means exactly the same thing in any of the 120 possible orders (such as \begin_inset Quotes eld\end_inset \family typewriter #4=-7.0 g1 #3=15 g40 (foo)\family default \begin_inset Quotes erd\end_inset ) for the five items. \layout SectionCommands and Machine Modes\layout StandardIn RS274/NGC, many commands cause a machining center to change from one mode to another, and the mode stays active until some other command changes it implicitly or explicitly. Such commands are called \begin_inset Quotes eld\end_inset modal\begin_inset Quotes erd\end_inset . For example, if coolant is turned on, it stays on until it is explicitly turned off. The G codes for motion are also modal. If a G1 (straight move) command is given on one line, for example, it will be executed again on the next line if one or more axis words is available on the line, unless an explicit command is given on that next line using the axis words or cancelling motion.\layout Standard\begin_inset Quotes eld\end_inset Non-modal\begin_inset Quotes erd\end_inset codes have effect only on the lines on which they occur. For example, G4 (dwell) is non-modal. \layout SectionModal Groups\begin_inset LatexCommand \index{Modal Groups}\end_inset \begin_inset LatexCommand \label{sec:Modal-Groups}\end_inset \layout StandardModal commands are arranged in sets called \begin_inset Quotes eld\end_inset modal groups\begin_inset Quotes erd\end_inset , and only one member of a modal group may be in force at any given time. In general, a modal group contains commands for which it is logically impossible for two members to be in effect at the same time - like measure in inches vs. measure in millimeters. A machining center may be in many modes at the same time, with one mode from each modal group being in effect. The modal groups are shown in Table \begin_inset LatexCommand \ref{cap:Modal-Groups}\end_inset .\layout Standard\begin_inset Float tableplacement Hwide falsecollapsed false\layout CaptionModal Groups\begin_inset LatexCommand \label{cap:Modal-Groups}\end_inset \layout Standard\align center \begin_inset Tabular<lyxtabular version="3" rows="22" columns="2"><features><column alignment="left" valignment="top" leftline="true" width="0"><column alignment="left" valignment="top" leftline="true" rightline="true" width="0"><row topline="true" bottomline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardModal Group Meaning\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardMember Words\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardMotion (\begin_inset Quotes eld\end_inset Group 1\begin_inset Quotes erd\end_inset )\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG0 G1 G2 G3 G33 G38.2 G73 G80 G81\end_inset </cell></row><row><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout Standard\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG82 G83 G84 G85 G86 G87 G88 G89\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardPlane selection\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG17, G18, G19\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardDistance Mode\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG90, G91\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardFeed Rate Mode\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG93, G94\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardUnits\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG20, G21\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardCutter Radius Compensation\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG40, G41, G42, G41.1, G42.1\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardTool Length Offset\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG43, G43.1, G49\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardReturn Mode in Canned Cycles\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG98, G99\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardCoordinate System Selection\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG54, G55, G56, G57, G58\end_inset </cell></row><row><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout Standard\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG59, G59.1, G59.2, G59.3\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardStopping\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardM0, M1, M2, M30, M60\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardTool Change\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardM6 Tn\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardSpindle Turning\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardM3, M4, M5\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardCoolant\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardM7, M8, M9. Special case:\end_inset </cell></row><row><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout Standard\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardM7 and M8 may be active at the same time\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardOverride Switches\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardM48, M49\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardFlow Control\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardO-\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardNon-modal codes (\begin_inset Quotes eld\end_inset Group 0\begin_inset Quotes erd\end_inset )\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG4, G10 G28, G30, G53\end_inset </cell></row><row><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout Standard\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardG92, G92.1, G92.2, G92.3\end_inset </cell></row><row bottomline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout Standard\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardM100 to M199\end_inset </cell></row></lyxtabular>\end_inset \end_inset \layout StandardFor several modal groups, when a machining center is ready to accept commands, one member of the group must be in effect. There are default settings for these modal groups. When the machining center is turned on or otherwise re-initialized, the default values are automatically in effect.\layout StandardGroup 1, the first group on the table, is a group of G codes for motion. One of these is always in effect. That one is called the current motion mode.\layout StandardIt is an error to put a G-code from group 1 and a G-code from group 0 on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -