6 error status, Error status -29, Section – ElmoMC SimplIQ Software Manual User Manual
Page 91: Simpliq

SimplIQ
Software Manual
Program Development and Execution
MAN-SIMSW (Ver. 1.4)
6-29
When an error occurs inside a specified VAC machine, it returns an error to the main loop
responsible for running the entire set of VAC machines. This manager stops all other VAC
machines with a “Program Aborted by another thread” error. The VAC machine in which
the error occurred is designed by the error code that is different from the “Program Aborted
by another thread” error.
The DB##PS command enables the user to analyze the various debugging functions
described later in this section.
6.7.6
Error Status
The DB##ES command returns the last error of the user program.
Syntax:
DB##ES[N]
where N is a handle of a specified VAC machine.
DB##ES returns a string of hexadecimal binary data with the following information:
Name
Meaning
Data Type
Size
in Bytes
1 Error code
Last error code, or 0 for no error
Signed short
2
2 Program
counter
(PC)
Program counter in which the last
error was latched
Unsigned short 2
3 Program
error
counter
Number of errors that occurred in N
program, or 0 if no error occurred. It
can be more than 1 if, after an error,
execution was resumed by an
AUTO_PERR routine. This number
starts again from 0 when the error
reaches 65,525. The program error
counter is reset each XQ.
Unsigned short 2
A non-zero error code indicates that an error occurred. The DB##ES[N] command is used to
isolate an error that did not stop the user program, but rather jumped it to an AUTO_PERR
routine. The command clears both the “program error” bit in the status register and the
“run-time error” bit of machine N in the DB##MS command.