- Posts: 37
- Thank you received: 1
User privileges
1 week 8 hours ago #182
by jds
User privileges was created by jds
Hello,
I'm using for ex. operator 1 as my user the operate the plant. He 's using the default settings + eventsblock flag.
How can I let this user change the setvalue in my PIDmode window?
As far as I can see, the settings in the CompModePID are setted up to control (AccSet and AccOut) standard on 15 (>= 0). Where does the 15 stands for?
When I look at the pwg of the mode object, (pwr_c_compmodepid I see the user groups RtWrite, System, Process and Default are allowed to change the value. it's not a good idea to put my operator in the first 3 groups, but I can't find the default user group? Is it defined with the Acc parameter?
I'm using for ex. operator 1 as my user the operate the plant. He 's using the default settings + eventsblock flag.
How can I let this user change the setvalue in my PIDmode window?
As far as I can see, the settings in the CompModePID are setted up to control (AccSet and AccOut) standard on 15 (>= 0). Where does the 15 stands for?
When I look at the pwg of the mode object, (pwr_c_compmodepid I see the user groups RtWrite, System, Process and Default are allowed to change the value. it's not a good idea to put my operator in the first 3 groups, but I can't find the default user group? Is it defined with the Acc parameter?
Please Log in or Create an account to join the conversation.
6 days 21 hours ago #183
by claes
Replied by claes on topic User privileges
Hi jds,
AccSet and AccOut are obsolete.
If the Default access is set for a field, it means that you can override the access for this field with the /access option in the 'open graph' command. To give access to for example Process (16) and Operator1 (64) you open the graph with the command 'open graph /class=... /inst=... /acc=80'.
The bits in the access mask is defined in pwr_privilege.h
pwr_mPrv_RtRead = 1 << 0,
pwr_mPrv_RtWrite = 1 << 1,
pwr_mPrv_System = 1 << 2,
pwr_mPrv_Maintenance = 1 << 3,
pwr_mPrv_Process = 1 << 4,
pwr_mPrv_Instrument = 1 << 5,
pwr_mPrv_Operator1 = 1 << 6,
pwr_mPrv_Operator2 = 1 << 7,
pwr_mPrv_Operator3 = 1 << 8,
...
/Claes
AccSet and AccOut are obsolete.
If the Default access is set for a field, it means that you can override the access for this field with the /access option in the 'open graph' command. To give access to for example Process (16) and Operator1 (64) you open the graph with the command 'open graph /class=... /inst=... /acc=80'.
The bits in the access mask is defined in pwr_privilege.h
pwr_mPrv_RtRead = 1 << 0,
pwr_mPrv_RtWrite = 1 << 1,
pwr_mPrv_System = 1 << 2,
pwr_mPrv_Maintenance = 1 << 3,
pwr_mPrv_Process = 1 << 4,
pwr_mPrv_Instrument = 1 << 5,
pwr_mPrv_Operator1 = 1 << 6,
pwr_mPrv_Operator2 = 1 << 7,
pwr_mPrv_Operator3 = 1 << 8,
...
/Claes
The following user(s) said Thank You: jds
Please Log in or Create an account to join the conversation.
6 days 9 hours ago #184
by jds
Replied by jds on topic User privileges
Ok thanks, worked like a charm. I will have to keep in mind that the acc parameter overwrites all user privileges so that the admin groep has to included or he/she can't do anything

Please Log in or Create an account to join the conversation.
Time to create page: 0.539 seconds