remy Posted May 3, 2018 Report Share Posted May 3, 2018 Hi ! I'm apprentice automation engienner and i would create a fonction for monitoring they action of user in table . I have reach a different topic but im very lost . For begining i have understand i need in first time a account in the unitronic and differents team but what can i write this action in table as the alarms ? Thanks for you answers ! i use a unitronic 1.19 and 1.21 Link to comment Share on other sites More sharing options...
ORSO2001 Posted May 3, 2018 Report Share Posted May 3, 2018 dear remy, I am not sure that I have understood what you need...want you save an "event" if the users have modified something in your program like a temperature set point or a number value?...also if a user has done the login and logout? Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted May 3, 2018 MVP 2023 Report Share Posted May 3, 2018 Have you written the program to define the user's actions already? You'll need something to trigger the data log. By the term "apprentice" - do you have someone you're working with who knows PLCs and is teaching or are you on your own? Joe T. Link to comment Share on other sites More sharing options...
remy Posted May 9, 2018 Author Report Share Posted May 9, 2018 Hi ORSO2001 , yes i would like for example to know if a user to open a valve Hi Joe Tauser for user actions this concerns all the hmi view tags such as apuuyes on some images and i worked with my boss Thanks you ! Link to comment Share on other sites More sharing options...
ORSO2001 Posted May 9, 2018 Report Share Posted May 9, 2018 ok...in my projects I created a DTI of 1 row that is referred at a struct called EVENT; in this struct at the end I included 4 strings variables; DATE, TIME, DEVICE, EVENT. DATE and TIME are used to know when the action was done; DEVICE is what was modified; EVENT is a "long" string that contain the informations...for example last value and new value...or other things. every time that something happened you will trig a BIT to populate the DTI and save (append) the DTI in a file in the SD....this file will be your Events LOG file. Usually I do this to know the power ON of the PLC....and save every x minute the ON status of the PLC to understand if it is powered or not...to know who is logged in or logged out...to know what was done...etc to do this I create an UDFB that accept 4 functionIN...(DATE, TIME, DEVICE, EVENT); in this way I can pass or static strings or composed by what I need to know/insert. to know if something was modify I usually create a local copy of the information that the HMI has at the moment and I verify if this is changed or not...obviously depends what you are managing as data. I hope that is clear enough Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now