MNEMONIC | FUNCTION | TYPE |
ER | Error Number Variable | Status Variable |
DESCRIPTION
The ER variable indicates the program error code for the most recent error that has occurred in the MDrive Motion Control. The ER variable must be read in order to clear the EF flag.
See Appendix A of this document for a complete listing of MDrive Motion Control Error Codes.
USAGE | RESPONSE |
|
PR ER | <numerical error code> |
|
|
|
|
EXAMPLE: |
|
|
PR ER | ‘read the error number |
|
|
| |
RELATED COMMANDS: EF, OE |
| |
|
|
|
MNEMONIC | FUNCTION | TYPE |
EX | Execute Program | Program Instruction |
DESCRIPTION
Execute program at a specified address or label using a selected trace mode. Used in immediate mode.
There are three modes of program execution.
Mode 0 Normal execution, is specified by a mode of 0 (or simply leaving the mode blank).
Mode 1 Trace mode is specified by a mode of 1. This means that the program executes continuously until the program END is encountered, but the instructions are “traced” to the communications port so the user can see what instructions have been executed.
Mode 2 Single step mode is specified by a mode of 2. In this mode, the user can step through the program using the space bar to execute the next line of the program. The program can be resumed at normal speed in this mode by pressing the enter key.
USAGE | MODES |
EX <addr/label>,<mode> | <mode> = 0: run program normally |
| <mode> = 1: run program in trace mode |
| <mode> = 2: run program in |
EXAMPLE: |
|
EX 127 | ‘execute program at line 127 normally |
EX 127,1 | ‘execute program at line 127 in trace mode |
RELATED COMMANDS: PG, E
44