Communication Via Tcp/Ip; Data Exchange Via Tcp/Ip - Pepperl+Fuchs IC-KP2-2HB17-2V1D Manual

Identcontrol compact unit with ethernet interface
Hide thumbs Also See for IC-KP2-2HB17-2V1D:
Table of Contents

Advertisement

IC-KP2-2HB17-2V1D
Commands
Example of logged lines
The following appears in the window:
0000029.987 CH1 rsp BUS 01 s:0 l:0005 64.03.03.03.03
0000029.845 BUS req CH1 01
Meaning of logged lines
Time stamp
0000029.987 CH1
0000029.845 BUS
When the time is 0000029.845, the bus sends the command 01 (=SF) to channel 1 of the
IDENTControl Compact. When the time is 0000029.987, the IDENTControl Compact sends
the response with the data packet to the bus.
7.6

Communication via TCP/IP

7.6.1

Data exchange via TCP/IP

TCP/IP is a widely used communications protocol. TCP/IP is not classed as an industrial
Ethernet protocol, but is used in industrial environments. The advantage of the TCP/IP is that
you can use most programming languages to operate the control unit without requiring
additional protocol stacks.
The IDENTControl Compact is a TCP/IP server. Each function must be actuated by a
command from the client (control software).
Communication occurs via TCP port 10000: The IDENTControl Compact waits for a
connection to be established to port 10000 and responds to incoming commands. Knowledge
of TCP/IP sockets is necessary in order to program the control software.
The illustration shows the basic communication flow:
Control software
(client)
Establishment of
connection on
TCP/IP layer
Data exchange
Tear-down of
connection
on TCP/IP layer
Command
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
...
Byte N
28
Sender Message type Receiver Command Status Data length Data
rsp
BUS
req
CH1
Telegram length, high byte [(N+1) div 256]
Telegram length, low byte [(N+1) mod 256]
Command code
Channel / Toggle bit = 0
Parameter
Parameter
Write data
...
Write data
01
s:0
l:0005
01
IDENTControl Compact
(server)
Establishment of
connection on
TCP/IP layer
Data exchange
Tear-down of
connection
on TCP/IP layer
64.03.03.0
3.03

Advertisement

Table of Contents
loading

Table of Contents