
RFH6xx PNDP
Function Block
Date: 12.06.2014 8
4.2 Operation Mode
In order to use the RFH function block, the following communication parameters have to be
set:
IN_ADDR: Projected entry point address of the used input modules of the input area. The
entry point address is fixed by the projecting of the hardware (see chapter 3.3). The value
has to be in hexadecimal format (e.g. address 256 = W#16#100).
IN_LEN: Length of the used input modules in the hardware configuration. The length of the
input module is fixed by the projecting of the hardware (see chapter 3.3).
OUT_ADDR: Projected entry point address of the used output module of the output area.
The output address is fixed by the projecting of the hardware (see chapter 3.3). The value
has to be in hexadecimal format (e.g. address 256 = W#16#100).
OUT_LEN: Length of the used output module in the hardware configuration. The length of
the output module is fixed by the projecting of the hardware (see chapter 3.3).
DATA: The data block (DB73) belonging to the function block contains in- and output param-
eter of the supported function block actions. The data block has to be transferred to the input
parameter “DATA” of the function block.
Realizable function block functions:
- Trigger on Opens the reading gate of the device per CoLa command
- Trigger off Closes the reading gate of the device per CoLa command
- Read Tag Read transponder data
- Write Tag Write transponder data
- Inventory The inventory action searches in the reading area of the RFH
for active transponders and returns their UID.
- Lock Block Permanent locking of a selected transponder block
- Stay Quiet Muting of a RFID tag which is in the field.
- Communication test Checks if the device can be reached via „sRI0“ command
- Free Command Executes a free selectable CoLa command
- Reset Reset of the communication
In order to execute a function block action (TRIG_ON, RD_TAG, etc.), the desired action has
to be selected first. Only one action can be executed at the same time. In order to do the
action, the parameter START_REQ has to be triggered with a positive edge (signal change
from a logical cero to one). As long as no valid device answer has to be received, this is sig-
nalized via the parameter REQ_BUSY.
If the function block signalizes REQ_DONE = TRUE at the output parameter, the action has
been done successfully. If, for this action (e.g. RD_TAG) data has been requested from the
device, it will be copied into the respective data area of the UDTs.
Data that is sent per trigger (TRIG_ON, TRIG_OFF) or directly from the device (e.g. direct
trigger via a light switch), is stored in the data function block (ReadingResult.arrResult). The
output parameter RD_DONE indicates for one PLC cycle, that new data has been received.
The from the device sent data can be changed in the SOPAS output format.