B: Network Configuration Using UDP
XPress™ DR Industrial Device Server User Guide 73
Byte Command Parameters Notes
be set to the string
IP-SETUP (Hex 49
50 2D 53 45 54 55
50).
Next 2 bytes have
to be set to 00.
Next 2 bytes must
contain the mac
address.
Next 4 bytes have
to be the new IP
This block can be sent as a broadcast,
because the mac address is unique. It provides
one method to set the IP address of the device
server if is on the local network and the mac
address is known. Remember, broadcasts are
only ‘heard’ on the subnet on which they are
generated. No reply is sent by the device
server, which restarts using the new IP
address after the block is received.
Example (all in Hex):
49 50 2D 63 45 54 55 50 00 00 2A 12 81 00 01
02
IP address of the node with mac address 42-18
set to 129.0.1.2
Configuration
changes IP address
Configuring Multiple Devices
When configuring a number of device servers identically, it is useful to create a template setup
record. The setup record can then be sent to the “target” device servers from a “master” device
server via “cut and paste” or UDP (see Network Configuration Using UDP).
Device servers use a 120-byte setup record in Intel Hex format. This format facilitates the transfer
of binary data using ASCII characters. See Setup Records and The Intel Hex Format for
information about setup records and converting them to Intel Hex format.
Figure B-1 Sample Setup Record in Intel Hex Format
:20000010AC10C81D0000100000000000AC10010B4C0200001127000000000000C000000011
:200020100000000000000000000000000000000000000000000000000000000000000000B0
:200040104C0200001227000000000000C00000000000000000000000000000000000000049
:1800601000000000000000000000000000000000000000000000000078
:00000001FF
Acquiring a Valid Setup Record
There are a number of ways to acquire a valid setup record:
Copy the setup record of a properly configured device server via Monitor Mode (easiest
method).
Request the setup record of a properly configured device server via another device server on
the network.
Build the setup record in software.
From a host PC, request the setup record of a properly configured device server via UDP.
To copy the setup record of a properly configured device server:
1. Configure a “master” device server with the desired parameters.
2. Enter Monitor Mode on the master device server (see 11: Monitor Mode).