![Pepperl+Fuchs IC-KP-B17-AIDA1 Скачать руководство пользователя страница 26](http://html1.mh-extra.com/html/pepperl-fuchs/ic-kp-b17-aida1/ic-kp-b17-aida1_manual_1527930026.webp)
2014-
02
26
Commands
7.2
Communication via TCP/IP
7.2.1
General information on data communication via TCP/IP
The IC-KP-B17-AIDA1 device was designed to act as a TCP/IP server, which means that the
so-called client must send a command to actuate each function.
Communication is established via the TCP port 10000. Programming control software requires
accurate knowledge of TCP/IP sockets.
The following illustration shows the basic communication flow:
A connection must be established on the TCP/IP level before data can be exchanged. From this
point onwards, commands can be sent from the client to the IC-KP-B17-AIDA1 device.
Command:
Confirmation:
Byte 0
Telegram length, high byte [(N+1) div 256]
Byte 1
Telegram length, low byte [(N+1) mod 256]
Byte 2
Command code
Byte 3
Channel / Toggle bit = 0
Byte 4
Parameter
Byte 5
Parameter
Byte 6
Write data
...
...
Byte N
Write data
Byte 0
Telegram length, high byte 0
Byte 1
Telegram length, low byte 6
Byte 2
Command code (echo)
Byte 3
Channel / Toggle bit (echo) = 0
Byte 4
Status FFh
Byte 5
Reply counter
Control software
Client
IC-KP-...
(Server)
Connection
on TCP/IP level
Connection
on TCP/IP level
Data exchange
Data exchange
Disconnection
on TCP/IP-level
Disconnection
on TCP/IP-level