MCode language structure

 
Tutorial overview

This tutorial covers the basic structure and programming conventions of the MCode language.

What you need:

  1. PC with IMS Terminal installed
  2. An MDrive or MForce Motion Control connected to power and RS-422/485 communication. If using an MForce a motor needs to be connected as well.

MCode basics

Basic structure of MCode language

MCode consists of 1 and 2 character mnemonics which access all the features and functions of the Motion Control product family. These mnemoncs are clearly identified as to thier function. i.e. VI (Initial Velocity), A (Acceleration), MS (MicroStep resolution) and etc.

HINT: MCode commands ARE NOT Case sensative. They may be upper or lower case.

There are five basic components of the MCode programming language,
they are:

  1. Instructions
  2. Variables
  3. Flags
  4. Keywords
  5. Math functions

 
next button
Return to MDrive/MForce Motion Control Tutorials


Step 1 Step 2 Step3 Step4