Interrogation Commands - Galil Motion Control DMC-1000 User Manual

Table of Contents

Advertisement

If the value of the variable RESULT is equal to 999999.999, the above message statement returns the
following:
The Final Value is 99999.99
The message command normally sends a carriage return and line feed following the statement. The
carriage return and the line feed may be suppressed by sending {N} at the end of the statement. This
is useful when a text string needs to surround a numeric value.
Example:
When #A is executed, the above example will appear on the screen as:
The speed is 50000 counts/sec
The MG command can be used to configure a terminal. Any ASCII character can be sent by using the
format {^n} where n is any integer between 1 and 255.
Example:
MG {^07} {^255}
sends the ASCII characters represented by 7 and 255 to the bus.
FUNCTION
" "
{Fn.m}
{$n.m}
{^n}
{N}
{Sn}
The DMC-1700 has a set of commands that directly interrogate the controller. When these command
are entered, the requested data is returned in decimal format on the next line followed by a carriage
return and line feed. The format of the returned data can be changed using the Position Format (PF),
and Leading Zeros (LZ) command. For a complete description of interrogation commands, see
chapter 5.
DMC-1000
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#A
JG 50000;BGX;ASX
MG "The Speed is", _TVX {F5.1} {N}
MG "counts/sec"
EN
Using the MG Command to Configure Terminals
Summary of Message Functions:
DESCRIPTION
Surrounds text string
Formats numeric values in decimal n digits to the right of the decimal point
and m digits to the left
Formats numeric values in hexadecimal
Sends ASCII character specified by integer n
Suppresses carriage return/line feed
Sends the first n characters of a string variable, where n is 1 through 6.

Interrogation Commands

Chapter 7 Application Programming • 111

Advertisement

Table of Contents
loading

Table of Contents