49
UK
12.9 Module “RWH_RW”, Write User data of the RFID tag
In this mode the User data of the RFID tag can be written .
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)
0
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)
0
No write request
-
0->1
Write “user data to the RFID tag” request Data byte 5 … 20 is written to the User data of the RFID
tag .
1
Write 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 RFID 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) A simultaneously activation of bit DR and WR is not allowed!
(3) Diagnostics is only available, if bit “Diag” within the response data is set . A simultaneously activation
of bit DR with bit WR 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 RFID 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)