You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old January 20th, 2020, 11:56 PM   #1
James42005
Member
United States

James42005 is offline
 
James42005's Avatar
 
Join Date: Dec 2018
Location: Waterloo, IA
Posts: 24
Any iFix Gurus out there?

I have hit a wall on a request I received for a change to iFix. Operations want security added to a button which resets a counter. The way it works currently is there is an object with script, when clicked on, a confirmation popup is opened. If selected yes the scripts writes a command to the PLC tag to reset the counter. I need to add security over the button based on user group currently logged in. I have the user groups set up and functioning well, I use the security to limit changes to datalinks all the time but I am having trouble figuring out how to lock out the script from running based on security level. I am just learning VB so, any tips?
  Reply With Quote
Old January 21st, 2020, 06:17 AM   #2
parky
Member
United Kingdom

parky is offline
 
parky's Avatar
 
Join Date: Oct 2004
Location: Midlands
Posts: 1,582
This is how you get the security info what you do with it is up to you

Dim Result As Integer
Dim UserID As String
Dim UserName As String
Dim GroupName As String
Dim UserInfo As String
System.FixGetUserInfo UserID, UserName, GroupName
so you then have the userid, name & group.
& UserID is the id info, & UserName etc. are the strings.
This was from some time ago but I assume things have not changed a great deal.
  Reply With Quote
Old February 12th, 2020, 02:35 AM   #3
isaacbryan
Member
United States

isaacbryan is offline
 
Join Date: Feb 2020
Location: East Lansing, MI
Posts: 1
Quote:
Originally Posted by parky View Post
This is how you get the security info what you do with it is up to you

Dim Result As Integer
Dim UserID As String
Dim UserName As String
Dim GroupName As String
Dim UserInfo As String
System.FixGetUserInfo UserID, UserName, GroupName
so you then have the userid, name & group.
& UserID is the id info, & UserName etc. are the strings.
This was from some time ago but I assume things have not changed a great deal.
Perfect. Thank you.
__________________
.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
iFix Driver Updates Andrew Hardy LIVE PLC Questions And Answers 5 May 4th, 2012 04:48 AM
iFix error! nfulmer LIVE PLC Questions And Answers 2 November 15th, 2010 09:59 PM
The proper way to run a iFix server? Console RDP? kdcui LIVE PLC Questions And Answers 3 November 9th, 2009 12:18 PM
Communication between Controllogix and iFix 4.0 culi LIVE PLC Questions And Answers 5 January 23rd, 2009 05:46 AM
iFix can't see the alarm tags!!! johnlam LIVE PLC Questions And Answers 3 June 6th, 2007 12:46 AM


All times are GMT -5. The time now is 05:30 AM.


.