228 ● #TCPERR DMC-40x0 Command Reference
#TCPERR
FUNCTION: Ethernet communication error automatic subroutine
DESCRIPTION:
The following error (see TC) occurs when a command such as MG “hello” {EA} is sent to a failed
Ethernet connection:
123 TCP lost sync or timeout
This error means that the client on handle A did not respond with a TCP acknowledgement (for
example because the Ethernet cable was disconnected). Handle A is closed in this case.
#TCPERR allows the application programmer to run code (for example to reestablish the
connection) when error 123 occurs.
USAGE:
While Moving Yes
In a Program Yes
Command Line No
Controller Usage
DMC-40x0
RELATED COMMANDS:
TC Tell error code
_
IA4 Last dropped handle
MG Print message
SA Send ASCII command via Ethernet
EXAMPLES:
#L
MG {EA} "L"
WT1000
JP#L
#TCPERR
MG {P1} "TCPERR. Dropped handle", _IA4
RE
NOTE: Use RE to end the routine