Ec - error code – ElmoMC SimplIQ Command Reference User Manual

Page 45

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.

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.

7

Mode cannot be started - bad initialization
data.

This error is returned when
preset values of a function are
wrong. For example, there may
be a conflict between the first
index in the PVT table (PV) and
the available write pointer
(MP[6]) when PVT motion
begins.

11

Cannot write to flash memory.
An error interfacing the serial flash has
occurred.

Most probably a hardware
problem.

SimplIQ

Command Reference Manual

Alphabetical Listing

MAN-SIMCR (Ver. 4.5)

3-32

Advertising