ww
w
.ip
el
ec
tr
on
ix
.c
om
IPEX
(IP Electronix)
PH485Ex4
:
User’s Manual
Page 23 of 28
Doc No.: PH485Ex4-UM-001
14 January 2022
18.
CONNECTING TO DEVICE VIA TCP SOCKET
It is possible to directly connect to PH485Ex4 RS-485/422 Serial Ports from any node of the network by using
socket programming. This is simply done if you know only PH485Ex4 IP Address and socket port number for
each Port. The default port numbers are as follow:
-
Port 1: 9761
-
Port 2: 9762
-
Port 3: 9763
-
Port 4: 9764
For example, we connect to Port 1 by means of Hyper Terminal. Run Hyperterm.exe and from properties dialog
box, select “TCP/IP (Winsock)”:
Enter device IP Address in the “Host address:” section, for example 192.168.1.100 and the port number in the
“Port Number:” section (port number for Port 1 is 9761), then click on OK.
Now if you type some characters, you can see that port 1 TX Blue LED is blinking that means the data is sent to
PH485Ex4 port 1.
NOTICE: Don’t forget to set PH485Ex4 in
SERVER Mode
for this method of connection.