You have chosen a device manufactured by Pepperl+Fuchs. Pepperl+Fuchs
develops, produces and distributes electronic sensors and interface modules for
the market of automation technology on a worldwide scale.
Before installing this equipment and put into operation, read this manual carefully.
This manual containes instructions and notes to help you through the installation
and commissioning step by step. This makes sure bring such a trouble-free use of
this product. This is for your benefit, since this:
■ ensures the safe operation of the device
■ helps you to exploit the full functionality of the device
■ avoids errors and related malfunctions
■ avoids costs by disruptions and any repairs
■ increases the effectiveness and efficiency of your plant
Keep this manual at hand for subsequent operations on the device.
After opening the packaging please check the integrity of the device and the
number of pieces of supplied.
Symbols used
The following symbols are used in this manual:
Note!
This symbol draws your attention to important information.
Handling instructions
You will find handling instructions beside this symbol
Contact
If you have any questions about the device, its functions, or accessories, please
contact us at:
You can replace the control interface IRI KHD2-4HB6 and IVI-KHD2 4HB6 with
the control interface IC-KP-B6-SUBD, IC-KP-B6-2V15B or IC-KP-B6-V15B.
Operate one of these control interfaces in the operation mode IRI-B6 or IVI-B6.
The commands can be found on the following pages. Details on the individual
commands and the structure of the codes you find in the manuals for the control
interface units IRI KHD2-4HB6 and IVI-KHD2 4HB6.
The modes IRI-B6 and IVI-B6 can be selected via the multifunctional display and
push buttons on the control interface unit (see manual for the control interface
IDENTControl).
As GSD files you can use the original GSD files of the evaluating IRI KHD2-4HB6
and IVI-KHD2 4HB6.
In order to be able to read transponders of type ICC ... or read and write
transponders of type IDC ..., you need to use read / write heads of type ISH ....
The transponder of type IMC ... are not supported.
Note!
Note that the timing of the control interface units IC-KP-B6 * can be different
compared to the timing of the control interface units IRI-KHD2-4HB6 and IVIKHD2-4HB6.
System P
You can also operate the System P (LF with 125 kHz) in the IRI / IVI mode.
Connect the corresponding read / write heads. If you connect other read / write
heads, commands are answered with an error message. The state 4 is then
inserted into the response.
If you use the System P, the only data carrier supported is the type 03
(transponder IPC03-...). Each first data word (4 bytes) is read as a fixed code.
This data word must be written onto the transponder first, using normal write
commands.
In System P (transponder type 03) you must also adjust the mode Default Read
so that the first data word is read (see "Special commands for the transponder
IPC03" in the manual of the control interface unit IC-KP-B6 *). The addresses for
the beginning and end of the reading area are based on the absolute word
address of the transponder, not on the <WordAddr>. With the setting “beginning
of reading area” = 03h and “end of reading area” = 03h the read / write head
accurately reads the first data word on the transponder.
Since the IRI / IVI-mode only defines a 28 bit long fixed code, only the 28 least
significant bits of the first data word of the System P are masked and outputted as
a fixed code. The number format is not converted. A check for invalid values will
not occur.
2011-08
5
Page 6
IC-KP-B6*
Communication in "IRI-B6" mode and "IVI-B6" mode
Control Word
BitMeaningByte
0 ... 7Beginning of reading area0
8 ... 15End of read area1
16Password mode on / off2
17Mode "Read-after-Write" on / off
18 ... 23freely usable
24 ... 31freely usable3
Configure read range
1. Enable the password mode (command set password mode)
2. Write into the Control Word the “beginning of the reading area” = 03h and
“end of the reading area” = 03h with the commands single write configuration
or enhanced buffered write configuration
3. Disable the password mode (command set password mode)
You can check the data area with address information reading 0000h and
word count reading 00h.
2011-08
6
Page 7
IC-KP-B6*
Communication in "IRI-B6" mode
3Communication in "IRI-B6" mode
Only use "IRI-B6" and "IVI-B6" modes if you intend to operate the control interface
as a replacement for a control interface with the designation "IRI-KH*-4HB6" or
"IVI-KH*-4HB6".
3.1PROFIBUS DP communication parameters (GSD file) for IRI-B6
The GSD file name for "IRI-B6" mode is: P&F_00d2.gsd.
Two modules are defined, one for input data (reading) and the other for output
data (command, transfer). The identification bytes of the modules are defined as
follows:
■ Data consistency along the entire length
■ Word structure
■ Input data ("10 Words Input" module) and output data ("1 Word Output"
module)
One word has 16 bits in "IRI-B6" mode.
The following two chapters describe the structure of the data words for
communication from the DP master to the control interface and from the control
interface to the DP master.
3.2Device identification/software version message for PROFIBUS
DP
The device identification and the software version are transferred via the DP
function “Device-Related Diagnostics”.
Header byte <IDENTIFIER><SW BUS>
Header byte, length of diagnostic data in bytes incl. header byte, here "13"
<IDENTIFIER>6 characters, "IRI-B6"
<SW BUS>6 characters, software creation date of the bus system (DDMMYY)
3.3Communication direction: from PROFIBUS-DP to control
interface
In a direction from the PROFIBUS-DP master to the control interface, the words
are structured as follows:
Word 0Commands and parameters
Bit no.15141312 11 109876543210
DescriptionB4 B3 B2 B1 DS0000000K3 K2 K1T
The commands and command parameters are transferred in word 0.
2011-08
7
Page 8
IC-KP-B6*
Communication in "IRI-B6" mode
Toggle flag (T)
The toggle flag is used to uniquely identify a new valid command. The control
interface only accepts and executes a new command if this flag has a different
status to the previous command, i.e. when it is toggled.
When the control interface on the DP master is acknowledged, the toggle flag is
not changed and indicates to the user that the control interface has received and
processed the command.
Note!
The command is only executed if the execution counter 0.
Command identifier (B4 ... B1)
Command parameters B4 ... B1 are used to define the relevant command.
Command identifier B4 ... B1
15141312Bit no.
B4B3B2B1Meaning
0000No command
0001SF
0010AF
0011BF
0100Not def.
0101Not def.
0110Not def.
0111Not def.
1000Not def.
1001Not def.
1010Not def.
1011Not def.
1100Not def.
1101EF
1110Not def.
1111Not def.
Double side mode (DS)
This function enables double-sided reading. If this bit is set (DS = 1), type ICC-50,
IDC-50 and IDC-CARD read only tags can be read from both sides. Otherwise
read only tags can only be read from the labeled side.
2011-08
8
Page 9
IC-KP-B6*
Communication in "IRI-B6" mode
Head number (K3 ... K1)
Parameters K3 ... K1 are used to define which reading head is addressed.
Head number K3 ... K1
321Bit no.
K3K2K1Head
0001
0012
0103
0114
100All
101All
110All
111All
3.4Communication direction: from the control interface to the
PROFIBUS-DP
In a direction from the control interface to the PROFIBUS master, the 10 data
words are structured as follows:
ERR: Read error flag, head-related
For commands SF, AF, BF: Flag is always 0.
For command EF: The read error is set when a code carrier is not located within
the detection range.
■ L3 ... 1: 3-bit reading number, head-related
The reading numbers of all active heads are set to 0 when the command is
executed and increase when the corresponding head receives data or a
status message.
In contrast, the execution counter in word 1 increases every time the
identification system sends a data or status message, irrespective of the
head number.
■ C28 ... 1: 28-bit read only code data, packed in hexadecimal format
The identification system sends the read only code as an ASCII string with
7 characters in so-called data format 10. The first three characters of the
string form a hexadecimal number and the remaining four characters form a
decimal number.
The first three characters appear directly in bits C28 to C17 following ASCII
hex conversion. The following four characters are displayed in hexadecimal
format. In order to compare them with data format 10, they must be
converted into a four-digit decimal number:
e.g.: code A764325 (ASCII): C28 ... C1 = xAh, 76h, 10h, E5 (x = ERR,
L3 ... 1).
3.5PROFIBUS-DP command sequence
Execution of the command begins as soon as a valid command is written using
toggled flag "T". When the command is received, this flag is sent to the master
together with the remaining fields of word 0 as confirmation.
Initial state:
Head number (K3 ... 1)0
Execution counter (N4 ... 1)0
Stat us (S 4 . .. 1)0
4 x read error flags (ERR)0 for SF, AF, BF and 1 for EF
4 x reading numbers (L3 ... 1) 0
4 x read only code data (C28 ... 1)0
2011-08
11
Page 12
IC-KP-B6*
Communication in "IRI-B6" mode
The execution counter increases every time the identification system sends a
message. At the same time, the head number, status, read error flag, reading
numbers and read only code data fields are set according to the message from
the identification system. The read error flags are treated differently, depending on
the command.
The reading numbers increase when the identification system receives read data
(status 0). Only the reading number in the data field assigned to the head number
sent by the information system is increased. The reading numbers does not
increase if the identification system reports an error (status 4, 5, 6).
The read error flag is deactivated for the SF, AF and BF commands and always
remains 0.
The following applies for the EF command: The read error flag is reset (=0) as
soon as the identification system receives some read data (status 0). The read
error flag is set as soon as the identification system reports a read error (status 5)
and remains unchanged with other fault messages (status 4, 6).
The following example shows a command sequence.
Command: Single read read only code with head 2, without double side mode
DP master sequence
Command (B4 ... B1)0001bSF (Single read read only code)
Double side (DS)0bDouble side mode OFF
Head number (K3 ... K1)001bHead number 2 is addressed
Toggle flag (T)1b(or 0, depending on the previous state after
initial command or switching on = 1)
Word 0Commands and parameters
B4 B3 B2 B1 DS 0T2 T1 N4 N3 N2 N1 K3 K2 K1 T
0001000000000011
= 1003hex
Response from the control interface on the DP master
Single commands are executed once and the result (success or failure) is output.
12
2011-08
Page 13
IC-KP-B6*
Communication in "IRI-B6" mode
Word 0Word 1Word 2Word 3Word 4Wo rd 5Word
1003
(hex)
or1003
or1003
Word 0:Command and parameter mirrored
Word 1:Status/execution counter/head number (see below)
Word 2 ... 9:Corresponding data from read only tag if reading successful
Word 1Status/execution counter/head number
or0001000100000110
or0001000100000000
Head number (K3 ... K1)001bRead with head 2
Execution counter (A4 ... A1)0001bExecuted once
Status (S4 ... S1)0101bRead error
or0110bHardware error
or0000bCommand executed without error
(hex)
(hex)
1105
(hex)
1106
(hex)
1100
(hex)
-K3 K2 K1 A4 A3 A2 A1 ----S4 S3 S2 S1
0001000100000101
xxxxxxxxxxxxxxxxxxxxIf no read only tag in
xxxxxxxxxxxxxxxxxxxxIf head not
0000
(hex)
0000
(hex)
1B54
(hex)
0E3A
(hex)
6 ... 9
0000
...
0000
(hex)
front of head
connected or
defective.
If read only tag
content "B543642"
(ASCII) in front of
head
2011-08
13
Page 14
IC-KP-B6*
Communication in "IVI-B6" mode
4Communication in "IVI-B6" mode
Only use "IRI-B6" and "IVI-B6" modes if you intend to operate the control interface
as a replacement for a control interface with the designation "IRI-KH*-4HB6" or
"IVI-KH*-4HB6".
4.1PROFIBUS DP communication parameters (GSD file) for IVI-B6
The GSD file name for "IVI-B6" mode is: P&F_0840.gsd.
An input module and output module are defined to transfer input data (reading,
data from slave to DP master) and output data (writing, data from DP master to
slave).
The size of the input and output modules is variable so that the transferred data
volume can be optimized for the relevant application. This prevents loading the
bus unnecessarily with unused data.
The GSD file P&F_0840.GSD is required to utilize the variable module lengths.
Input modules with lengths of 2 to 16 words and output modules with lengths of
one to 16 words are predefined in this file, each in graduations of one word.
Note!
During programming, only one input module and one output module can be
selected from the list of modules.
One word has 16 bits in "IVI-B6" mode.
The number of modules required depends on the relevant application. The output
module (i.e. the data from the DP master to the slave) consists of one or two
command data words and a maximum of 14 usable data words.
The input module (data from the slave to the DP master) always consists of two
status data words and a maximum of 14 usable data words.
Examples:
Command single/auto/buffered read fixcode:
Only one command data word and command parameter must be transferred. A
data carrier word address and write data are omitted. The module "1 Word
Output" can therefore be used here.
The length of the read only code data read by the code carrier is 4 words.
Because two status data words are always transferred in addition, the minimum
size of the input module must be 6 words, i.e. module "6 Words Input" must be
selected.
Command single/auto/buffered write, write data length e.g. 14 words:
Two words are required for the command data here (command, parameter and
data carrier word address). Together with the 14 write data words, the maximum
output module length is 16 words (16 Words Output).
For write commands, the control interface only responds with a status message
i.e. an input module size of two words is sufficient (2 Words Input).
14
2011-08
Page 15
IC-KP-B6*
Communication in "IVI-B6" mode
Command single/auto/buffered read, read data length e.g. 8 words:
Two words are required to transfer the read command (command, command
parameter and data carrier word address), i.e. module "2 Words Output" is
sufficient.
Um die gelesenen Daten und die zwei Worte Statusdaten zu übertragen, sind
insgesamt 10 Worte erforderlich, d. h. Modul "10 Words Input“ ist passend.
The following two chapters describe the structure of up to 16 data words for
communication from the DP master to the control interface and from the control
interface to the DP master.
4.2Device identification/software version message for PROFIBUS
DP
The device identification and the software version are transferred via the DP
function “Device-Related Diagnostics”.
This is structured as follows:
ByteMeaning
0Station status 1
1Station status 2
2Station status 3
3Master station number
4Manufacturer code (high byte)
5Manufacturer code (low byte)
from 6Other slave-specific diagnostics (header byte, length of subsequent
7 ... 12"IVI-B6"
13 ... 18Software creation date of the bus system (DDMMYY)
entries)
4.3Communication direction: from PROFIBUS-DP to control
interface
The data that is transferred depends on the length of the selected output module.
Only the structure of the required words is shown in the following section. Valid
data is not allocated to any other words related to the selected module size.
Word 1Word address/block addresses (for block commands SB/AB/BB)
Word 2 ... 15Wri te data
16
The maximum number of words is 16 depending on the selected module size.
The commands and command parameters are transferred in word 0.
Word 1 contains the start memory address of the data carrier, from which point
data is written.
Words 2 to a maximum of 15 contain the data written for write commands.
Toggle flag (T)
The toggle flag is used to uniquely identify a new valid command. The control
interface only accepts and executes a new command if this flag has a different
status to the previous command, i.e. when it is toggled.
When the control interface on the DP master is acknowledged, the toggle flag is
not changed and indicates to the user that the control interface has received and
processed the command.
Note!
The command is only executed if the execution counter 0.
2011-08
Page 17
IC-KP-B6*
Communication in "IVI-B6" mode
Command identifier (B4 ... B1)
Command parameters B4 ... B1 are used to define the relevant command.
Command identifier B4 ... B1
15141312Bit no.
B4B3B2B1Meaning
0000No command
0001SF
0010AF
0011BF
0100SR
0101AR
0110BR
0111SW
1000AW
1001BW
1010SB
1011AB
1100BB
1101EF
1110ER
1111EW
Double side mode (DS)
This function enables double-sided writing/reading. If this bit is set (DS = 1), type
ICC-50, IDC-50 and IDC-CARD read only and read/write tags can be read and
written from both sides. Otherwise read only and read/write tags can only be read
from the labeled side.
Note!
In double side mode, the execution time of the read/write commands increases.
2011-08
17
Page 18
IC-KP-B6*
Communication in "IVI-B6" mode
Tag type (T2, T1)
The tag type is defined by parameters T1 and T2.
Tag type T1, T2
98Bit no.
T2T1Ty p e
00IDC-1k
01IPC03
10IQC21
11Reserved
Number of words (N4 ... N1)
Parameters N4 ... N1 define the number of words to be read or written (maximum
14 words).
Number of words N4 - N1
7654Bit no.
N4N3N2N1Word count
0000Not defined
00011
00102
00113
01004
01015
01106
01117
10008
10019
101010
101111
110012
110113
111014
1111Not defined
18
2011-08
Page 19
IC-KP-B6*
Communication in "IVI-B6" mode
Head number (K3 ... K1)
Parameters K3 ... K1 are used to define which R/W head is addressed.
Head number K3 ... K1
321Bit no.
K3K2K1Head
0001
0012
0103
0114
100All
101All
110All
111All
Word address (word 1)
The start memory address for the data to be read or written in the data carrier is
specified in this word.
Ta g t y p e
IDC-1k0000 ... 003F0000 ... 003F
Address range (hex)
Word addre ss ( wor d 1)Block address (SB/AB/BB)
The tag type IMC-40 is no longer supported.
4.4Communication direction: from the control interface to the
PROFIBUS-DP
The data that is transferred depends on the length of the selected input module.
Only the structure of the required words is shown in the following section. Valid
data is not allocated to any other words related to the selected module size.
The previously sent commands and command parameters are repeated in word 0
as confirmation.
Word 1 contains status information, the execution counter and the number of the
assigned head.
Head number (K3 ... K1)
000b = head 1
001b = head 2
010b = head 3
011b = head 4
If "all" heads are addressed, the heads are read or written in succession in the
sequence 1, 2, 3 and 4.
Execution counter (A4 ... A1)
Note!
The execution counter is reset when the command is executed and increases
every time new status words or data becomes available. The fields for the head
number, status and words 2 to 15 do not contain valid data if the counter indicates
0.
Head activity (H4 ... H1)
Bits H4 ... H1 are only used for the EW command in Enhanced buffered write
operating mode. This means:
■ H(i) = 1 head detected as connected,
■ H(i) = 0 no head connected to this channel.
Status display (S4 ... S1)
Parameters S4 ... S1 define the general status and fault messages.
Status display S4 ... S1
3210Bit no.
2011-08
S4S3S2S1Status
21
Page 22
IC-KP-B6*
Communication in "IVI-B6" mode
Status display S4 ... S1
0000Command has been executed without error
0100Incorrect command, invalid parameter or timeout
0101Read or write error
0110Hardware error (reading head faulty)
4.5PROFIBUS-DP command sequence
Execution of the command begins as soon as a valid command is written using
toggled flag "T". When the command is received, this flag is sent to the master
together with the remaining fields of word 0 as confirmation.
Initial state:
Head number (K3 ... 1)0
Execution counter (N4 ... 1)0
Status (S4 ... 1)0
4 x read error flags (ERR)0 for SF, AF, BF and 1 for EF
4 x reading numbers (L3 ... 1) 0
4 x read only code data (C28 ... 1) 0
The execution counter increases every time the identification system sends a
message. At the same time, the head number, status, read error flag, reading
numbers and read only code data fields are set according to the message from
the identification system. The read error flags are treated differently, depending on
the command.
The reading numbers increase when the identification system receives read data
(status 0). Only the reading number in the data field assigned to the head number
sent by the information system is increased. The reading numbers does not
increase if the identification system reports an error (status 4, 5, 6).
The read error flag is deactivated for the SF, AF and BF commands and always
remains 0.
The following applies for the EF command: The read error flag is reset (=0) as
soon as the identification system receives some read data (status 0). The read
error flag is set as soon as the identification system reports a read error (status 5)
and remains unchanged with other fault messages (status 4, 6).
The following example shows a command sequence.
22
2011-08
Page 23
IC-KP-B6*
Communication in "IVI-B6" mode
Command: Single read read only code with head 2, without double side mode
DP master sequence
Command (B4 ... B1)0001bSF (Single read read only code)
Double side (DS)0bDouble side mode OFF
Tag type (T2, T1)00bIDC-1k
Number of words
(N4 ... N1)
Head number
(K3 ... K1)
Toggle flag (T)1b(or 0, depending on the previous state after initial
Word 0Commands and parameters
B4 B3 B2 B1 DS 0T2 T1 N4 N3 N2 N1 K3 K2 K1 T
0001000001000011
Table 4.1= 1043hex
Note!
Words 1 ... 15 do not contain valid data. However, this only applies for read only
codes. In the case of read/write tags, word 1 would contain the start memory
address and words 2 ... 15 (for write commands) the data to be written.
0100b4 words = 8 bytes (because read only code
001bHead number 2 is addressed
consists of 7 bytes, the 8th byte has no meaning)
command or switching on = 1)
Response from the control interface on the DP master
Singlecommands are executed once and the result (success or failure) is output.
Word 0Word 1Word 2Word 3Word 4Word 5
1043
(hex)
or1043
or1043
Word 0:Command and parameter mirrored
Word 1:Status/execution counter/head number (see below)
Word 2 ... 5:If reading is successful, the corresponding data of the read only tag appears here.
Word 6 ... 15:No valid data
2011-08
(hex)
(hex)
1105
(hex)
1106
(hex)
1100
(hex)
xxxxxxxxxxxxxxxxIf no read only tag in
xxxxxxxxxxxxxxxxIf head not
4235
(hex)
3433
(hex)
3634
(hex)
32xx
(hex)
front of head
connected or
defective.
If read only tag
content "B543642"
(ASCII) in front of
head
23
Page 24
IC-KP-B6*
Communication in "IVI-B6" mode
Word 1Status/execution counter/head number
-K3 K2 K1 A4 A3 A2 A1 ----S4 S3 S2 S1
0001000100000101
or0001000100000110
or0001000100000000
Head number (K3 ... K1)001bRead with head 2
Execution counter (A4 ... A1)0001bExecuted once
Status (S4 ... S1)0101bRead or write error
or0110bHardware error
or0000bCommand executed without error
24
2011-08
Page 25
IC-KP-B6*
ASCII table
5ASCII table
hexdecASCIIhexdecASCIIhexdec
000NUL2032Space4064@6096'
011SOH2133!4165A6197a
022STX2234"4266B6298b
033ETX2335#4367C6399c
044EOT2436$4468D64100d
055ENQ2537%4569E65101e
066ACK2638&4670F66102f
077BEL2739'4771G67103g
088BS2840(4872H68104h
099HT2941)4973I69105I
0A10LF2A42*4A74J6A106j
0B11VT2B43+4B75K6B107k
0C12FF2C44,4C76L6C108l
0D13CR2D45-4D77M6D109m
0E14SO2E46.4E78N6E110n
0F15SI2F47/4F79O6F111o
1016DLE304805080P70112p
1117DC1314915181Q71113q
1218DC2325025282R72114r
1319DC3335135383S73115s
1420DC4345245484T74116t
1521NAK355355585U75117u
1622SYN365465686V76118v
1723ETB375575787W77119w
1824CAN385685888X78120x
1925EM395795989Y79121y
1A26SUB3A58:5A90Z7A122z
1B27ESC3B59;5B91[7B123{
1C28FS3C60<5C92\7C124|
1D29GS3D61=5D93]7D125}
1E30RS3E62>5E94^7E126~
1F31US3F63?5F95_7F127DEL
ASCI
hexdecASCII
I
2011-08
25
Page 26
Subject to modifications
Copyright PEPPERL+FUCHS • Printed in Germany