Table of contents |

# GCode Screen

Show screen feature descriptions

See Also G Code Viewer Screen and Tool Setup Screen

The G Code Screen allows the user to edit G Code Programs and execute them.

GCode is a historical language for defining Linear/Circular/Helical Interpolated Motions often used to program numerically controlled machines (CNC Machines).

See the Quick Reference to the left for commonly used G Code commands.

KMotion's G Code interpreter was derived from the Open Source EMC G Code Interpreter.Click here for the EMC User Manual (Only the G Code portions of the manual, Chapters 10-14 pertain to KMotion G Code)

Specially coded comments embedded within a GCode program may be used to issue KMotion Console Script commands directly to KMotion.

A comment in the form: (CMD,xxxxxx) will issue the command xxxxxx immediately to KMotion as soon as it is encountered by the Interpreter. Any KMotion command that does not generate a response may be used in this manner.

A comment in the form: (BUF,xxxxxx) will place the command xxxxxx into KMotion's coordinated motion buffer. Coordinated motion sequences are download to a motion buffer within KMotion before they are executed. This guarantees smooth uninterrupted motion. The BUF command form allows a command to be inserted within the buffer so they are executed at an exact time within the motion sequence. Only the following KMotion Script commands may be used in this manner.

SetBitBuf, ClearBitBuf, SetStateBitBuf.

Additionally, a comment in the form: (MSG,xxxxxx) will pause GCode Execution and display a pop-up message window displaying the message xxxxxxx.