![Pepperl+Fuchs IC-KP-B17-AIDA1 Скачать руководство пользователя страница 106](http://html1.mh-extra.com/html/pepperl-fuchs/ic-kp-b17-aida1/ic-kp-b17-aida1_manual_1527930106.webp)
2014-
02
106
Appendix A
12
Appendix A
12.1
Example 1
The following example uses assembly objects 101d/151d (mixed mode) and results in
the following:
■
Setting the data carrier IPC02 on channel 1 and channel 3.
■
Reading the read only code from an IPC02 data carrier.
■
Implicit communication.
The following prerequisites must be fulfilled:
■
One type IPH-XX R/W head is connected to channel 1 and channel 3 on the
IDENTControl.
■
One type IPC02 data carrier is located in front of each R/W head.
■
The IP address of the IDENTControl is set to a free address ().
■
The device is connected to the network.
Setting connection parameters
These parameters are configured on the PLC:
Setting tag type IPC02 on channels 1 and 3
Send a Change tagcommand to channel 1 as an implicit command:
A command confirmation appears in the input field:
Assembly instance
Size (32 bits)
Input: 151
3
Output: 101
3
Configuration: 112
(this value is used for all input/output
instances)
0
(this value is used for all input/output
instances)
Byte no.
Use
Contents Description
Byte 0
Command code
04h
Command
CT
(Change tag)
Byte 1
Channel/Toggle bit
02h
Channel = 1
Toggle bit = 0
Byte 2
Tag type (high byte)
30h
IPC 02
Byte 3
Tag type (low byte)
32h
IPC 02
Byte 4
...
Byte 11
00h
Byte no.
Use
Contents Description
Byte 0
Command code
04h
Command
CT
(Change tag type)
Byte 1
Number of double words/
Channel/Toggle bit
02h
Channel = 1
Toggle bit = 0
Byte 2
Status
FFh
Processing command.
Byte 3
Reply counter
01h
For every IDENT telegram, the
value on the reply counter
increases by 1.
Byte 4
...
Byte 11
00h