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.

Shutter Lock signal
#5
It works but it does the same thing as just having one line:
Code:
grp.write('10/1/2', true) -- lock automatics

Here's what your current script does:

value = grp.getvalue() - no address/name is passed to grp.getvalue(), so value is nil

if value == upp or value == down then - both upp and down are not defined so they are nil, so the actual comparison is if nil == nil or nil == nil then
Reply


Messages In This Thread
Shutter Lock signal - by AndersH - 10.05.2019, 14:04
RE: Shutter Lock signal - by Rauschentofft - 11.05.2019, 18:46
RE: Shutter Lock signal - by AndersH - 13.05.2019, 06:45
RE: Shutter Lock signal - by AndersH - 13.05.2019, 07:07
RE: Shutter Lock signal - by admin - 13.05.2019, 06:17
RE: Shutter Lock signal - by admin - 13.05.2019, 06:54

Forum Jump: