Ec - error code – ElmoMC SimplIQ Digital Servo Drives-Bell Command Reference User Manual

Page 52

Advertising
background image

EC - Error Code

Purpose:
Reports the processing status of the last accepted command that returned an error.

Notes:

When the processing of a command fails, the error code is returned immediately

with a question mark in the response to that command. The error code returned
with the command response is binary, so it may not be easily seen. The EC
command returns a printable (ASCII) value of the error code.

The EC command cannot be used reliably from the Composer Smart Terminal

because the Composer generates continuous communication with the servo
drive. The returned EC value probably reflects the status of the latest Composer
command, not the status of the last Smart Terminal command.

New error codes may be defined as software evolves.
The SimplIQ drive stores internally its entire set of error code and a short

comment describing each, so the Composer program may correctly interpret
errors from any software version.

The following table lists the error codes reflected by the EC command.

Error
Code


Error String / Description


Example / Remedy

2 Bad

command.

The interpreter has not understood the
command.

XF=2; is an error because there is
no XF command.
MC=2; is an error because the MC
cannot be changed by the
interpreter.

3 Bad

index.

Attempt to access a vectored variable out
of its boundaries.

DV[6] is an error because the
index range is 1 - 3.
Observe the index range for the
used command.

5

Has no interpreter meaning.
An unrecognized character has been found
where a command was expected.

A*=3 is an error because a
command mnemonic consisting of
two alphabetic characters was
expected.

6

Program is not running.

This command requires a running
program.

SimplIQ for Steppers Command Reference Manual

Alphabetical Listing

MAN-STECR (Ver. 1.1)

44

Advertising