Last Escape Code

Modbus Motion Interface

Read_Word(System_+_LastEscapeCode_w);

Description

The Last Escape Code register indicates what error might have ocurred on the last command. To reset the escape code register write a 0. If another command problem occurs before a current error is read the value of the Escape Code register will be updated and information about the first error lost.

Escapes

Reading and writing to the Escape Code register does not generate any escapes. Reported values are found in the "Escape Code" listings. Additional error codes that can be reported include:

Examples

Attempt to set the acceleration to an illegal value of 0, then check for an error.

Write_Single(Axis1_+_Accel_s,0);
Show_Value(Read_Word(System_+_LastEscapeCode_w));

The reported value is 16, acceleration is 0 or negative

Related Topics

Escape Codes