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

Identcontrol interface with serial interface
Table of Contents

Advertisement

IC-KP-R2-V1
Commands
Single write configuration (SC):
Command:
Response:
The R/W head makes exactly one attempt to write a word to the configuration range
("Protection Word" or "Control Word") from the address <ConfAddr>.
The password mode must be active so that the R/W head can write to the configuration range.
If the password mode is deactivated, every data word outside of the write-protected range can
be written to. If you would like to modify the write-protected range, you must modify the
"Protection Word" accordingly.
For example:
With the R/W head on channel 1, one data word (4 bytes) that does not contain details of the
address and data length should be transferred during each read command (accessed with 00
byte and address 0000). Password mode must be activated beforehand by transmitting the
command Single configuration.
SC 1 2 <00
SC
1
2
00
00
h
h
03
h
03
h
#
<CR>
The address of the first and last data word to be written is based on the absolute address of the
data carrier (not the <WordAddr>). The address 03
data range.
Note!
Please note that the value '0033' must be sent in hexadecimal format. Refer to your terminal
program for details.
Enhanced buffered write configuration (EC):
Command:
Response:
The R/W head attempts to write a word in the configuration range to the address <ConfAddr>
until successful. After each write, the status is evaluated and the system waits until a new data
carrier is within the detection range. The command then starts again from the beginning. In
order to write in the configuration range, the password mode must be active.
The status '05h' (read/write command) is only output when a data carrier leaves the detection
range or is not yet within the detection range when the command is executed.
If two data carriers enter the read range one immediately after the other, the status '05h' is not
issued between the two readings.
36
SC <Ident channel><ConfAddr><Data><CHCK><ETX>
<Status><Ident channel><CHCK><ETX>
><00
><03
><03
> # <CR>
h
h
h
h
Single write configuration command
Channel (=1)
Word address in the configuration range (=control word)
Bits 16 ... 31 of the control word
Address of the last data word to write
Address of the first data word to write
End character
End character
EC <Ident channel><ConfAddr><Data><CHCK><ETX>
<Status><Ident channel><CHCK><ETX>
is therefore the first available word in the
h

Advertisement

Table of Contents
loading

Table of Contents