Tool Setup Screen - Files & Face
(Click on Image to Jump to related help)
The Tool Setup Screen allows KMotionCNC to be configured for a particular machine tool. Each machine tool is likely to have different motion resolution, speeds, and acceleration limits. It is also likely to different I/O requirements with regard to Spindle control and such. Additionally a machine may have different initialization and homing requirements. KMotionCNC has a flexible mechanism for defining what type of action is to be performed for various M Codes and Custom Buttons.
Tool Table File
The Tool Table File specifies the disk text file which contains the table of tool definitions. In some cases the G Code Interpreter needs to know the length and diameter of the selected tool for tool path compensation. This file is used to define up to 99 tools. See also Selecting Tools.
See below for an example Tool Table POC
FMS LEN DIAM COMMENT 1
1 0.0 0.0 first tool 2
2 0.0 0.0 3
3 1.0 0.5 4
4 2.0 1.0 32
32 0.0 0.0 last tool
POC FMS LEN DIAM COMMENT
1 1 0.0 0.0 first tool
2 2 0.0 0.0
3 3 1.0 0.5
4 4 2.0 1.0
32 32 0.0 0.0 last tool
The Setup File specifies the disk text file which contains the setup table for the G Code Interpreter. In some machine tools the Interpreter may require a special initialization state. Below is the default Setup file. Modifications to the setup file should not normally be required.
Value Other Possible Values
axis_offset_x 0.0 any real number
axis_offset_y 0.0 any real number
axis_offset_z 0.0 any real number
block_delete ON OFF
current_x 0.0 any real number
current_y 0.0 any real number
current_z 0.0 any real number
cutter_radius_comp OFF LEFT, RIGHT
cycle_r 0.0 any real number
cycle_z 0.0 any real number not less than cycle_r
distance_mode ABSOLUTE INCREMENTAL
feed_mode PER_MINUTE INVERSE_TIME
feed_rate 5.0 any positive real number
flood OFF ON
length_units MILLIMETERS INCHES
mist OFF ON
motion_mode 80 0,1,2,3,81,82,83,84,85,86,97,88,89
plane XY YZ, ZX
slot_for_length_offset 1 any unsigned integer less than 69
slot_for_radius_comp 1 any unsigned integer less than 69
slot_in_use 1 any unsigned integer less than 69
slot_selected 1 any unsigned integer less than 69
speed_feed_mode INDEPENDENT SYNCHED
spindle_speed 1000.0 any non-negative real number
spindle_turning STOPPED CLOCKWISE, COUNTERCLOCKWISE
tool_length_offset 0.0 any non-negative real number
traverse_rate 199.0 any positive real number
Geometric correction file. Allows correcting errors in the the x,y,z positions. The callibration procedure involves moving the tool tip to an xy array of positions. For example, a precision grid might be printed on a glass or Mylar plate. By Jogging the tool tip to each row and column grid point and recording the machine's x,y,z position, a table of machine coordinates that correspond to perfect coordinates may be obtained. The "measure" button on the main KMotionCNC Screen may be used to log these positions. If such a table is specified here, the system will correct machine coordinates by bilinear xy interpolation of this table. Z is corrected for flatness at the plane of z=0 only.
The table format is shown below.
The first line specifies the number of rows and columns in the table.
The second line specifies the delta x and delta y between gridpoints.
The 3rd line defines any Table x,y offset. With an offset of 0,0 grid point row=0,col=0 will correspond to x=0, y=0. Specifying an offset will shift the table so that row=0, col=0 will correspond to the offset position. For example if the machine coordinates are such that the origin is in the middle of the range of travel, then a negative offset would be specified.
The remaining lines are row, column, x, y, z table entries.
For more information see here.
The Vars File is used to save all the GCode Variables which contain Fixture Offsets as well as other values. When Variables are saved to disk the file must already exist which lists which variables are to be saved. The file is read and all the variables present in the file will be replaced with their current values. Variables 5221-5226 contain the XYZABC coordinates of the first fixture offset. Skip 20 for each successive fixture.
Main Dialog Face
The Main Dialog Face selection selects the look of the main operation screen for KMotionCNC. Currently there are several available selections. The main difference is the number of axes, DROs and jog buttons. It is also possible to alter the dialogs by using a WindowsTM Resource Editor in Microsoft Visual Studio.
By selecting “Custom”, users can load cusom screen script files which can be created and modified using the KMotionCNC Screen Editor.