Cancel Telegram - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Cancel Telegram (/showthread.php?tid=1693) |
Cancel Telegram - arivera - 04.11.2018 Hello I would need to cancel a telegram that was transmitted on the bus if a virtual address had a value of 1. Example: if the group address 1/1/1 Virtual Control = 1 that will cancel all the telegrams of the address: 2/1/1 Door opening = 1 so that the door does not open, I would also like to be able to cancel a telegram for hours, that is to say from 22:00 to 07:00 the address 2/1/1 Door opening = 1 it does not execute the opening when it is transmitted on the bus. Thanks for helping, greetings RE: Cancel Telegram - Erwin van der Zwart - 04.11.2018 Hi, You can’t cancel telegrams, but what you can do is create a logic gate, if the virtual object is true then input -> output. In script it would like this: if grp.getvalue(‘32/1/1’) == true then grp.write(‘1/1/2’, event.getvalue()) end Put this as event on your input object, 1/1/2 is the output. BR, Erwin |