This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Dinamically update FB operating hour counter data in W4K
#5
(04.02.2022, 07:23)Dré Wrote: If they all start at the same time, and all script run te same minute, it cant.
what is the time difference?
Are you sure it dont trigger by another thing, or switch or LM?
Maybe you can activate the log function of the output and the FB of the output?
and look in the log when and who trigger or disable the output?

They all start at the exact same time,

The logic is:

A simple 1 bit object trigger on or off a group of three virtual 1 bit objects, another one triggers on another group of three AND turns off the previous three as long as the second group remains triggered.
Works like a charm, I've tested it with a scheduled script that triggers on and off the second object.
Every 15 minutes a scheduled script reads the first object, waits two seconds and read the second one so all the time measures are updated.
When the time (in h/100) is updated some scripts convert it into minutes and then into another unit of measure.

That's it, very simple.

I've checked the logs many times and everything seems to work fine, it is a random bug. I'm going mad.

The difference is of a few minutes, but I would like to fix it, because it's very very annoying that it works for 5 objects out of 6...the other group of three seems good

There it is!

There is a script (I don't know which one since in none of my scripts I manipulate that object, I checked...only in FB) that overwrites that value...I will try to wipe everything and start again...

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
RE: Dinamically update FB operating hour counter data in W4K - by Kilogica - 04.02.2022, 08:04

Forum Jump: