CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Fri Dec 06, 2019 9:02 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Web Visu - access rights
PostPosted: Mon May 09, 2011 9:21 am 
Offline

Joined: Tue Mar 16, 2010 4:24 pm
Posts: 18
I am trying to define access rights to web visualisation trough Codesys programing interface with right mouse button over the object (e.g. PLC_VISU) -> Object properties -> Access rights. I am defining different passwords for different groups, but no matter what I do, when I try to access via web interface, it never asks for user name / password and I have full access to all objects.

[attachment=0]CoDeSysAccR.PNG[/attachment]


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Tue May 10, 2011 7:45 am 
Offline
Frequent User
Frequent User

Joined: Sun Apr 15, 2007 1:18 am
Posts: 173
Hello,

J think you have to declare somes variables, for example :

VAR_GLOBAL RETAIN
CurrentUserLevel: INT := 1;
CurrentPasswords: ARRAY[0..7] OF STRING[20] := 'aa','bb','cc','dd','ee','ff','gg','hh';
VisuDoExecuteUserlevelInit: BOOL := FALSE;
END_VAR

With :
CurrentUserLevel : level of password you want to set on start
CurrentPasswords : Array, 8 levels of password

Then you can change User or Password by program, or in the pages of display you can add buttons.
Add a button, and configure :Category -->Input -->Execute program
INTERN CHANGEUSERLEVEL
INTERN CHANGEPASSWORD

Hoping to help you, sincerely.


Top
   
PostPosted: Wed May 11, 2011 7:31 am 
Offline

Joined: Tue Mar 16, 2010 4:24 pm
Posts: 18
Thank you JAPIB

I tried with these declarations, but the result is the same.
I forgot to say that all access restrictions work well in CoDeSys -> Visualisation interface, but in the web interface all items are available without any passwords. No matter with or without declarations for CurrentUserLevel, CurrentPasswords.... :(


Top
   
PostPosted: Thu May 12, 2011 8:33 am 
Offline
Frequent User
Frequent User
User avatar

Joined: Tue Jun 06, 2006 9:03 am
Posts: 410
3S-Software has made an example for this. Go to their website and click on Download => CoDeSys Sample Projects.
Through this ftp site go to Projects/CoDeSysV2.3/Visualisation/LoginDemo_XML/.
This shows you how to handle a login through the web.


Top
   
PostPosted: Tue Sep 06, 2016 11:36 am 
Offline

Joined: Wed Jul 06, 2016 10:51 am
Posts: 10
Hi! where I can find some information about CurrentUsername and INTERN statement? I haven't found in the COdesys Help. May there is a tutorial online...
THanks a lot.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited