Tag Archives: Basic Programming Terms

Basic Programming Terms – CNC Structure In 4 Steps


The smallest unit in CNC programming is a character. It can be a letter, digit, or a symbol. They are combined to make ‘words’ in the CNC language. A letter is just what it sounds like; a letter from the alphabet. While 26 letters are usable for programming, read this article for a list of commonly used letter codes.

There’s ten digits, 0 to 9, used to make numbers in programs. They are used in two different ways; with or without decimals. It depends on the mode, as well as the control. A number can also be used in place of a decimal-number if the controller allows it.

Symbols are the third type of character used in CNC programming. It depends on the control options, but the symbols used most often include: a decimal point, parenthesis, minus sign, as well as a percentage sign.


Words are the next step in the structure, and they are simply a combination of characters. A word consists of a capital letter, followed by a number, and sometimes a symbol, depending on the code. Words are used to specify speed, feedrate, position, commands, and other functions.


Basic Programming Terms - CNC Structure In 4 Steps

A Block, also known as a Sequence block, is multiple Words. A word is just one piece of information or instruction, while a block uses at least one word to make a complete command or cycle. Blocks are written on separate lines, and are separated by an “End-of-Block” code.


How do you get a CNC Program? You put a bunch of Blocks together that will machine a part. As simple as that sounds, you have to have all the right characters and words to get each command to work. A program will begin with a program number, and will be sequenced by blocks in order of operations, and end with a program stop or cancel code.

Character > Word > Block > Program