Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Visu plugin 4.2.0.0 - how to use "Login visualizaion"?

helshi
2022-06-06
2022-06-25
  • helshi - 2022-06-06

    Hi.

    I saw that in version Visu Plugin 4.2.0.0 there is a new approach to user management - now Visu User Management mapping on Runtime User Management. I also see that there is a new item in the "Web-visualization" node - "Login visualization" and there is a new visu in VisuUserMgmt library - "VUM_LoginVisualization".

    But I don't understand how to use this "login visualization" and how see it.

    Please point me in the right direction.

     
  • helshi - 2022-06-10

    @eschwellinger, m. prestel: I appeal to your mercy.

     

    Last edit: helshi 2022-06-10
  • helshi - 2022-06-16

    Still interested in answer.

     
  • kislov - 2022-06-24

    I faced the same problem.

     

    Last edit: kislov 2022-06-24
  • eschwellinger

    eschwellinger - 2022-06-24

    Not sure, did you read the the how to?
    Notes for "ApplicationRuntimeBased":
    In the "ApplicationRuntimeBased" application, user management is already available ONLY with the group set, as users have to be created directly on the device.
    You will therefore have to create some users and assign them to the various groups.
    You can find how to do it in:
    https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_handling_user_management_on_plc.html
    The "Visualization" contains as frame the common visualization "VisualCommon" and a couple of elements that are only visible with the correct access rights.

     
    • kislov - 2022-06-24

      Sure, i did it.

       

      Last edit: kislov 2022-06-24
  • kislov - 2022-06-24

    Continuing to study this problem, I saw such an error in the PLC log. What does she mean?

     
  • TimvH

    TimvH - 2022-06-25

    You only get to see this, if the general access to the web visu should or is protected.
    So then normally you will see the DefaultLogin.

    In your case add the following to the CODESYSControl.cfg and restart your PLC because this will add this standard protection:

    [CmpWebServerHandlerV3] 
    AllowFileTransferServices=1
    

    Maybe good to know is that you can quite easily create your own login pages, but some steps have to be followed:

    1)
    Add user management functionality (based on runtime access as you showed in your mp4 video).

    2)
    Add a Visu which will be your default login page and set the correct properties for this (similar to defining a visu as a dialog)

    3)
    Then refer to this visu in the WebVisu settings (similar to what you did in your mp4 video)

    4)
    And now for some magic: the text of you input fields and buttons should contain their function between $$ signs. This I really don't understand, but hopefully somebody of the CODESYS team can explain them

     

    Last edit: TimvH 2022-06-25
  • TimvH

    TimvH - 2022-06-25

    Maybe also good to have a demo project. See attached. So you need at least CODESYS 3.5 SP18 with the Visualization package 4.2.0.0

     
  • kislov - 2022-06-25

    timvh, greats thanks for your info and project.
    One important question - should I see my "Login Visualization" instead of "DefaultLogin" from your first screenshot, right?

     
    • TimvH

      TimvH - 2022-06-25

      Yes, you should see the one from the library you selected.

       
    • TimvH

      TimvH - 2022-06-25

      Yes, you should see the one from the library you selected.

       
      • kislov - 2022-06-25

        Thank you, with your project and tips I got the desired result.

         

Log in to post a comment.