54
10.10 Module “RWH_RW”, Write verified User data of the ID tag
In this mode the User data of the ID tag can be written and read back with one command request .
In the first step the command data is written to the ID tag, in the second step it is read back from the ID
tag . In the third step the evaluation unit compares the written data with the read data and sends back the
result to the PLC .
PLC process data output image (Module RWH_RW)
Byte no .
Bit
7
6
5
4
3
2
1
0
1
0
DR (3)
0
UR=1 (1)
RD (2)
WR (2)
AO=0
0
2
Write data length
3
16 bit start address [D15…D8]
4
16 bit start address [D7…D0]
5
Write data byte 1
,,
. .
20
Write data byte 16
Description Byte 1, “Control byte”:
Bit
Value
Description
Remark
AO
0
“Antenna field on” request active
Activate the antenna field .
WR (2)
RD (2)
0
No write verified request active
Data byte 2 … 20 of the process data input image is set
to 0x00 .
0->1
Write verified to the “user data of the ID
tag” request
Data byte 5 … 20 are written to the User data of the ID
tag . Afterwards the data bytes are read back from the
ID tag .
1
Write verified request active
WR must be kept on 1 until the command response is
available .
UR (1)
1
Mode “User data” selected
Must be set to 1 to access the User data of the ID tag
DR (3)
0
No read request
Data byte 2 … 20 of the process data input image is set
to 0x00 .
0->1
Read diagnostics of the evaluation unit
-
1
Diagnostics read request active
DR must be kept on 1 until the command response is
available .
(1) Mode can be changed every time if bit DR, WR = 0 (no command active .)
(2) Bits WR and RD must be set simultaneously in the command request .
(3) Diagnostics is only available, if bit “Diag” within the response data is set . A simultaneously activation
of bit DR with bits WR and RD is not allowed! Otherwise the evaluation unit will return default data “0x00”
within byte 2 . . .20 of the response data .
Description Byte 2, ”Write data length”:
Write data length, limited to a maximum number of 16 bytes .
Description Byte 3... 4, ”16 bit start address”:
Start address of the ID tag User data where the data has to be written to .
Description Byte 5... 20, ”Write data byte”:
In write mode the data to be written has to be copied in this data area . (Write data bytes 1 … 16)