
Setting
RFID channels – overview of commands
134
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
8.8.16
Command: Set tag password
NOTE
The command is only available for applications with UHF tags and the HF tags TW-
R…-M-B146.
NOTE
The command code for fast processing with the loop counter is 0x2102 (hex.) or
8450 (dec.).
The
Set tag password
command sets a password in the tag. Tag protection is not activated
until the
Set tag protection
command has also been carried out. When sending the command
only one tag can be located in the detection range of the read/write head. After the password is
sent, other commands (e.g.
Set tag protection
) can be sent to the tag. The
Set tag password
command prevents a Kill password from being set in the tag.
The password function is only available in HF applications in single-tag mode. An error message
is output with multitag applications. For troubleshooting set the
HF: multitag mode
parameter
to
0
:
Multitag mode off
.
Request
Loop counter
See description of the output data, [
Command code
0x0102 (hex.), 258 (dec.)
Read/write head address
See description of the output data, [
Length UID/EPC
Enter UID or EPC size in bytes, if a particular tag is to be
protected. The UID or EPC must be defined in the write data.
(start byte: 0). The function of the length of the UID/EPC
depends on the command used.
0: No entry of a UID/EPC for executing the command. Only
one tag can be located in the detection range of the read/
write head.
> 0: EPC length of the tag to be protected if an EPC is
present in the write data
-1: NEXT mode: A tag is always only protected if the UID/EPC
is different to the UID/EPC of the last read or written tag.
Start address
Not required
Length
4 bytes
Command timeout
See description of the output data, [
Write fragment no.
0
Read fragment no.
See description of the output data, [
Write data, Byte 0...3
Password: ARRAY [0…3] OF BYTE
Write data, Byte 4...127
Not required