Command Descriptions
119
ERROK
Good Prompt
Type
Communication
Interface
Syntax
<a_><!>ERROK<i>,<i>,<i>,<i>
Units
n/a
Range
i
=
0
-
256
Default
13,10,62,32
Response
ERROK: *ERROK13,10,62,32
See Also
ERRBAD,
ERRDEF,
ERRLVL, PORT, XONOFF
Product Rev
GT6K 6.0
GV6K 6.0
The
ERROK
command designates the characters to be placed into the output buffer after a command has
been entered correctly. Up to 4 characters can be placed in the output buffer. These characters serve as a
prompt for the next command. The characters are designated with their ASCII equivalent. For example, a
carriage return is ASCII 13, a line feed is ASCII 10, a greater than symbol is ASCII 62, a space is ASCII
32, and no terminating character is designated with a zero. For a more complete list of ASCII equivalents,
refer to the ASCII Table in
Appendix B
.
The
ERROK
characters are not transmitted when you send an immediate command (e.g.,
!TPE
) to the
product (or task) while it is executing a program.
NOTE
: ASCII 256 transmits nothing. ASCII 256 transmits a null ASCII zero character, which is typically
used to create a null terminated string in a C language.
The
PORT
command determines which COM port is affected by the
ERROK
command.
Example:
ERROK13,0,0,0
; Place a carriage return only in the output buffer after
; processing a valid command
ERROR
Error-Checking Enable
Type
Error
Handling
Syntax
<a_><!><%>ERROR<b><b>...<b><b>
(32
bits)
Units
n/a
Range
b
=
0
(disable),
1
(enable),
or
X
(don't
change)
Default
0
Response
ERROR: *ERROR0000_0000_0000_0000_0000_0000_0000_0000
bit
1
bit
32
See Also
[
ASX
], DSTALL, [ ER ], ERRORL, ERRORP, ESTALL, GOWHEN, INFNC,
K, KIOEN, LH, LS, S, TASX, TER, TRGFN
Product Rev
GT6K 6.0
GV6K 6.0
When an error-checking bit is enabled (
ERROR11...11
), the operating system will respond to a specific
execution error by doing a GOSUB or a GOTO to the error program assigned with the
ERRORP
command
(see table below). Each bit corresponds to a different error condition. To enable or disable a specific bit, the
syntax is
ERROR.n-b
, where “
n
” is the error bit number and “
b
” is either
1
to enable or
Ø
to disable.
MULTI-TASKING
If you are operating multiple tasks, be aware that you must enable error conditions (
ERROR
) and
specify an error program (
ERRORP
) for each task (e.g.,
2%ERROR.2-1
and
2%ERRORP
FIX
for
Task 2). Each task has its own error status register (reported with
ER
,
TER
, and
TERF
).
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...