Example 1 - 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
Appendix A
11
Appendix A
11.1

Example 1

Assembly objects 101d/151d (mixed mode) are used in the example. The following
functions are activated:
Set tag type IPC02 on channel 1 and channel 2.
Read read only code from IPC02 tag.
Implicit communication.
Prerequisites:
One type IPH-XX read/write head is connected to channel 1 and channel 2 on the
IDENTControl Compact.
One type IPC02 tag is located in front of each read/write head.
The IP address of the IDENTControl Compact is set to a free address.
The device is connected to the network.
Setting connection parameters
These parameters are configured on the PLC:
Assembly instance
Input: 151
Output: 101
Configuration: 112
(this value is used for all input/output
instances)
Setting tag type IPC02 on channel 1 and channel 2
Send the command change tag to channel 1 as an implicit command:
Byte no.
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
...
Byte 11
Confirmation:
Byte no.
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
...
Byte 11
Use
Command code
Channel/Toggle bit
Tag type (high byte)
Tag type (low byte)
Use
Command code
Number of double words/
Channel/Toggle bit
Status
Reply counter
Size (32 bits)
3
3
0
(this value is used for all input/output
instances)
Type
Description
04h
Command CT (change tag)
02h
Channel = 1
Toggle bit = 0
30h
IPC 02
32h
IPC 02
00h
Type
Description
04h
Command CT (change tag type)
02h
Channel = 1
Toggle bit = 0
FFh
Processing command.
01h
For every ident telegram, the value
on the reply counter increases by
1.
00h
99

Advertisement

Table of Contents
loading

Table of Contents