📄 tkemc.lyx
字号:
#LyX 1.3 created this file. For more info see http://www.lyx.org/\lyxformat 221\textclass book\begin_preamble\usepackage[plainpages=false,pdfpagelabels,colorlinks=true,linkcolor=blue]{hyperref}\end_preamble\language english\inputencoding default\fontscheme bookman\graphics default\float_placement !!h\paperfontsize 10\spacing single \papersize Custom\paperpackage a4\use_geometry 1\use_amsmath 0\use_natbib 0\use_numerical_citations 0\paperorientation portrait\paperwidth 8.5in\paperheight 11in\leftmargin 1.2in\topmargin 1in\rightmargin 0.6in\bottommargin 0.6in\secnumdepth 5\tocdepth 5\paragraph_separation skip\defskip smallskip\quotes_language english\quotes_times 2\papercolumns 1\papersides 2\paperpagestyle default\layout ChapterTkEMC\layout SectionIntroduction\layout StandardTkEMC\begin_inset LatexCommand \index{tkemc}\end_inset is one of the most traditional graphical front-ends for EMC. It is written in Tcl\begin_inset LatexCommand \index{Tcl}\end_inset and uses the Tk\begin_inset LatexCommand \index{Tk}\end_inset toolkit for the display. Being written in TCL makes it very portable (runs on a multitude of platforms). A separate backplot window can be displayed as shown in Figure(\begin_inset LatexCommand \ref{cap:TkEMC-Window}\end_inset ).\layout Standard\begin_inset Float figurewide falsecollapsed false\layout CaptionTkEMC Window\begin_inset LatexCommand \label{cap:TkEMC-Window}\end_inset \layout Standard\align center \begin_inset Graphics filename ../common/tkemc.png lyxscale 80 width 80page%\end_inset \end_inset \layout SectionGetting Started\layout StandardTo select TkEMC as the front-end for EMC2, edit the .ini file. In the section \family typewriter [DISPLAY]\family default change the \family typewriter DISPLAY\family default line to read\layout LyX-CodeDISPLAY = tkemc\layout StandardThen, start EMC2 and select that ini file. The sample configuration \family typewriter sim/tkemc.ini\family default is already configured to use TkEMC as its front-end.\layout StandardWhen you start EMC2 with TkEMC, a window like the one in Figure \begin_inset LatexCommand \ref{cap:TkEMC-Window}\end_inset is shown.\layout SubsectionA typical session with TkEMC\layout EnumerateStart EMC and select a configuration file.\layout EnumerateClear the \begin_inset Quotes eld\end_inset E-STOP\begin_inset LatexCommand \index{ESTOP}\end_inset \begin_inset Quotes erd\end_inset condition and turn the machine on (by pressing F1 then F2).\layout Enumerate\begin_inset Quotes eld\end_inset Home\begin_inset LatexCommand \index{home}\end_inset \begin_inset Quotes erd\end_inset each axis.\layout EnumerateLoad the file to be milled.\layout EnumeratePut the stock to be milled on the table.\layout EnumerateSet the proper offsets for each axis by jogging and either homing again or right-clicking an axis name and entering an offset value.\layout EnumerateRun the program.\layout EnumerateTo mill the same file again, return to step 6. To mill a different file, return to step 4. When you're done, exit EMC2.\layout SectionElements of the TkEMC window\layout StandardThe TkEMC window contains the following elements:\layout ItemizeA menubar that allows you to perform various actions ;\layout ItemizeA set of buttons that allow you to change the current working mode, start/stop spindle and other relevant I/O ;\layout ItemizeStatus bar for various offset related displays ;\layout ItemizeCoordinate display area ;\layout ItemizeA set of sliders which control \begin_inset Quotes eld\end_inset Jogging speed\begin_inset LatexCommand \index{jog speed}\end_inset \begin_inset Quotes erd\end_inset , \begin_inset Quotes eld\end_inset Feed Override\begin_inset LatexCommand \index{feed override}\end_inset \begin_inset Quotes erd\end_inset , and \begin_inset Quotes eld\end_inset Spindle speed Override\begin_inset LatexCommand \index{spindle speed override}\end_inset \begin_inset Quotes erd\end_inset which allow you to increase or decrease those settings ;\layout ItemizeManual data input text box \begin_inset LatexCommand \index{MDI}\end_inset ; \layout ItemizeStatus bar display with active G-codes, M-codes, F- and S-words ;\layout ItemizeInterpreter related buttons ;\layout ItemizeA text display area that shows the G-code source of the loaded file.\layout SubsectionMain buttons\layout StandardFrom left to right, the buttons are:\layout EnumerateMachine enable: \begin_inset Quotes eld\end_inset ESTOP\begin_inset LatexCommand \index{ESTOP}\end_inset \begin_inset Quotes erd\end_inset / \begin_inset Quotes eld\end_inset ESTOP RESET\begin_inset Quotes erd\end_inset / \begin_inset Quotes eld\end_inset ON\begin_inset Quotes erd\end_inset \layout EnumerateToggle mist\begin_inset LatexCommand \index{MIST}\end_inset \layout EnumerateDecrease spindle speed\layout EnumerateSet spindle\begin_inset LatexCommand \index{spindle}\end_inset direction \begin_inset Quotes eld\end_inset SPINDLE OFF\begin_inset Quotes erd\end_inset / \begin_inset Quotes eld\end_inset SPINDLE FORWARD\begin_inset Quotes erd\end_inset / \begin_inset Quotes eld\end_inset SPINDLE REVERSE\begin_inset Quotes erd\end_inset \layout EnumerateIncrease spindle speed\layout EnumerateAbort\layout Standardthen on the second line:\layout EnumerateOperation mode: \begin_inset Quotes eld\end_inset MANUAL\begin_inset LatexCommand \index{Manual}\end_inset \begin_inset Quotes erd\end_inset / \begin_inset Quotes eld\end_inset MDI\begin_inset LatexCommand \index{MDI}\end_inset \begin_inset Quotes erd\end_inset / \begin_inset Quotes eld\end_inset AUTO\begin_inset LatexCommand \index{Auto}\end_inset \begin_inset Quotes erd\end_inset \layout EnumerateToggle flood\layout EnumerateToggle spindle brake control\layout SubsectionOffset display status bar\layout StandardThe Offset display status bar displays the currently selected tool (selected with Txx M6), the tool length offset (if active), and the work offsets (set by right clicking the coordinates).\layout SubsectionCoordinate Display Area\layout StandardThe main part of the display shows the current position of the tool. The colour of the position readout depends on the state of the axis. If the axis is unhomed the axis will be displayed in yellow letters. Once homed it will be displayed in green letters. If there is an error with the current axis TkEMC will use red letter to show that. (for example if an hardware limit switch is tripped).\layout StandardTo properly interpret these numbers, refer to the radio boxes on the right. If the position is \begin_inset Quotes eld\end_inset Machine\begin_inset Quotes erd\end_inset , then the displayed number is in the machine coordinate system. If it is \begin_inset Quotes eld\end_inset Relative\begin_inset Quotes erd\end_inset , then the displayed number is in the offset coordinate system. Further down the choices can be \begin_inset Quotes eld\end_inset actual\begin_inset Quotes erd\end_inset or \begin_inset Quotes eld\end_inset commanded\begin_inset Quotes erd\end_inset . Actual refers to the feedback coming from encoders (if you have a servo machine), and the \begin_inset Quotes eld\end_inset commanded\begin_inset Quotes erd\end_inset refers to the position command send out to the motors. These values can differ for several reasons: Following error, deadband, encoder resolution, or step size. For instance, if you command a movement to X 0.0033 on your mill, but one step of your stepper motor is 0.00125, then the \begin_inset Quotes eld\end_inset Commanded\begin_inset Quotes erd\end_inset position will be 0.0033 but the \begin_inset Quotes eld\end_inset Actual\begin_inset Quotes erd\end_inset position will be 0.0025 (2 steps) or 0.00375 (3 steps).\layout StandardAnother set of radio buttons allows you to choose between \begin_inset Quotes eld\end_inset joint\begin_inset Quotes erd\end_inset and \begin_inset Quotes eld\end_inset world\begin_inset Quotes erd\end_inset view. These make little sense on a normal type of machine (e.g. trivial kinematics), but helps on machines with non-trivial kinematics like robots or stewart platforms. (you can read more about kinematics in the Integrators Handbook).\layout SubsubsectionBackplot\layout StandardWhen the machine moves, it leaves a trail called the backplot. You can start the backplot window by selecting View->Backplot.\layout SubsectionAutomatic control\layout Standard\begin_inset Float figurewide falsecollapsed false\layout CaptionTkEMC Interpreter / program control\begin_inset LatexCommand \label{cap:TkEMC-Interpreter}\end_inset \layout Standard\align center \begin_inset Graphics filename tkemc_interp.png scale 80\end_inset \end_inset \layout SubsubsectionButtons for control\layout StandardThe buttons in the lower part of TkEMC (seen in Figure \begin_inset LatexCommand \ref{cap:TkEMC-Interpreter}\end_inset ) are used to control the execution of a program: \begin_inset Quotes eld\end_inset Open\begin_inset LatexCommand \index{open}\end_inset \begin_inset Quotes erd\end_inset to load a program, \begin_inset Quotes eld\end_inset Verify\begin_inset LatexCommand \index{verify}\end_inset \begin_inset Quotes erd\end_inset to check it for errors, \begin_inset Quotes eld\end_inset Run\begin_inset LatexCommand \index{run}\end_inset \begin_inset Quotes erd\end_inset to start the actual cutting, \begin_inset Quotes eld\end_inset Pause\begin_inset LatexCommand \index{pause}\end_inset \begin_inset Quotes erd\end_inset to stop it while running, \begin_inset Quotes eld\end_inset Resume\begin_inset LatexCommand \index{resume}\end_inset \begin_inset Quotes erd\end_inset
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -