Sample 2

This example is developed with a Baltech RFID Reader, which is also optionally integrated in Beckhoff Control-Panels and Panel-PCs. The device is connected via serial Com Port or USB port.
It can be used for a comfortable start-up and test of the device.

Using a Baltech RFID reader connected to a serial Beckhoff terminal instead of a Com Port, you must change the serial background communication in the PLC code and reconfigure the Tc System Manager. (See chapter RFID reader connection)

The example project contains the call of the RFID function block with different commands.

With the integrated visualization you can execute them. The commands GetReaderVersion, GetInventory, ReadBlock and WriteBlock are implemented. Thus, a RFID transponder can be tested, and data (ASCII string) can be written to or read from it too.

Sample 2 1:

First the RFID reader has to be initialized in order to make correct communication with the RFID reader possible. The button InitRfidReader executes the command GetReaderVersion for it.

For further information on the RFID reader communication sequence, please refer to the chapter Handling the RFID function block.

Activating the LogView Output shows the full serial communication in the LoggerView of the Tc System Manager.

Project download: TcRFID_Sample02.zip or TcRFID_Sample02usb.zip