Hi @ecobouwadvies, the Mervis is capable of handling this, but not out of the box. There are many basic function blocks, but they typically perform very simple tasks. The Mervis is a tool to express logic, but it doesn't specializes to some kind of logic, such as home automation, industrial automation, agriculture and so on. The expression of the logic is on the programmer. To process the double click you need to start measuring a time interval and if in predefined limit the second click will not appear, it will be evaluated as a single click. If it exceeds a predefined time limit and the digital input will be still true, it will be evaluated as a long press. Please, bear in mind that the PLC is a software PLC and thus it is not running in detereministic time loops. There are techniques how to make the Mervis program running faster, such as proper setting of the Autogen. All in all, take a look at our tutorials to get an idea what it entails to program in Mervis. Good luck with your projects, Martin