Examples for the screen configuration of myCNC software are available here.
Labels are static text elements which are displayed as a text box (typically simple text headings/titles/etc). An example of such a label can be seen in the User Settings window of the 1366M4 profile, in the Oil Change tab:
Here, the Mileage/Oil Change title is a Label. The code for this label would be the following:
<gitem where="oil-change" position="0;0" width="490" height="30" labelWidth="490" type="label" labelFgColor="##f-title" labelBgColor="##b-title" labelFontSize="18" labelFontStyle="bold" > <message>Mileage/Oil Change</message> <message_ru>Счетчик смены масла</message_ru> </gitem>
Display allows to show dynamic info (such as a changing value), and often works in conjunction with a Label (a label will create some title, and the dynamic changing value will be placed on the screen next to the Label as a Display). An example of a Display is the Trip Counter from the User Settings window in the 1336M4 profile:
The code for this element will look like this:
<gitem where="oil-change" position="10;40" width="250" displayWidth="90" height="60" labelWidth="160" name="display-cnc-gvariable-6090" K="0.001" bgColor="##b-display" fgColor="##f-display" labelFgColor="##f-label" labelFontSize="14" labelFontStyle="normal" fontSize="18" fontStyle="bold" format="%6.3f" type="display" > <message>X Trip counter</message> <message_ru>Счетчик пути по Х</message_ru> </gitem>
The BDisplay element allows to display a dynamic value, like a typical Display, which can also be clicked. When clicked, a popup element will be brought up on the screen that will allow the user to enter a new value. For example, the program coordinates displayed on the main screen of the software are BDisplay elements which bring up a popup when clicked, allowing to change their values:
An example of BDisplay code would be the following:
<gitem where="x-coordinates" position="74;10" width="150" height="34" displayAlignment="right;bottom" fgColor="##f-workpos" format="%8.3f" fontFamily="Open Sans" fontSize="21" type="bdisplay" deviation="0.0005" action="direct-run:G90 G92 X %v" name="display-work-pos-axis-0" bgColor="##b-display" displayWidth="150" fontStyle="bold"></gitem>
RadioDisplay allows to display some value from a list. For example, the display of the coordinate system in the Diagnostics window of the 1366M4 profile is done by using a RadioDisplay element. This allows the user to select some coordinate system (which is not labeled G54/G55/etc within the software, but rather 1, 2, 3, etc), and then display the selected choice as some sort of a user-facing text string (thus, for example, displaying a software “2”, which would not be useful to the user without an external reference sheet, as “G55”). This is useful to “translate” machine settings or error codes into a text string that the user can easily read:
An example of code for such a RadioDisplay element is presented here:
<gitem fgColor="##f-display" labelFgColor="##f-label" where="coord-sys0" labelWidth="80" displayWidth="160" format="---;G54;G55;G56;G57;G58;G59;G59.1;G59.2;G59.3" height="40" type="radio-display" name="display-gvariable-5220" bgColor="##b-display" fontStyle="bold" orientation="horizontal"> <message>Current Num</message> <message_pl>Aktualny numer</message_pl> <message_ru>Номер</message_ru> <message_kr>Current Num</message_kr> <message_vn>Số hiện tại</message_vn> <message_es>Actual</message_es> </gitem>
NOTE: RadioDisplay and Radio2Display allow for some rudimentary actions to be assigned to the action of clicking the RadioDisplay element. These are limited compared to the Button/XButton/etc elements, however they are still extremely useful:
Action | Description |
---|---|
cnc-gvariable-switch | Switches between different values for a global variable (these variables are preassigned and set as a list separated by commas) |
cnc-gvariable-toggle | Toggles a global variable between 0 and 1 upon RadioDisplay/Radio2Display clicks |
item-switch | Switches between preassigned values/entries for an item |
toggle-item | Toggles an item from the Item list (toggle writes 0 or 1 to the item depending on the previous item state) |
An example of actions being assigned to the RadioDisplay can be seen in the 1366V profile when creating a per-program z-height map to account for uneven material positioning. The RadioDisplay element switches between “Area” and “Rectangle” depending on the mode chosen to create the probe mesh:
If we look at the code, the RadioDisplay element is actually using the cnc-gvariable-toggle to change between the two modes (0 for Rectangle, 1 for Area):
<gitem where="map-z-view" position="150;5" displayWidth="110" width="110" height="70" displayAlignment="_center" fgColor="##f-display" format="Rectangle;Area" fontFamily="Open Sans" fontSize="20" type="radio-display" deviation="0.5" action="cnc-gvariable-toggle-8255" name="display-cnc-gvariable-8255" bgColor="##b-display" fontStyle="bold"> </gitem>
Radio2Display allows for a more granular display configuration than the simpler RadioDisplay. Similar to RadioDisplay, Radio2Display transforms some system values into a user-facing string from a list of options which are specified beforehand. For example, the step size values for the jog buttons on the main screen of the 1366M4 profile use Radio2Display elements:
Example code for this screen element:
<gitem where="x-jog" position="90;100" width="80" height="40" displayWidth="80" fgColor="##f-display" bgColor="transparent" alignment="center" fontSize="14" type="radio2-display" format="0.001=0.001;0.01=0.01;0.1=0.1;1.0=1.0;10=10;∞=88.88=2.3" deviation="0.0005" name="display-gvariable-5522" fontStyle="bold" orientation="vertical" ></gitem>
Similar to RadioDisplay, Radio2Display allows for a limited number of actions which can be assigned to the action of pressing or clicking the Radio2Display element:
Action | Description |
---|---|
cnc-gvariable-switch | Switches between different values for a global variable (these variables are preassigned and set as a list separated by commas) |
cnc-gvariable-toggle | Toggles a global variable between 0 and 1 upon RadioDisplay/Radio2Display clicks |
item-switch | Switches between preassigned values/entries for an item |
toggle-item | Toggles an item from the Item list (toggle writes 0 or 1 to the item depending on the previous item state) |
The example in RadioDisplay code can also be used to assign actions to Radio2Display if type=“radio2-display”.
KDisplay is similar to BDisplay, as it allows to display some dynamic changing variable/number and to register when it is clicked on the software screen (after which the user can enter a new value). It is different from BDisplay in that it is geared towards keyboard/mouse combos (rather than touchscreen setups) and does not bring up a full popup screen, and because it does not allow for actions to be executed after the new value has been inputted. As such, it is typically used on simple value changes which do not cause direct machine actions immediately after.
For example, the gantry alignment correction value can be changed from the Diagnostics window of myCNC software using a KDisplay element:
<gitem fgColor="##f-display" labelFgColor="##f-label" where="gantry-correction" labelHeight="40" labelWidth="200" displayWidth="90" format="%6.3f" height="40" type="kdisplay" name="display-cnc-gvariable-7525" bgColor="##b-display" fontStyle="bold" orientation="horizontal" deviation="0.001" > <message>Gantry Alignment Correction (#7525)</message> <message_ru>Коррекция для выравнивания портала (#7525)</message_ru> <message_vn>cái dá căn chỉnh điều chỉnh(# 7525)</message_vn> <message_es>Corrección de alineamiento Gantry (#7525)</message_es>\ </gitem>
KSpinBox shows a certain value with an arrow on either side, allowing the user to change the value upon pressing (or pressing and holding) the arrow buttons. The PWM outputs section of the Diagnostics window is done using KSpinBoxes:
Example of KSpinBox code:
<gitem fgColor="##f-display" labelFgColor="##f-label" where="pwms" format="%d" labelWidth="80" displayWidth="80" alignment="left" action="hw-pwm-dec;hw-pwm-inc" height="40" address="pwm-outputs" number="0" type="kspinbox" bgColor="##b-display" fontStyle="bold"> <message>PWM 1</message> <message_pl>PWM 1</message_pl> <message_cn>PWM的1</message_cn> <message_ru>ШИМ1</message_ru> <message_kr>PWM 1</message_kr> <message_es>PWM 1</message_es> </gitem>
KSpinBox2 allows the user to add an element similar to a regular KSpinBox, displaying a value between two arrows, which also allows the user to click on the current value and change it using a popup screen in addition to changing the value by pressing the respective arrows. This element is used, for example, on the main screen of myCNC software's 1366M4 profile to change overspeed, jog overspeed, and spindle speed. Below is an example of such a screen element when the value in the jog overspeed box has been clicked, bringing up a popup screen:
Example KSpinBox2 code:
<gitem fgColor="##f-display" position="880;560" height="60" width="320" where="main" suffix="%" format="%d" K="1." action="jog-overspeed-dec;jog-overspeed-inc" type="kspinbox2" name="display-jog-overspeed" bgColor="black" fontStyle="bold" labelFontSize="14" displayWidth="100" labelWidth="100" orientation="horizontal"> <message>Jog over speed</message> <message_pl>Przekroczenie prędkości przesuwu</message_pl> <message_ru>Ручное/Скорость</message_ru> <message_vn>Chạy bộ trên tốc độ</message_vn> <message_es>Jog over speed</message_es> </gitem>
LED Display allows the user to display an LED element on the screen. This light can be on or off, and each LED element can have a different colour set for its ON configuration. This is useful to show the state of system items which have a binary state (on or off), such as input ports which can be viewed from the Diagnostics page:
Below is an example of LED display code for an LED element which will display the state of Input #0 (on or off):
<gitem inversion="no" labelFgColor="##f-label" labelAlignment="right;vcenter" where="inputs-0" height="20" address="inputs" shape="round" number="0" type="led"> <message>IN00</message> <message_es>IN00</message_es> </gitem>
SVG Display allows to display a set of images that will be changing depending on the user input (cycling through the available images). This allows for more granular control than an LED Display element which can only show two states of a system.
Example code:
<gitem where="adc" format="%d" displayWidth="200" displayHeight="30" name="display-cnc-gvariable-7199" imagesfolder="progress/" loop="no" images="vprogress*" type="svgdisplay" min="0" max="4096" K="1" />
The Myitems widget allows the user to create a section or a window within the main myCNC screen which can later be filled with buttons/display elements/etc. The Myitems widget will serve as a container which can easily be moved on the screen, opened and closed without having to write additional code for the buttons which are inside the widget if simple changes to the widget size/location are required. Most window elements are done using a myitems widget, for example, the oil change section of the window in the User Settings:
Example code:
<gitem where="oil-change-frame" name="oil-change" bgColor="##b-widget" type="myitems" position="10;10" width="490" height="230" /> <include>oil-change.xml</include>
Note that the widget within which the oil-change myitems window is embedded is its own separate widget (consisting of a frame with rounded borders). The example code for that will be as follows:
<gitem where="user-widget" name="oil-change-frame" bgColor="##b-main" type="frame" border-color="##b-border" border-width="2" border-radius="10" position="450;420" width="510" height="250" basewidth="510" baseheight="250"/>
A PushButton screen item can be used on myCNC screen to serve as as a button which will trigger some command when pressed. For example, the refresh button can be seen on the main screen of the myCNC software:
The code for such a button will look as follows:
<gitem where="main" position="160;0" width="80" height="80" image="button-refresh" action="file-refresh" type="button" />
Attributes description
XButton is a Push button (similar to a typical button described above) with a built-in light indicator. The light is typically used to show the current state of some CNC controller input, output pin, or CNC global variable register value. Effectively, this combines the Button and LED Display elements, for example, in the M03 button in the 1366M4 profile.
An XButton XML sample code is shown below:
<gitem where="x-mill" xattr="3;3;16;16;led;red;round" address="outputs" number="#OUTPUT_SPINDLE". position="720;10" width="70" height="70" image="M/button-m03" action="plc-run:M03/#5524" type="xbutton" />
Attributes description
#define OUTPUT_SPINDLE 7
GLView allows to display a 3D visualization window which will show a visualization of the imported program (such as the window on the main screen of myCNC software's 1366M4 profile).
Sample GLView code is shown below:
<gitem where="xp" name="glview" type="glview" position="80;80" width="910" height="395" singlepath="no" bgColor="##b-ncview" ColorT0="white:1" ColorT1="#00DD00:1" ColorT2="#0000DD:1" ColorT3="#DDDD00:1" ColorT4="#00DDDD:1" ColorT5="#00DD00:1" ColorT6="#DD5500:1" HColorT0="transparent:0" HColorT1="#DD0000:3" HColorT2="#0000DD:3" HColorT3="#DDDD00:3" HColorT4="#DD00DD:3" HColorT5="#00DD00:3" HColorT6="#DD5500:3" ></gitem>
NCView is the 2D visualization widget to display an image of the imported G-code file such as the main visualization window in the 1366P profile (as a 3D visualization is unnecessary for a plasma/gas profile which will be doing all the cutting in the XY plane only).
Below is the code used to display an NCView window in the 1366P plasma profile.
<gitem where="xp" name="ncview" type="ncview" position="5;85" width="1010" height="390" singlepath="no" bgColor="##b-ncview" ColorT0="white:1" ColorT1="#00DD00:1" ColorT2="#0000DD:1" ColorT3="#DDDD00:1" ColorT4="#00DDDD:1" ColorT5="#00DD00:1" ColorT6="#DD5500:1" HColorT0="transparent:0" HColorT1="#DD0000:3" HColorT2="#0000DD:3" HColorT3="#DDDD00:3" HColorT4="#DD00DD:3" HColorT5="#00DD00:3" HColorT6="#DD5500:3" ></gitem>
Logview is the log window tab at the bottom of the main screen of myCNC software (within the x-log widget). It contains information on program start and end times, error messages, etc.
Example code code to insert the log window as it is displayed in the 1366M4 profile is the following:
<gitem where="x-log" position="10;10" width="930" height="160" name="logview" type="logview"></gitem>
This will insert the Logview element into the x-log MyItems widget.
Below the logview window, a status bar can be seen:
This is inserted into the x-log widget separately from logview, through the following code:
<gitem where="x-log" position="10;140" width="930" height="30" fontSize="16" fontStyle="normal" name="statusbar" type="statusbar" />
The NCList widget is used to display the G-code commands window to the user, as can be seen in the G-code tab on the main screen of the 1366M4 profile, as well as the nesting, rotation and Run From Here buttons:
Example code to insert the NCList window:
<gitem where="xp" name="x-nclist" position="330;581" width="950" height="180" basewidth="950" baseheight="180" type="frame" border-color="##b-border" border-width="2" border-radius="10" bgColor="##b-main" hide-list="x-log;x-mill" exclusive="yes" />
CentringView consists of the probe tools which allow to center the machine tool with regards to some obstacles. The window is brought up by clicking the Probe Sensor Window button:
The code to insert such a window into the 1366M4 profile, the following code is used:
<gitem where="x-reserv" position="8;5" width="80" height="80" image="probing/centring-unit" action="mywidget-toggle:x-centring" type="button"/>
Note that this will bring up the x-centring.xml file which describes what is actually inside the CentringView widget. This code merely indicates that the Probe Sensor Window button is to be placed on the main screen, pressing which will, in turn, bring up the CentringView widget screen.
Rotation2View is the window which allows to rotate the program part by some degree. It is brought up by clicking the Rotate button in the G-code tab on the main screen of myCNC software:
The following window is brought up when clicking the button (window functions described here):
This will bring up the x-rotate.xml file which further describes internals of the window. In order to simply add a button so that the overall window can be brought up, the following code can be used:
<gitem where="x-nclist" position="10;60" height="55" width="60" image="tabs/rotate-r" action="mywidget-toggle:x-rotate" type="button"></gitem>
All button-like screen components (button, xbutton, bdisplay, kspinbox2) run a Handler procedure when pressed or released event is activated by a mouse click or a touch screen tap. The Handler is defined in the “action” attribute of an XML configuration item.
List of actions is presented below:
Action Name | Description |
---|---|
advanced-config | Brings up the full configuration dialogs window (this is the window typically accessed through Settings > Config) |
basic-config | Obsolete, was used to bring up a basic config settings window on some systems |
toggle-button-coordinates | Special purpose action, used to toggle between displaying program and machine coordinates (only one set of coordinates would be shown at a time) |
toggle-button-jog-enable | This toggle allows to enable/disable jog completely (typically done for safety reasons so that the machine cannot accidentally move) |
toggle-button-soft-limits | This action will toggle whether the soft limits for the machine will be ON or OFF. This can also be done by heading into Settings > Config > Inputs/Outputs/Sensors > Limits and setting the check mark for Soft Limits Enabled there. |
toggle-button-mist | Coolant mist is toggled ON/OFF |
toggle-button-flood | Coolant flood (liquid) is toggled ON/OFF |
toggle-button-spindle | The spindle configuration uses the toggle-button-spindle and the toggle-button-ccw-spindle commands. By default, there are two commands sent to the spindle - power and direction. The power will cause the spindle to turn in the clockwise direction, while the ccw-spindle command will reverse the spin direction of the spindle. |
toggle-button-ccw-spindle-spindle | Reverses the spin direction of the spindle (counter-clockwise instead of clockwise) |
toggle-item: | This is a general toggle action command for any item (item name is specified after the colon). Item list can be found here. |
laser-marker- | Special purpose action reserved for laser marker machines. This action perform a test run in anticipation of the actual cutting process. |
Items are a subset of actions, and are written in the following form - item:item-name (such as item:motion-rapid-speed-xy). Items are different from actions in that items effectively describe a value that can be changed by some input (similar to Global Variables which store a value). In this way, there can exist both an action with some name, and an item with that same name, which are separate from one another (one will describe an action that will be taken, and the other will describe a value that will be changed by that action).
Items are often presented to the user on the myCNC software screen to display relevant information which can then be edited (such as the jog overspeed, spindle speed, etc). The relevant actions for such items would be along the lines of motion-overspeed-inc or motion-overspeed-dec, describing a particular action to perform with this item (value).
Items are typically used in conjunction with some input, as outlined in the Connections configuration dialog which can be found here.
A list of commonly used items can be found in the Item List.
Action Name | Description |
---|---|
player-play | Begins running the program |
player-play-confirm | Begins running the program after a confirmation popup has been clicked, to confirm that the user indeed wants to start the program run |
player-play-edge | Begins running the program from the edge (done for plasma profiles on thick materials/when initial pierce or ignition is not possible at some point). |
player-play-edge-confirm | Begins running the program from the edge after a confirmation popup to ensure that the user wants to start from the edge |
player-jump1 | Special purpose command, done to jump to the first cutting/piercing point in the program. Used on select user profiles. |
player-pause | Pauses the program run |
player-stop | Stops the program run. In myCNC, player-pause and player-stop are equivalent, as the controller remembers the machine position as the program is stopped, thus allowing it to serve as a pause |
player-skip-forward | Skips to the next G-code command |
player-skip-forward-10 | Skips 10 commands (forward direction) |
player-skip-backward | Goes to the previous G-code command |
player-skip-backward-10 | Skips 10 commands (backwards direction) |
player-skip-part-f | Skips to the next part in the code |
player-skip-part-b | Skips to the previous part in the code |
player-nc-reset | Resets the program back to the beginning |
player-nc-reset-confirm | Resets the program back to the beginning after asking for a confirmation in the form of a popup window |
player-back-to-path | Goes back to path after a stop |
player-back-to-path-confirm | Goes back to path, requires confirmation before the machine goes back to path |
player-play-back | Runs the program backwards |
player-nc-tie | Allows to tie a certain position to the reference zero program coordinate position. This allows to move the entire program around the cutting sheet. Useful when, for example, a single part needs to be cut out from a program made up from many different parts at a different location on the working material from that used originally (for example, if the first run was faulty). This calculates the difference of the current selected point and the zero program coordinate, and then interpolates the same difference between the new selected point and the new zero program coordinate, moving the whole program over. |
player-play-step | Run through a single line of code (next line) |
player-play-step-backward | Run through a single line of code (previous line) |
mdi-play | If the Manual Data Input field is not presented as a separate window, it is possible to enter some MDI commands, and then keep them entered until they are required (no need to immediately execute them). This mdi-play command will execute the stored MDI process. NOTE: This is a special user case feature, typically mdi-open is used instead. |
mdi-open | Opens the Manual Data Input window |
Action Name | Description |
---|---|
jog-0-plus, jog-1-plus, jog-2-plus, jog-3-plus, jog-4-plus, jog-5-plus, jog-6-plus, jog-7-plus jog-8-plus | Positive direction jog in the in the X, Y, Z, A, B, C, U, V, W axes |
jog-0-minus, jog-1-minus, jog-2-minus, jog-3-minus, jog-4-minus, jog-5-minus, jog-6-minus, jog-7-minus, jog-8-minus | Negative direction jog in the X,Y,Z,A,B,C,U,V,W axes |
jog-0-plus-1-plus | Two-axes Jog, X+ Y+ |
jog-0-plus-1-minus | Two-axes Jog, X+ Y- |
jog-0-minus-1-plus | Two-axes Jog, X- Y+ |
jog-0-minus-1-minus | Two-axes Jog, X- Y- |
jog-overspeed-inc jog-overspeed-dec | Increment/Decrement Jog Overspeed value (%) - the default jog speed is set to be 100%. |
jog-overspeed-set: | Set given Jog Overspeed value (%). The bounds for overspeed can be set in Settings > Config > Motion |
Action Name | Description |
---|---|
step-float-inc step-float-dec | Increase/decrease Jog Step Size. Reserved for an arbitrary step size change (instead of a 0.01, 0.1, etc) |
step-size-inc step-size-dec | Increase/decrease Jog Step Size by a set value |
motion-linear-acceleration-inc motion-linear-acceleration-dec | Increase/decrease Motion Linear Acceleration value |
motion-linear-jog-speed-inc motion-linear-jog-speed-dec motion-linear-jogspeed-inc motion-linear-jogspeed-dec | Increase/decrease Motion Linear Jog Speed value |
motion-jog-speed-x-inc, motion-jog-speed-x-dec, motion-jog-speed-y-inc, motion-jog-speed-y-dec, motion-jog-speed-z-inc, motion-jog-speed-z-dec, motion-jog-speed-a-inc, motion-jog-speed-a-dec, motion-jog-speed-b-inc, motion-jog-speed-b-dec, motion-jog-speed-c-inc, motion-jog-speed-c-dec, motion-jog-speed-u-inc, motion-jog-speed-u-dec, motion-jog-speed-v-inc, motion-jog-speed-v-dec, motion-jog-speed-w-inc, motion-jog-speed-w-dec, motion-jog-speed-xy-inc, motion-jog-speed-xy-dec, motion-jog-speed-xyz-inc, motion-jog-speed-xyz-dec | Increase/decrease Motion Jog Speed value for given Axis |
motion-rapid-speed-x-inc, motion-rapid-speed-x-dec, motion-rapid-speed-y-inc, motion-rapid-speed-y-dec, motion-rapid-speed-z-inc, motion-rapid-speed-z-dec, motion-rapid-speed-a-inc, motion-rapid-speed-a-dec, motion-rapid-speed-b-inc, motion-rapid-speed-b-dec, motion-rapid-speed-c-inc, motion-rapid-speed-c-dec, motion-rapid-speed-u-inc, motion-rapid-speed-u-dec, motion-rapid-speed-v-inc, motion-rapid-speed-v-dec, motion-rapid-speed-w-inc, motion-rapid-speed-w-dec, motion-rapid-speed-xy-inc, motion-rapid-speed-xy-dec, motion-rapid-speed-xyz-inc, motion-rapid-speed-xyz-dec | Increase/decrease Motion Rapid Speed value for given Axis |
motion-feed-speed-x-inc, motion-feed-speed-x-dec motion-feed-speed-y-inc motion-feed-speed-y-dec motion-feed-speed-z-inc motion-feed-speed-z-dec motion-feed-speed-a-inc motion-feed-speed-a-dec motion-feed-speed-b-inc motion-feed-speed-b-dec motion-rapid-speed-c-inc motion-rapid-speed-c-dec motion-rapid-speed-u-inc motion-rapid-speed-u-dec motion-rapid-speed-v-inc motion-rapid-speed-v-dec motion-rapid-speed-w-inc motion-rapid-speed-w-dec motion-rapid-speed-xy-inc motion-rapid-speed-xy-dec motion-rapid-speed-xyz-inc motion-rapid-speed-xyz-dec | Increase/decrease Motion Rapid Speed value for given Axis |
motion-overspeed-inc motion-overspeed-dec motion-overspeed | Increase/decrease/set Motion Overspeed value (%) |
spindle-speed-inc spindle-speed-dec spindle-speed | Increase/decrease/set Current Spindle Speed (S) for current operation. New “S” value in running g-code will overwrite Current Spindle Speed |
spindle-speed-restore | Restore Default Spindle Speed (S) |
spindle-overspeed-inc spindle-overspeed-dec spindle-overspeed | Increase/decrease/set Spindle Speed (S) |
Action Name | Description |
---|---|
editor-arrow-up | Go one line up in the code |
editor-arrow-down | Go one line down in the code |
editor-ncline-edit | Edits the current selected line of G-code |
editor-ncline-insert | Inserts a line of code |
editor-ncline-remove | Deletes the current selected line |
editor-font-inc | Increase the font size for the editor G-code text |
editor-font-dec | Decrease the font size for the editor G-code text |
editor-numbers-toggle | Toggle the line number display to insert the current line number indicators into G-code |
editor-selection-begin | Begin selection |
editor-selection-end | End selection (the lines between the editor-selection-begin and editor-selection-end will be selected) |
editor-selection-remove | Remove the selected lines |
editor-selection-insert | Insert selected lines |
editor-new | Create a new program file in the editor |
editor-save-as | Save File As |
editor-save | Save the editor file |
Action Name | Description |
---|---|
save | Saves the file |
open | Open selected file |
load-file: | Load a file. This will load a file from the predefined folders which can be set in Config > Preferences > Common |
load-macro: | A test debug feature. Allows to load the macros which are referenced in the imported G-code directly into the NCList window. In this way, instead of using a single macro number to refer to a specific macro, the full macros will be written out in the NCList. |
file-close | Close the program file |
dxf-import | Import a DXF file into myCNC |
image-import | Import an image into myCNC |
Action Name | Description |
---|---|
zoom-in | Zoom in on the visualization |
zoom-out | Zoom out on the visualization |
fit-to-view | Fit the visualization into the screen |
3dview-xy | 3D Visualization: show XY view |
3dview-xz | 3D Visualization: show XZ view |
3dview-yz | 3D Visualization: show YZ view |
3dview-iso | 3D Visualization: show ISO view (isometric view with no vanishing point) |
3dview-custom: | 3D Visualization: show Custom view, defined by Alpha, Beta, and Gamma angles for the rotation matrix |
These actions allow to display widgets on the screen which are then used to change certain machine values/navigate to different menus/etc. They are displayed either as popup windows on the main screen, or full windows which require navigation to return back to the main screen.
Action Name | Description |
---|---|
show-inputbox | Obsolete version of the Manual Data Input |
show-widget-centring | Shows the Centring widget (consists of probe widget command buttons to centre the tool with regard to some obstacles/constraints) |
show-widget-rotation | Brings up the rotation2view window (typically the Rotate button is located in the G-code tab on the main screen) |
show-widget-sawcutting | Brings up the sawcutting widget (obsolete on newer software) |
show-widget-diagnose | Brings up the Diagnostics window |
show-widget-config | Brings up the Config (full settings) window |
show-widget-edit | Brings up the Edit widget screen, which allows to alter a G-code file before importing it into myCNC |
show-widget-lib | Brings up the library window |
show-widget-tools | Brings up the tools window/tab |
show-widget-log | Brings up the log window (typically found in Settings > Log) |
show-widget-report | Shows the report window (typically Settings > Report) |
show-widget-support | Shows the support widget, which contains update options for the firmware, application and the profile used |
show-widget-user | Shows the user settings window for that particular profile |
show-widget-work | Brings up the work area (useful to return from a window like the Diagnostics window back to the main screen) |
mywidget-show: | Shows a widget (widget name specified after the colon) |
mywidget-hide: | Hides a widget (widget name specified after the colon) |
mywidget-toggle: | A command (such as a button pressed can either show, hide, or toggle a widget's visibility. It is sometimes preferable to have separate buttons for opening and closing a widget (so that it isn't closed accidentally), but mywidget-toggle allows to toggle the visibility of a widget with a single button |
pendant-widget-open | Shows the pendant widget. This is typically used in older versions of the software (not on the 1366-series profile) to display a virtual pendant. |
measure-surface | Obsolete. Reserved for surface measure commands on older versions of the software, newer versions have since switched to macros. |
toggle-virtual-keyboard | Toggles the visibility of the virtual keyboard |
mywidget: | Older version of the syntax for mywidget commands (still functional, but no longer developed further). The name of the widget would be set after the colon, and then, after a doubleslash, the show/hide/toggle command would be inserted. This has been largely replaced by the mywidget-toggle, mywidget-show and mywidget-hide syntax. |
Action Name | Description |
---|---|
close-application | Close myCNC control software |
cnc-config-save | Save myCNC configuration files to disk |
Action Name | Description |
---|---|
servo-pid-on | Turns ON the Servo PIDs |
servo-pid-off | Turns OFF the Servo PIDs |
hw-pwm-inc | Increases the PWM value in preset increments (currently, these increments are set to 20) |
hw-pwm-dec | Decreases the PWM value in preset increments |
hw-dac-inc | Increases the DAC value in preset increments |
hw-dac-dec | Decreases the DAC value in preset increments |
hw-direct-binary-set- | Directly sets an output value (for example, hw-direct-binary-set-5 to turn on output 5. Using direct hardware commands instead of Hardware PLC procedures allows to free up the Hardware PLC process and to prevent situations where long PLC commands would be interrupted by a port set / port clear due to a new input sent to the controller |
hw-direct-binary-clear- | Directly clears an output value (for example, hw-direct-binary-clear-5 to clear output 5 |
thc-arc-voltage-ref-inc | Increases the reference arc voltage value |
thc-arc-voltage-ref-dec | Decreases the reference arc voltage value |
thc-jog-speed-dec | Decreases the THC jog speed |
thc-jog-speed-inc | Increases the THC jog speed |
| Obsolete. Used to jog the machine in a positive direction during Torch Height Control, has since been rendered obsolete due to the Settings > Config > Technology > THC > Accept Jog while job is running setting. This setting allows the machine to automatically distinguish whether the input to move vertically is done during THC or not, and to account for such movement |
| Obsolete, similar to thc-jog-pos - was used to jog machine in a negative direction during THC. |
dev-thc-jog-pos | Multidevice positive direction Torch Height Control jog |
dev-thc-jog-neg | Multidevice negative direction Torch Height Control jog |
toggle-widget-centring | Toggles the centring widget visibility on/off (centring widget code can be found in x-centring.xml) |
toggle-widget-rotation | Toggles the rotation widget visibility on/off |
toggle-widget-sawcutting | Toggles the sawcutting widget visibility on/off (obsolete on newer software versions) |
toggle-widget-user | Toggles the user settings widget visibility on/off |
toggle-button-flood | Toggles the flood state on/off (liquid) |
toggle-button-coolant | Toggles the coolant state on/off |
toggle-button-spindle | Toggles the spindle on/off state. This will cause the spindle to either not spin, or spin in the clockwise direction. |
toggle-button-ccw-spindle | Toggles the reversal of spindle direction from clockwise to counterclockwise |
toggle-button-mist | Toggles the mist state on/off |
| Obsolete. Used for constant velocity mode toggle. |
Action Name | Description |
---|---|
soft-plc-run: | Runs software PLC commands |
soft-plc-stop: | Stops a software PLC process |
*soft-plc-stop: | Stops both a software PLC process and the program itself from running |
plc-run: | Runs a Hardware PLC process |
direct-plc: | Same as plc-run (either of these commands can be used) - runs Hardware PLC |
multidev-plc-run: | Runs PLC in a multidevice configuration |
switch-cnc-gvariable | Switches a gvariable value between some data on a loop (for example, on every button press a gvariable gets assigned the next value from the data list). This syntax is not used in the newer projects, cnc-gvariable-switch, cnc-gvariable-clear, etc are used instead. |
cnc-gvariable-switch | Newer syntax for a global variable switch between values from a data set. Data points will be written separated by a comma, and the next value in the list will be taken on every switch command |
cnc-gvariable-toggle | Toggles a global variable (writes 0 or 1 into the global variable, depending on the previous value) |
cnc-gvariable-clear | Clears the value of a global variable |
Action Name | Description |
---|---|
direct-run: | Allows for a direct run of a command from a BDisplay element. This will allow for a direct command which will be executed when a BDisplay element is clicked/pressed. |
direct-run-confirm: | Will execute a command directly after a BDisplay element has been clicked AND after the user has confirmed that they want to proceed with the action via a confirmation dialog. |
radio-confirm | Used for RadioDisplay elements to bring up a popup to ask the user to confirm whether the value should be changed before taking action |
mode-cutting-ignore | Ignores cutting commands to simply move over the material to check the machine movement path. Replaced by global variable #7530 in the more recent profiles (1366 series) |
mode-cutting-accept | Accepts cutting commands from the control program |
mdi-save-list | Reserved for a procedure in which a series of commands are entered through the Manual Data Input process, and which are then saved as a command list in a file. Contact myCNC Support for more information on this action. |
mode-show-ruler | Shows a ruler in the visualization window which indicates the 2D part's dimensions (width/length) |
mode-show-dimension | Shows the overall dimensions of the part on the program visualization screen (width/length) |
mode-show-workarea | Shows a box around the program visualization which will denote the work area (useful to see the minimum material dimensions necessary to fit the entire program file in) |
Action Name | Description |
---|---|
system-cmd | Run a system command |
application-close | Close MyCNC application |
application-close-confirm | Run confirmation dialog to Close MyCNC application (will ask the user to confirm via a popup window before closing the application) |
application-minimize | Minimize MyCNC Application |
Action Name | Description |
---|---|
| Obsolete |
| Obsolete |
| Obsolete |
cnc-variable-change, cnc-variable-toggle, cnc-variable-set, cnc-variable-clear, cnc-variable-vset, cnc-variable-switch | Obsolete |
| Obsolete |
| Obsolete |
item-switch: | Used to switch between different values/labels for a certain item (allows to switch between options on a preset list) |
run-numpad: | Opens the numpad widget |
item: | See Common Item List for more information. |
fake | Empty Handler Action. Nothing happens when you run this action |
myitem-value-inc, myitem-value-dec | Increement/Decrement XML item value by name |
Action Name | Description |
---|---|
search-nc-position | Opens a dialog window to locate the line for the Run From Here command |
file-refresh | Refresh the program file |
row-n-column | Open Row And Column Multiplication/Nesting Dialog |
dialog-rotate | Open Dialog for the program rotation |
mypopup-show: | Show custom defined Popup widget |
mypopup-toggle: | Toggle (show/hide) a custom popup widget |
mode-jog-unlimited | Switch to Unlimited Jog Mode |
show-simple-edit | Show simple text editor window (Ver #1) |
show-simple2-edit | Show simple text editor window (Ver #2) |
rotate-nc-last | Rotage NC program to previously defined angle |
cnc-cutchart-save | Save the current cutting data to the Cutchart |
cnc-cutchart-load | Load cutting data for selected Cutting Mode |
run-from-here | Run From Here command - start job from the selected line |
The examples for the screen configuration can be found here: Screen configuration examples