_ED2
Retry failed command (operand contains the location of the failed command)
_ED3
Skip failed command (operand contains the location of the command after the failed
command)
The operands are used with the XQ command in the following format:
XQ _ED2 (or _ED3),_ED1,1
Where the “,1” at the end of the command line indicates a restart; therefore, the existing program
stack will not be removed when the above format executes.
The following example shows an error correction routine which uses the operands.
Example - Command Error w/Multitasking
#A
Begin thread 0 (continuous loop)
JP#A
EN
End
of
thread
0
#B
Begin
thread
1
N=-1
Create
new
variable
KP N
Set KP to value of N, an invalid value
TY
Issue
invalid
command
EN
End
of
thread
1
#CMDERR
Begin command error subroutine
IF _TC=6
If error is out of range (KP -1)
N=1
Set N to a valid number
XQ _ED2,_ED1,1
Retry KP N command
ENDIF
IF _TC=1
If error is invalid command (TY)
XQ _ED3,_ED1,1
Skip invalid command
ENDIF
EN
End of command error routine
Mathematical and Functional Expressions
Mathematical Operators
For manipulation of data, the DMC-1600 provides the use of the following mathematical
operators:
OPERATOR FUNCTION
+ Addition
- Subtraction
* Multiplication
DMC-1600
Chapter 7 Application Programming
•
135