Blog

Siemens RFID Card Reader Setup, User Administration, and Auto-Login

Siemens RFID Card Reader Setup, User Administration, and Auto-Login

This blog is an instruction guide to installing the necessary Comfort Panel HMI software for interfacing with a Siemens RFID card reader. Additionally, the guide will demonstrate the necessary setup elements in the PLC project, as well as instructions for getting started with user administration and auto-login.

Definitions

  • UID - Unique Identifier, tied to an individual card
  • SOAP - Simple Object Access Protocol, Protocol specification for exchanging structured information in the implementation of web services

HMI Panel/Project Setup

Install PM-LOGON Basic Runtime for Panels

  1. Install PM-LOGON software on an engineering computer.

    • This installs the option "PM-LOGON Basic Runtime for Panels V1.1" into SIMATIC ProSave.

  2. On engineering computer, open SIMATIC ProSave. 
    Open SIMATIC ProSave Program on Start Menu

  3. In the general tab, configure IP address of panel.
    Screen to configure IP address of panel in SIMATIC ProSave

  4. Go to Options, select PM-LOGON Basic Runtime for Panels V1.1.
    SIMATIC ProSave options screen - select PM-LOGIN Basic Runtime for Panels V1.1

  5. Press the right arrow to begin the transfer to the HMI.

  6. After this happens, the panel will be restarted.

Configure PM-LOGON

  1. Open PM-LOGON Basic Runtime on the panel and select Configuration.
    Open PM_LOGON-Basic Runtime and select the configuration button

  2.  
  3. In the configuration, configure settings as desired.

Key settings

  • Log off current user when the card leaves reader - This will log off the user as soon as the card is removed. If the card will remain at the reader, this can be checked, otherwise, this should remain unchecked.
  • SOAP URI for tag access - Leave this as the default value.
  • SOAP Username/Password - Select this and write it down, as you will need it for the next step. For simplicity, I recommend using PMLogon for the username and password.
  • Write UID to Tag - This determines the tag in the HMI that the UID will be written to. This is necessary if you are running any scripts based on the tag.
  • Hide UIDs in the log - This option will determine if the card UID's will be displayed in the log (see 2b above). Check this if you want to hide the UID.

PM-LOGON Configuration Options Screen

TIA Portal - Enable SOAP, Log In With Password Only

  1. HMI > Runtime Settings > Services > Check "Web service SOAP"
    1. This allows for the auto-login functionality that will be discussed later.
      Enable Web Service SOAP
  2. Logon with password only (HMI > Runtime Settings > User Administration > Check "Logon only with password").
    Screen to check logon only with password under User Administration
4. Panel Settings - Enable Web Service for Auto-Login (Page 19 Card Reader PDF)
  1. Navigate to Start Center > Settings.
    Select Settings in the Start Center menu
  2. Select WinCC Internet Settings.
    WinCC Internet Settings icon
  3. Navigate to Web Server > User Administration.
    Web Server User Administration
  4. Add a new user.
    Screen to add a new user
  5. Add user and password (use Username/Password from 3d above). Apply settings.
    Add user and password
  6. Add SOAP user authorization for the newly created user.
    Add SOAP User Authorization
  7. Exit using the OK button.
  8. Start Web Server.
    Start web server in WinCC Internet Settings

Setting Up New Users

At this point, all basic setup has been completed. Based on what has been set up, the tag PMLOGON_UID in the HMI (once it is created) will be automatically populated by the card reader as soon as the card hits the card reader. Before that, however, it’s important to review how to set up new users with the RFID card reader.
 

  1. In the HMI project, add a user view to a screen to customize user administration. 
    Add a user view to customize user administration
  2. In Runtime, navigate to this screen, and click the box under the user.
  3. Add a username for the desired user (the username needs to be added, even though it won’t be used during logins).
    Add a username
  4. Click the associated password box for the user.
  5. Touch your card to the RFID card reader - this should populate the password field.
    Touch card to RFID reader to populate password field
  6. Add any other user information (group, log off time) as necessary.

Auto-Login

Now that setup is complete, and users have been added, the HMI is prepped for auto-login. Below is what is needed for auto-login. An extra tag has also been added (GroupNumber), which can be useful for displaying user access levels on the HMI.
 

  1. Add HMI tags for GroupNumber, PMLOGON_UID, and UserName.
    Add HMI Tags for GroupNumber, PMLOGON_UID, UserName
  2. Create a scheduled task to get the UserName and GroupNumber - this will update the UserName and GroupNumber when the user changes.
    Creating a scheduled task
  3. Create a script that checks when PMLOGON_UID changes, and logs in the new user.
    Create a script to log in the new user when PMLOGON_UID changes
  4. In the PMLOGON_UID tag, trigger the script you just created on value change.
    Trigger the script


That's it! From here, users can be added using the RFID card reader (in a user view), and auto-login can be performed by just tapping the card reader with your card.

Learn more about DMC's Siemens expertise.

Comments

There are currently no comments, be the first to post one.

Post a comment

Name (required)

Email (required)

CAPTCHA image
Enter the code shown above:

Related Blog Posts