Commissioning RFID

Integration of RFID into an existing TwinCAT HMI project

  1. Installation of the NuGet package Beckhoff.TwinCAT.HMI.Plastic.RFID
  2. Creation of a persistent server symbol in the TwinCAT HMI configuration window with the data type RFIDConfig and the name RFIDConfig
  3. Commissioning RFID 1:
  4. Adjusting the default values of the RFIDConfig server symbol
  5. Commissioning RFID 2:
  6. Creation of a server symbol in the TwinCAT HMI configuration window with the data type Boolean and the name EnableRFIDAutoLogin
  7. Commissioning RFID 3:
  8. Creation of a server symbol in the TwinCAT HMI configuration window with the data type Number and the name RFIDAutoLoginIntervalId
  9. Commissioning RFID 4:
  10. Creation of a custom event from the server symbol EnableRFIDAutoLogin on the start page of the TcHmiView control
  11. Commissioning RFID 5:
  12. Commissioning RFID 6:
  13. Check the Auto-Login box for the user with the lowest user rights
  14. Commissioning RFID 7:
  15. Importing the RFID page (RFID.content) into the existing project and integrating it into the navigation

Using the RFID page

  1. Click on the button to connect the COM port and connect the desired port in the pop-up window that appears
  2. Write the desired user name and password in the text fields, then hold the RFID card in front of the RFID reader and click on the button to write (auto-login must be switched off for this)
  3. Commissioning RFID 8:
  4. By clicking on the read button, the information can be read from the card and displayed in the corresponding text fields when the card is presented (auto-login must be switched off for this)
  5. By switching on the auto-login, the corresponding user is logged in immediately if an RFID card with valid values is presented
Commissioning RFID 9:

Create user in TcHmiUserManagement

Writing a user name and password to an RFID tag does not create a new user. The corresponding user must be created via TcHmiUserManagement. This is done either during engineering using the TwinCAT HMI configuration window or via the UserManagement control on the administration page.