Sample 1

This example can be used for different RFID readers (Balluff, Baltech, Deister, Leuze, Pepper+Fuchs).

The example has been tested with the Balluff BIS M 401 and Leuze electronic RFM32 models.

In the project, an RFID reader was connected to a single-channel serial EL6001 (on an EK1100). Other serial terminals can also be used. When using KL terminals, the call of the Serial Line Control in the program code must be adapted. (See RFID reader connection)

The project can similarly be used for two RFID readers. The sample program is already prepared for two RFID readers. Only the second linking in the TwinCAT System Manager needs to be carried out.

The example project contains the call of the RFID function block with different commands. The most important commands were implemented in this example. This includes reading from and writing to the RFID transponder memory.

After starting the program, a suitable RFID reader manufacturer must be selected via the local enumeration eManufacturer.

The command type can be selected using the local eCommand enumeration. In order to start the call, the local variable bExecute must be set once to TRUE. After that, the results of the query are shown at the outputs of the RFID function block. Alternatively, the operation can be take place with the visualization integrated in the example:

Sample 1 1:

Depending on the RFID reader model, the GetReaderVersion and GetConfig (if necessary also SetConfig) commands must be executed first, in order to make correct communication with the RFID reader possible.

For further information on the RFID reader communication process, refer to the section Function block FB_RFIDReader > Handling instructions.

Download: RFID_InfoSys_Sample01.zip

Requirements

Development Environment

Target Platform

PLC Libraries to include

TC3.1.4013

PC or CX (x86, x64)

Tc2_RFID