Jump to content

Can you help me for create a program for monitoring this action of user ?


remy

Recommended Posts

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

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

  • MVP 2023

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.