📄 main.lyx
字号:
\layout StandardFeed increment in G73, G83 canned cycles\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardR\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardArc radius or canned cycle plane\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardS\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardSpindle speed\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardT\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardTool selection\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardU\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardU axis of machine\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardV\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardV axis of machine\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardW\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardW axis of machine\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardX\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardX axis of machine\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardY\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardY axis of machine\end_inset </cell></row><row topline="true" bottomline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardZ\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardZ axis of machine\end_inset </cell></row></lyxtabular>\end_inset \end_inset \layout SubsectionNumber\begin_inset LatexCommand \label{sub:Number}\end_inset \layout StandardThe following rules are used for (explicit) numbers. In these rules a digit is a single character between 0 and 9.\layout ItemizeA number consists of (1) an optional plus or minus sign, followed by (2) zero to many digits, followed, possibly, by (3) one decimal point, followed by (4) zero to many digits - provided that there is at least one digit somewhere in the number.\layout ItemizeThere are two kinds of numbers: integers and decimals. An integer does not have a decimal point in it; a decimal does.\layout ItemizeNumbers may have any number of digits, subject to the limitation on line length. Only about seventeen significant figures will be retained, however (enough for all known applications).\layout ItemizeA non-zero number with no sign as the first character is assumed to be positive.\layout StandardNotice that initial (before the decimal point and the first non-zero digit) and trailing (after the decimal point and the last non-zero digit) zeros are allowed but not required. A number written with initial or trailing zeros will have the same value when it is read as if the extra zeros were not there.\layout StandardNumbers used for specific purposes in RS274/NGC are often restricted to some finite set of values or some to some range of values. In many uses, decimal numbers must be close to integers; this includes the values of indexes (for parameters and carousel slot numbers, for example), M codes, and G codes multiplied by ten. A decimal number which is supposed be close to an integer is considered close enough if it is within 0.0001 of an integer. \layout SubsectionNumbered Parameters\begin_inset LatexCommand \label{sub:Numbered-Parameters}\end_inset \layout StandardA numbered parameter is the pound character \family typewriter #\family default followed by an integer between 1 and 5399. The parameter is referred to by this integer, and its value is whatever number is stored in the parameter. \layout StandardA value is stored in a parameter with the = operator; for example "\family typewriter #3 = 15\family default " means "set parameter 3 to 15." A parameter setting does not take effect until after all parameter values on the same line have been found. For example, if parameter 3 has been previously set to 15 and the line \begin_inset Quotes eld\end_inset \family typewriter #3=6 G1 x#3\family default \begin_inset Quotes erd\end_inset is interpreted, a straight move to a point where x equals 15 will occur and the value of parameter 3 will be 6. \layout StandardThe \family typewriter #\family default character takes precedence over other operations, so that, for example, \begin_inset Quotes eld\end_inset \family typewriter #1+2\family default \begin_inset Quotes erd\end_inset means the number found by adding 2 to the value of parameter 1, not the value found in parameter 3. Of course, \family typewriter #[1+2]\family default does mean the value found in parameter 3. The \family typewriter #\family default character may be repeated; for example \family typewriter ##2\family default means the value of the parameter whose index is the (integer) value of parameter 2. \layout SubsectionNamed Parameters\begin_inset LatexCommand \label{sub:Named-Parameters}\end_inset \layout StandardNamed parameters work like numbered parameters but are easier to read. All parameter names are converted to lower case and have spaces and tabs removed. Named parameters must be enclosed with \family typewriter < >\family default marks.\layout Standard\family typewriter #<named parameter here>\family default is a local named parameter. By default, a named parameter is local to the scope in which it is assigned. You can't access a local parameter outside of its subroutine - this is so that two subroutines can use the same parameter names without fear of one subroutine overwriting the values in another.\layout Standard\family typewriter #<_global named parameter here>\family default is a global named parameter. They are accessible from within called subroutines and may set values within subroutines that are accessible to the caller. As far as scope is concerned, they act just like regular numeric parameters. They are not stored in files. \layout StandardExamples: \layout ItemizeDeclaration of named global variable\layout Standard\family typewriter #<_endmill_dia> = 0.049\family default \layout ItemizeReference to previously declared global varaiable\layout Standard\family typewriter #<_endmill_rad> = [#<_endmill_dia>/2.0]\family default \layout ItemizeMixed literal and named params\layout Standard\family typewriter o100 call [0.0] [0.0] [#<_inside_cutout>-#<_endmill_dia>] [#<_Zcut>] [#<_feedrate>]\layout StandardNotes: \layout StandardThe global parameters _a, _b, _c, ... _z have been reserved for special use. In the future, they may provide access to the last Aword, Bword, Cword, etc. \layout SubsectionExpressions\begin_inset LatexCommand \label{sub:Expressions}\end_inset \layout StandardAn expression is a set of characters starting with a left bracket \family typewriter [\family default and ending with a balancing right bracket \family typewriter ]\family default . In between the brackets are numbers, parameter values, mathematical operations, and other expressions. An expression is evaluated to produce a number. The expressions on a line are evaluated when the line is read, before anything on the line is executed. An example of an expression is \family typewriter [1 + acos[0] - [#3 ** [4.0/2]]]\family default .\layout SubsectionBinary Operators\begin_inset LatexCommand \label{sub:Binary-Operators}\end_inset \layout StandardBinary operators only appear inside expressions. There are four basic mathematical operations: addition (\family typewriter +\family default ), subtraction (\family typewriter -\family default ), multiplication (\family typewriter *\family default ), and division (\family typewriter /\family default ). There are three logical operations: non-exclusive or (\family typewriter OR\family default ), exclusive or (\family typewriter XOR\family default ), and logical and (\family typewriter AND\family default ). The eighth operation is the modulus operation (\family typewriter MOD\family default ). The ninth operation is the \begin_inset Quotes eld\end_inset power\begin_inset Quotes erd\end_inset operation (\family typewriter **\family default ) of raising the number on the left of the operation to the power on the right. The relational operators are equality (\family typewriter EQ\family default ), inequality (\family typewriter NE\family default ), strictly greater than (\family typewriter GT\family default ), greater than or equal to (\family typewriter GE\family default ), strictly less than (\family typewriter LT\family default ), and less than or equal to (\family typewriter LE\family default ).\layout StandardThe binary operations are divided into several groups according to their precedence. (see table \begin_inset LatexCommand \ref{cap:Operator-Precedence}\end_inset ) If operations in different precedence groups are strung together (for example in the expression \family typewriter [2.0 / 3 * 1.5 - 5.5 / 11.0]\family default ), operations in a higher group are to be performed before operations in a lower group. If an expression contains more than one operation from the same group (such as the first \family typewriter /\family default and \family typewriter *\family default in the example), the operation on the left is performed first. Thus, the example is equivalent to: \family typewriter [[[2.0 / 3] * 1.5] - [5.5 / 11.0]]\family default , which is equivalent to to \family typewriter [1.0 - 0.5]\family default , which is \family typewriter 0.5\family default .\layout StandardThe logical operations and modulus are to be performed on any real numbers, not just on integers. The number zero is equivalent to logical false, and any non-zero number is equivalent to logical true. \layout Standard\begin_inset Float tableplacement Hwide falsecollapsed false\layout CaptionOperator Precedence\begin_inset LatexCommand \label{cap:Operator-Precedence}\end_inset \begin_inset LatexCommand \index{operator precedence}\end_inset \layout Standard\align center \begin_inset Tabular<lyxtabular version="3" rows="6" columns="2"><features><column alignment="center" valignment="top" leftline="true" width="0"><column alignment="center" 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 StandardOperators\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardPrecedence\end_inset </cell></row><row topline="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 Standard\emph on highest\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout Standard* / MOD\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout Standard\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout Standard+ -\end_inset
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -