hi
I'm still a "greenhorn" and have to learn, I known, but I have a problem and will ask for help
may following model/example:
I want make a inhibitor, this means, as long the "counter" is 0, the "Result" stay low (0) when "Start's" chance from low to high and to low (0-1-0-1-0...)
only the "counter is 1 (or higher) the "Result" should chance the value (0 to 1)
[{"id":"f3bf11b5.f40c38","type":"function","z":"9c52b872.61fc1","name":"","func":"if ( msg.Flag === 0 ) {\n return [mgs, null ];\n}\n else {\n msg.Start = true\n return [ null, msg ];\n}\n","outputs":1,"noerr":0,"x":522.5,"y":1175,"wires":[["ec9ffa4.fd95b08"]]},{"id":"327bb24b.f44886","type":"inject","z":"9c52b872.61fc1","name":"","topic":"Start","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":104.5,"y":1166,"wires":[["f3bf11b5.f40c38"]]},{"id":"1924cd39.0a6bb3","type":"inject","z":"9c52b872.61fc1","name":"","topic":"Flag","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":105.5,"y":1263,"wires":[["bd378d47.6afc8"]]},{"id":"bd378d47.6afc8","type":"counter","z":"9c52b872.61fc1","inc":1,"name":"counter","x":345.5,"y":1265,"wires":[["f3bf11b5.f40c38","39d1796e.004f76"]]},{"id":"ec9ffa4.fd95b08","type":"debug","z":"9c52b872.61fc1","name":"Resultat","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":712.5,"y":1176,"wires":},{"id":"844e8fd1.6b91","type":"inject","z":"9c52b872.61fc1","name":"clear","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":102.5,"y":1321,"wires":[["e364d872.ef3958"]]},{"id":"e364d872.ef3958","type":"function","z":"9c52b872.61fc1","name":"","func":"msg.reset = true;\nreturn msg;","outputs":1,"noerr":0,"x":244.5,"y":1321,"wires":[["bd378d47.6afc8"]]},{"id":"39d1796e.004f76","type":"debug","z":"9c52b872.61fc1","name":"Couter","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":537.5,"y":1263,"wires":}]
I'm looking forward to a assistanc, many thank's
Max