Operation
Use CODESYS function blocks
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | more@turck.com | www.turck.com
07.00 | 2022/09 | 232
Name Data type Meaning
usiUHFMemoryArea USINT HF applications:
n Domain 0…5: User area of the tag
n Other: Reserved
UHF applications:
n Domain 0: Kill password
n Domain 1: EPC
n Domain 2: TID
n Domain 3: User memory
n Domain 4: Access password
n Domain 5: PC (size of EPC)
n Other: Reserved
uiDataLength UINT Length for the selected command, e.g. length
of the data to be read or written
usiRWHeadAdress USINT Address of the read/write head that executes
the command
siLengthOfUidEpc SINT Entry for the EPC or UID length for addressing
a specific tag to be read or written. The UID or
EPC must be defined in the write data.
0: Size of the EPC or UID not checked
-1: NEXT mode: A tag is always only read if the
UID or EPC is different from the UID or EPC of
the last read or written tag.
Only the values 0, -1 and 8 are possible in HF
applications.
rDiagMapping REFERENCE TO
ChannelDiag_t
RFID diagnostic data
pReadDataMapping POINTER TO BYTE Start address in the input data (ARRAY[…] OF
BYTE)
pWriteDataMapping POINTER TO BYTE Start address in the output data (ARRAY[…] OF
BYTE)
pDataTx POINTER TO BYTE Write data (ARRAY[…] OF BYTE)
pDataRx POINTER TO BYTE Read data (ARRAY[…] OF BYTE)
Function blocks — output variables
Name Data type Meaning
xDone BOOL 1: Command successfully executed
0: Command not executed
xBusy BOOL 1: Command active but not yet completed;
system is waiting for execution, e.g. on tag in
the detection area
0: No command active
xError BOOL 1: Error detected, command execution aborted
0: No error detected
xAborted BOOL 1: Command execution aborted by user
0: Command execution not aborted
eError ERROR Error code, [}250]
xTP BOOL 1: Tag in detection range
0: No tag within the detection range