DMC-18x6 Command Reference
61
CW
FUNCTION: Copyright information / Data Adjustment bit on/off
DESCRIPTION:
The CW command has a dual usage. The CW command will return the copyright information
when the argument, n is 0. Otherwise, the CW command is used as a communications
enhancement for use by the Galil PC software. When turned on, the communication
enhancement sets the MSB of unsolicited, returned ASCII characters to 1. Unsolicited ASCII
characters are those characters which are returned from the controller without being directly
queried from the terminal. This is the case when a program has a command that requires the
controller to return a value or string. Because of the dual function, only one field can be set at
a time. Instead of "CW2,1," use "CW2;CW,1".
ARGUMENTS: CW n,m
where
n = 0
Causes the controller to return the copyright information
n = 1
Causes the controller to set the MSB of unsolicited returned characters
to
1
n = 2
Causes the controller to not set the MSB of unsolicited characters.
n = ?
Returns the copyright information for the controller.
m is optional
m = 0
Causes the controller to pause program execution when output FIFO is
full, and to resume execution when FIFO is no longer full.
m = 1
Causes the controller to continue program execution when output FIFO
is full. Characters output after FIFO is full will be lost.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
2, 0
In a Program
Yes
Default Format
-----
Command Line
Yes
Controller Usage
ALL CONTROLLERS
OPERAND USAGE:
_CW contains the value of the data adjustment bit. 2 = off, 1 = on
Note: The CW command can cause garbled characters to be returned by the controller. The default state
of the controller is to disable the CW command, however, the Galil Servo Design Kit software and terminal
software may sometimes enable the CW command for internal usage. If the controller is reset while the
Galil software is running, the CW command could be reset to the default value which would create
difficulty for the software. It may be necessary to re-enable the CW command. The CW command status
can be stored in EEPROM