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.

Get object name
#6
For multiple objects you can use a tag. This way you can use a single script for all objects.
Using os.sleep in this case won't harm but it's possible to overload the system by having a lot of event script processes.

The more correct approach is to have an event script that sets/resets the last time that alarm was triggered (via storage) and a resident script which checks if the alarm has been set for a certain period then writes the alarm value to an object.
Reply


Messages In This Thread
Get object name - by tomnord - 04.06.2021, 08:35
RE: Get object name - by admin - 04.06.2021, 08:42
RE: Get object name - by tomnord - 04.06.2021, 09:19
RE: Get object name - by admin - 04.06.2021, 10:14
RE: Get object name - by tomnord - 04.06.2021, 11:33
RE: Get object name - by admin - 04.06.2021, 12:42
RE: Get object name - by tomnord - 04.06.2021, 12:49
RE: Get object name - by admin - 04.06.2021, 13:46

Forum Jump: