Application for the logic.hub:
Time-controlled switching
On- and off delay, time pulses
More links
This application provides you with a comprehensive overview of the options available for time-controlled switching with timers. The detailed instructions can be found further down on this page.
What you’ll need:
- A W&T logic.hub
- An MQTT capable device with digital in- and output
We are happy to provide you with the logic.hub for 30 days at no cost. Simply fill out the sample order form and we will send you the logic.hub for testing on open invoice. If you return the device within 30 days, we will cancel the invoice.
-
#50506
logic.hub
What’s explained:
1. Setting up the flow
-
Click on the images to enlarge!
-
- Open the web interface of your logic.hub and click on Terminal inventory.
- Click on ADD W&T TERMINAL, or on the
to add devices from other manufacturers.
-
-
- Then click on ADD SELECTED TERMINALS.
-
-
- Once all terminals have been added, you only need to save.
-
-
- Adding a Web-IO Digital
- Make sure that MQTT is activated and that the IP address of the broker (logic.hub) matches.
- Publish and Subscribe must also be activated, as shown in the image.
- In the web interface of the logic.hub click on Logic Editor.
- You are now in the Logic Editor. Create a new page by clicking on CREATE NEW PAGE. If you have already set up pages, you need to click on the Plus to create a new page.
-
-
- Add the node TON c Node (Turn-on-delay).
- The TON node controls the delayed switch-on in automation systems. It only activates the output after a defined switch-on time, enabling precise control of starting processes. This is ideal for applications that require precise timing when switching on.
-
-
- Add an INPUT, a CONST and two OUTPUTS. And connect them as shown in the illustration.
-
-
- To make the turn-on delay effective, you must set the CONST node to Analog and set the desired time: in our case to 5000ms.
-
-
- Now assign the terminals to the inputs and outputs.
-
-
- Optionally, you can connect another output to the analog signal to query the time value.
-
-
- If you now save the configuration, you will already see that the time is running out.
-
-
- Time expired: Output switches to "1"(True.)
-
Setting up the dashboard
-
- Click on Dashboard on the web interface of the logic.hub.
- Create a new dashboard by clicking on ADD DASHBOARD.
-
-
- Click on Edit tiles.
-
-
- Click on Add fullwidth tile.
-
-
- Click on Header label to give the dashboard an appropriate header.
-
-
- Click on ADD SELECTED TILES.
-
-
- Now select two LED labels and two ticker labels. You can also add a spacer in the center to give the whole thing a nice look.
-
-
- Label the tiles and add the same nodes as in the Logic Editor. You have now visualized the view.
-
-
- Finally you must save all and your dashboard is complete.
2. More nodes for similar purposes
If you have other requirements for a time switch, there are other nodes available. You can find these in the Logic Editor under Timer.
-
-
- The TOF node (switch-off delay) controls delays in automation systems by maintaining a defined switch-off time after a signal. This function is suitable for delayed switch-off of devices or processes that require precise time control. It is perfect for applications where controlled switch-off is crucial.
-
-
- The TP node (timer pulse) controls precisely timed sequences in automation systems. It generates pulses to trigger actions after defined periods of time, such as switching devices on and off or synchronizing processes, and is ideal for time-critical control tasks.