5-12
MICRONIX USA, LLC
www.micronixusa.com
Rev: 3.02
5.3
Global Commands
Some commands have the option of being called globally. This means that you can send the same
command to all available axes. To do this, replace the axis number of a global command with a
‘0’. For example; 0ACC 50 will set the acceleration of all available axes to 50 mm/s
2
[
degrees/s
2
]
.
5.4
Multiple Parameters
When dealing with a command that has multiple parameters, it is possible to change a single
parameter by omitting numbers for the parameters that will remain unchanged. For example;
4PID,,3
will only change the third parameter to a new value, “3”.
5.5
Synchronous Move
It is possible to move multiple motion devices at the same time, or extremely close to, by setting up and
executing a synchronous move. To set up a synchronous move, use the MSA and MSR commands on
the same command line (up to 8 allowed) or on separate lines followed by a line terminator. To execute
the move, use the RUN command on the proceeding command line followed by a line terminator. For
example;
1MSA4;2MSA4;3MSA4
|
Axis 1, Move 4mm; Axis 2, Move 4mm; Axis 3 Move 4mm
0
RUN
|
Run Synchronous Move
Or
1MSA4
|
Axis 1, Move 4mm
2MSA4
|
Axis 2, Move 4mm
3MSA4
|
Axis 3 Move 4mm
0
RUN
|
Run Synchronous Move
5.6
Internal Programming
A program may be used to save time when repeatedly using a sequence of commands. Each
controller or axis must be programmed individually; however, multiple controllers may execute the
same program at the same time. A list of available program numbers may be viewed with the
PGM? command. Existing program numbers cannot be overridden unless previously erased using
the ERA command.
To record a program sequence, enter the PGM command on a unique line followed by a line
terminator. End a program sequence by entering the END command on a unique line followed
by a line terminator. When you want to execute this program, use the EXC command. See the
Summary of Commands
page for a list of program compatible commands and more information
about the PGM, END and EXC commands.
5.7
Terminating Characters
When communicating with the controller, it is necessary to note the terminating characters
involved in transmitting and receiving data. To send data to the controller, enter the desired
commands in the command line followed by the new line and carriage return terminating
characters [\n\r], or just the carriage return terminating character [\r]. When receiving, each line
of data will be followed by the new line terminating character [\n] and the final line will end in
the new line and carriage return terminating characters [\n\r]. The Hexadecimal value for new
line [\n] is 0X0A and for carriage return [\r] is 0X0D. The following is an example of data
transmission:
1VEL0.005 \n\r
|
Axis 1, Set velocity to .005 mm/s [degrees/s
2
] [New line, Carriage Return]
Summary of Contents for MMC-200 Series
Page 1: ......