General Rule for Faster Ethernet Communication:
When commands are sent to the controller via Ethernet, we recommend
that individual commands be separated into individual lines rather than
multiple commands per line. This insures that the computer will always
have new data to send to the controller along with the acknowledgements
to controller responses.
When executing these commands as separate lines, the execution will be
extremely fast . The controller will generate a response with each
command. The computer will immediately send an acknowledgement and
the next command. Note that the last command to be executed will not be
acknowledged until the time-out period has elapsed. Consider the
Example:
Executing single commands per line:
Consider the following commands sent from the computer sequentially:
MO
SH
DPX=1000
TPX
JGX
BGX
The execution of these commands takes approx 1.6 msec each for approx.
9.6 msec.
1. The computer sends a packet with the command MO.
2. The controller sends an acknowledgement of the packet
received.
3. The controller executes the command MO and sends a packet
with the response, ":"
4. The computer sends an acknowledgement of the ":" and the
next command, SH
5. The controller sends an acknowledgement of the packet
received.
6. The controller executes the command SH and sends a packet
with the response, ":"
7. The computer sends and acknowledgement of the ":" and the
next command, DPX=1000