
12
Ethernet Configuration
12.1
Communication
The PP420 can be configured via the Ethernet connection using UDP or TCP/IP. A
demonstration program with source code can be downloaded from www.gardasoft.com.
Communication consists of commands sent by the host (controlling PC). All output generated by
the command is returned in reply UDP or TCP/IP packets. The last character sent is “>” (“greater
than” symbol). Once this is received, the host knows that the command has been completed.
It is recommended that the host waits for the “>” symbol before sending the next command. UDP
communications are not guaranteed to arrive, so the host software must be able to cope with lost
messages.
Using the GT command, a host can request that a message is sent to it whenever an error occurs.
For TCP and UDP, commands from a host should be sent to destination port 30313. Replies will
be to destination port 30312.
A TCP/IP connection will timeout and close if it is idle for more than 10 seconds. The host must
send regular “heartbeat” commands (eg “VR”) to keep the link open.
12.2
Demonstration Program
A demonstration program is available from www.gardasoft.com which allows the PP420 to be
configured using the commands below.
12.3
Command Structure
Several commands can be put into one command line by separating them by a semi-colon (“;”).
A carriage return character should be sent to terminate the command line. The PP420 will send
any replies to the commands and then send a ‘>’ character to indicate that the command line has
been completed.
Commands comprise a code of two letters followed by the parameters (if any) needed for the
command. Spaces in the commands are ignored.
Numeric parameters are separated by a comma (“,”). For a parameter which is a time period the
default units are milliseconds. “s”, “ms” or “us” can be added to the end of the number to
indicate seconds, milliseconds or microseconds. For currents, “a” or “ma” can be added to
indicate “amps” or milliamps”. The default is amps.