Iris _

Pixsys Forum

everybody's effort for the same goal

working hours counter

Post Reply
Irbis
Posts: 3
Joined: 14/10/2021, 22:42

working hours counter

Post by Irbis »

Hello everyone, in my automation program for an ammonia compressor I made an hour meter but every time the HMI is turned off it clears the working hours.
My question is if there is a way to keep the operating hours variables no matter the HMI is turned off?
You do not have the required permissions to view the files attached to this post.
Pixsys tecnico 1
Moderatore
Posts: 1699
Joined: 29/10/2010, 10:09
Contact:

Re: working hours counter

Post by Pixsys tecnico 1 »

Hi,
you need simply use RETAIN variables with the FuntionBlock, in you case CON_SEC, CON_MIN and CON_HOUR.
In this way the times are stored also after a power off and the FunctionBlock continues to increase that values.
Irbis
Posts: 3
Joined: 14/10/2021, 22:42

Re: working hours counter

Post by Irbis »

Pixsys tecnico 1 wrote:Hi,
you need simply use RETAIN variables with the FuntionBlock, in you case CON_SEC, CON_MIN and CON_HOUR.
In this way the times are stored also after a power off and the FunctionBlock continues to increase that values.

Hello Mr. Pixsys I did what you suggested but it still does not store the time value after a shutdown of the HMI pixsys 810.
Can you please send me an example? 8-)
You do not have the required permissions to view the files attached to this post.
Pixsys tecnico 1
Moderatore
Posts: 1699
Joined: 29/10/2010, 10:09
Contact:

Re: working hours counter

Post by Pixsys tecnico 1 »

Keep in mind that the retain value is stored every 30 seconds, so the power on time must be at least that time.

To set the attribute "retain" to a variable:
retain_attribute.PNG
You do not have the required permissions to view the files attached to this post.
Post Reply