📄 main.lyx
字号:
</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 StandardEQ NE GT GE LT LE\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" bottomline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardAND OR XOR\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout Standard\emph on lowest\end_inset </cell></row></lyxtabular>\end_inset \end_inset \layout SubsectionFunctions\begin_inset LatexCommand \label{sub:Unary-Operation-Value}\end_inset \layout StandardA function is either \begin_inset Quotes eld\end_inset \family typewriter ATAN\family default \begin_inset Quotes erd\end_inset followed by one expression divided by another expression (for example \begin_inset Quotes eld\end_inset \family typewriter ATAN[2]/[1+3]\family default \begin_inset Quotes erd\end_inset ) or any other function name followed by an expression (for example \begin_inset Quotes eld\end_inset \family typewriter SIN[90]\family default \begin_inset Quotes erd\end_inset ). The available functions are shown in table \begin_inset LatexCommand \ref{cap:Functions}\end_inset . Arguments to unary operations which take angle measures (\family typewriter COS\family default , \family typewriter SIN\family default , and \family typewriter TAN\family default ) are in degrees. Values returned by unary operations which return angle measures (\family typewriter ACOS\family default , \family typewriter ASIN\family default , and \family typewriter ATAN\family default ) are also in degrees.\layout StandardThe \family typewriter FIX\family default operation rounds towards the left (less positive or more negative) on a number line, so that \family typewriter FIX[2.8] =2\family default and \family typewriter FIX[-2.8] = -3\family default , for example. The \family typewriter FUP\family default operation rounds towards the right (more positive or less negative) on a number line; \family typewriter FUP[2.8] = 3\family default and \family typewriter FUP[-2.8] = -2\family default , for example. \layout Standard\begin_inset Float tableplacement Hwide falsecollapsed false\layout CaptionFunctions\begin_inset LatexCommand \label{cap:Functions}\end_inset \layout Standard\align center \begin_inset Tabular<lyxtabular version="3" rows="14" 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 StandardFunction Name\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardFunction result\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardATAN[Y]/[X]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardFour quadrant tangent\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardABS[arg]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardAbsolute value\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardACOS[arg]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardInverse cosine\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardASIN[arg]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardInverse sine\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardCOS[arg]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardCosine\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardEXP[arg]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout Standarde raised to the given power\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardFIX[arg]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardRound down to integer\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardFUP[arg]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardRound up to integer\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardROUND[arg]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardRound to nearest integer\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardLN[arg]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardBase-e logarithm\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardSIN[arg]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardSine\end_inset </cell></row><row topline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardSQRT[arg]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardSquare Root\end_inset </cell></row><row topline="true" bottomline="true"><cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">\begin_inset Text\layout StandardTAN[arg]\end_inset </cell><cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\begin_inset Text\layout StandardTangent\end_inset </cell></row></lyxtabular>\end_inset \end_inset \layout SectionComments\begin_inset LatexCommand \index{G Code Comments}\end_inset \begin_inset LatexCommand \label{sec:Comments}\end_inset \layout StandardPrintable characters and white space inside parentheses is a comment. A left parenthesis always starts a comment. The comment ends at the first right parenthesis found thereafter. Once a left parenthesis is placed on a line, a matching right parenthesis must appear before the end of the line. Comments may not be nested; it is an error if a left parenthesis is found after the start of a comment and before the end of the comment. Here is an example of a line containing a comment: \family typewriter \begin_inset Quotes eld\end_inset G80 M5 (stop motion)\family default \begin_inset Quotes erd\end_inset . Comments do not cause a machining center to do anything.\layout SectionMessages\begin_inset LatexCommand \index{G Code Messages}\end_inset \begin_inset LatexCommand \label{sub:Messages}\end_inset \layout StandardA comment contains a message if \begin_inset Quotes eld\end_inset \family typewriter MSG,\family default \begin_inset Quotes erd\end_inset appears after the left parenthesis and before any other printing characters. Variants of \begin_inset Quotes eld\end_inset \family typewriter MSG,\family default \begin_inset Quotes erd\end_inset which include white space and lower case characters are allowed. The rest of the characters before the right parenthesis are considered to be a message. Messages should be displayed on the message display device. Comments not containing messages need not be displayed there. \layout SectionProbe Logging\begin_inset LatexCommand \index{Probe Logging}\end_inset \begin_inset LatexCommand \label{sub:Probe-Logging}\end_inset \layout StandardA comment can also be used to specify a file for the results of G38.2 probing. See section \begin_inset LatexCommand \ref{sub:G38.2:-Straight-Probe}\end_inset .\layout StandardOften, general logging is more useful than probe logging. Using general logging, the format of the output data can be controlled.\layout SectionDebugging Messages\begin_inset LatexCommand \index{G Code Debugging Messages}\end_inset \begin_inset LatexCommand \label{sub:Debugging-messages}\end_inset \layout StandardComments that look like: \family typewriter (debug, rest of comment)\family default are the same as comments like \family typewriter (msg, rest of comment)\family default with the addition of special handling for parameters.\layout StandardComments that look like: \family typewriter (print, rest of comment)\family default are output to stderr with special handling for parameters.\layout SectionParameters in special comments\layout StandardIn the DEBUG, PRINT and LOG comments, the values of parameters in the message are expanded.\layout StandardFor example: to print a named global variable to stderr (the default console window) add a line to your gcode like...\layout LyX-Code(print,endmill dia = #<_endmill_dia>)\layout StandardInside the above types of comments, sequences like \family typewriter #123\family default are replaced by the value of the parameter 123. Sequences like \family typewriter #<named parameter>\family default are replaced by the value of the named parameter. Remember that named parameters will have whitespace removed from them. So, \family typewriter #<named parameter>\family default is the same as \family typewriter #<namedparameter>\family default . \layout SectionRepeated Items\layout StandardA line may have any number of G words, but two G words from the same modal group (see Section \begin_inset LatexCommand \ref{sec:Modal-Groups}\end_inset ) may not appear on the same line.\layout StandardA line may have zero to four M words.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -