EasyManua.ls Logo

Pepperl+Fuchs IC-KP2-2HB17-2V1D - Command Examples TCP;IP

Pepperl+Fuchs IC-KP2-2HB17-2V1D
122 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
IC-KP2-2HB17-2V1D
Commands
2014-02
29
Confirmation
Response
7.6.2 Command examples TCP/IP
1st example: Preset data carrier type using the change tag command
(see "Change tag (CT)" on page 58)
Command: Change data carrier type on channel 1 to IPC03.
Confirmation
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
Byte 0 Telegram length, high byte [(N+1) div 256]
Byte 1 Telegram length, low byte [(N+1) mod 256]
Byte 2 Command code (Echo)
Byte 3 Channel / Toggle bit = 0
Byte 4 Status
Byte 5 Reply counter
Byte 6 Read data
... ...
Byte N Read data
Note!
The toggle bit is not required for communication via TC P/IP.
00:06:04:02:30:33 (hexadecimal format)
00:06 Telegram length (6 bytes)
04 Command code (CT)
02 Reserved/Channel (l), toggle bit (0)
30:33 Data carrier type (IPC03)
00:06:04:02:FF:01
00:06 Telegram length (5 bytes)
04 Repeat command code (CT)
02 Reserved/Channel (l), toggle bit (0)
FF Status FFh (processing command)
01 Reply counter

Table of Contents

Related product manuals