118153-001 Rev. B
14
4.2
Ethernet
4.2.1 Configuring the uX For a Local Area Network (LAN)
If you have chosen to place the uX onto your local area network you will need:
A CAT5 network patch cable to physically connect the uX to the LAN
A static IP address to assign to the uX.
Remember that even if the IP address you have selected is in general a valid IP
address it needs to be valid for your LAN (local area network). Otherwise the
device will not be accessible from an Internet browser or Ping.
4.2.2 Configuring Ethernet communications in C#
A complete description of the use of sockets in C# for Ethernet communication is
beyond the scope of this document, however a brief introduction is given here.
First a socket must be created and initialized to the correct IP address and port
number. In the following code snippet, address has the IP address assigned to
the uX and IPPort the port number.
public
CommResult
Connect(
byte
[]
address,
int
IPPort)
{
lastResult
=
CommResult
.CmdErr;
socket
=
new
Socket
(
AddressFamily
.InterNetwork,
SocketType
.Stream,
ProtocolType
.IP);
socket.NoDelay
=
true
;
try
{
socket.Connect(
new
IPAddress
(address),
IPPort);
}
catch
(
SocketException
sockEx)
{
Logger
.Write(
Logger
.ErrLog,
"ERROR:
Socket
terminated
on
connect
with:
"
+
sockEx.Message);
}
if
(socket.Connected)
{
lastResult
=
CommResult
.CmdGood;
}
return
lastResult;
}
Now this open socket can be used to communicate with the uX. In the following
code snippet the socket is passed in the argument “sock” and the string “cmd”
has the command to be sent. The code waits for a response and then stores it
back in the “cmd” string.
Summary of Contents for uX SERIES
Page 11: ...uX MANUAL 4 118151 001 REV A Figure 2 1 50kV uX DIMENSIONS ...
Page 12: ...uX MANUAL 5 118151 001 REV A Figure 2 2 65kVuX DIMENSIONS ...
Page 16: ...uX MANUAL 9 118151 001 REV A Table 3 2 DC Input Filament Connections ...
Page 17: ...uX MANUAL 10 118151 001 REV A Figure 3 3 Monitors Voltage Current Control Connections ...
Page 18: ...uX MANUAL 11 118151 001 REV A Figure 3 4 Recommended Interlock HV on Configurations ...