Pepperl+Fuchs IC-KP-R2-V1 Manual page 21

Identcontrol interface with serial interface
Table of Contents

Advertisement

IC-KP-R2-V1
Commissioning
Example:
00 P+F IDENT<CR><LF>
IC-KP-R2-V1<CR><LF>
#126457<CR><LF>
1830373 <CR><LF>
01.07.05 #<CR> ...
Details of connected R/W heads follow. For the complete response, see see chapter 7.3.1.
Note!
If you receive different responses, communication between your PC and the device has failed
(the software number and the software date may vary). Check the installation and repeat the
steps for commissioning the device.
Note!
The device makes no distinction between commands entered in upper and lower case.
However, make sure that there are no spaces in all parameters that come after the command.
Protocol with check sum
All commands conclude with the characters <CHCK> = "check sum" and <ETX> = "end of text"
(<ETX> = 03h). This serves to secure the data of the serial transfer.
For simplified usage with a standard terminal, the control unit also accepts a #<CR> [<LF>] in
place of <CHCK><ETX>.
Note!
Use of the check sum increases data security to the interface.
Check sums are formed simply by adding all preceding characters, without overrun.
The following is an example of check sum calculation:
The check sum should be defined for telegrams VE#<CR> or ve#<CR> without a check sum.
First the hexadecimal values for the characters "V"=56h and "E"=45h or "v"=76h and "e"=65h
are required from an ASCII table. Adding these values produces the following results.
"V" = 56h plus "E" = 45h produces the sum 9Bh or
"v" = 76h plus "e" = 65h produces the sum DBh.
The check sum for the telegram is therefore
VE<9Bh><ETX> or
ve<DBh><ETX>.
If a longer telegram is transferred, the check sum will most likely overrun, which essentially
means that calculated values can no longer be represented by a single byte when added
together. The overrun is not transmitted.
Transferring the telegram ER1000702#<CR> with check sum produces the following check
sum:
45h + 52h + 31h + 30h + 30h + 30h + 37h + 30h + 32h = 1F1h.
When the overrun is removed, the following check sum remains:
ER1000702<F1h><ETX>.
Note!
The device makes no distinction between commands entered in upper and lower case.
However, remember that upper and lower case characters produce different check sums.
21

Advertisement

Table of Contents
loading

Table of Contents