
Operation
Using function blocks for Siemens TIA portal
206
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
9.11
Using function blocks for Siemens TIA portal
Two function blocks are provided for the simple integration in (existing) programs in the TIA
portal:
n
RFID_COMPACT_Mode
n
RFID_EXTENDED_Mode
Function block
Operating mode
RFID_COMPACT_Mode
HF compact
UHF compact
RFID_EXTENDED_Mode
HF extended
UHF extended
The function blocks can be downloaded as elements of example programs free of charge at
. The example programs are available for TIA V14 and TIA V15 and the Siemens
S7-1200 and S7-1500 controllers.
The required command can be selected via the FC20 and FC30 functions. More parameters can
be set on function block FB10 (Compact) and FB11 (Extended).
xCmdRead
xCmdWrite
xCmdReset
xCmdInventory
xCmdTagInfo
xCmdDirectExecute
wDirectCommandCode
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
HEX
HEX
wCMDC
FC10
Fig. 118: FC10 function block
HwID_HFcompact
CMDC
RCNT
DOM
ADDR
LEN
SOUID
HwID_Read016B
HwID_Write016B
WriteDataBuffer 16B
DEC
HEX
DEC
DEC
DEC
DEC
DEC
DEC
DEC
POINTER
HEX
BOOL
BOOL
DEC
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
DEC
HEX
DEC
POINTER
RESC
BUSY
ERROR
RCNT_F
TP1
XDx
PNSx
TREx
TNCx
TONx
CMON
LEN_F
ERRC
TCNT
ReadDataBuffer 16B
FB10
Fig. 119: FB10 function block