![Emerson EMC DX-202 Скачать руководство пользователя страница 190](http://html1.mh-extra.com/html/emerson-emc/dx-202/dx-202_manual_2400893190.webp)
- 189 -
ASCII COMMANDS
Overview
All programming done without PCX software must use the provided ASCII serial commands.
There are presently three types of serial commands: Execution, set up, and query. Some
commands may be only one type and others may be all three types.
In general, an execution command is one that requires the drive to take action. This may be in
the form of starting motion, stopping motion, or changing status (example: Changing velocity).
Execution commands should only be used after all motion functions have been programmed
through the set up commands.
Set up commands are used to program motion functions such as indexes, home cycle and job
parameters. These commands provide the means to change velocities, accel/decel rates, and
distances. Set up commands are also used for I/O assignment, initilization and run time control.
Query commands are used to ask for information from the drive. The drive will respond with the
value, mode type, or status that has been programmed into memory. Query commands are useful
during both set up and execution.
All three types of serial commands must follow a format that can be recognized by the drive.
The format used for all serial commands is given below. If a command is not recognized or
cannot be carried out, the drive will respond with a "?" as an error indication.
{"?" }
[ID] COMMAND [MODIFIER]
{"=" (INFO)} CR [LF]
{(NULL) }
ID – AXIS IDENTIFIER
An axis identifier is only needed when more than one drive
is on the serial line, otherwise the axis identifier should not
be transmitted in the command string. If axis identifiers are
being used, an axis identifier of "0" in the transmitted
command string will address all axes.
COMMAND
All serial commands consist of two ASCII characters.
MODIFIER
Some serial commands require a number modifier to identify the particular
parameter being addressed with the command.
"?"
Indicates a Query command. The axis will send a response in the format used for the
setup command.
"="
Indicates a Setup command. The axis will respond with a "
∗
".
(NULL)
If either a "?" or "=" is present the command is assumed to be an execution command
that requires some action.
CR
All commands are terminated with a carriage return.
LF
An optional line feed may be sent with the command. The line feed will always be sent
after the CR if auto line feed is set on the DIP switches.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com