Tutorial overview
This tutorial covers the basic structure and programming conventions of the MCode language.
What you need:
- PC with IMS Terminal installed
- 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:
- Instructions
- Variables
- Flags
- Keywords
- Math functions
|