Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel1

This document is related to: tutorial Tutorial: Setup a schedule

Create an action

The actions we have to implement for the Tutorial: Setup a schedule are: 

  • turn on heating

  • turn off heating

We will use the Item.Write XCommand to write a boolean value on the Server Item NETx\VAR\Boolean\Item001 which will switch the heating system.

Step by step

  1. Open the Scheduler app.

  2. Select the folder where to create the action and click Add > Action from the menu.

  3. In the form enter the

...

  1. Name and the

...

  1. Description of the action. 

...

  1. Image Added
  2. In the form click the Add button to add some logic what to do in this action. Do not mix the Add button from the menu and the Add button in the form! 
    Repeat this step to add additional actions.

  3. The XCommand sections appears

...

  1. Image Added


     

  2. Expand the XCommand list and select Item > Write

...

  1. In the XCommand form browse the Item Tree to set the Output to NETx>VAR>Boolean>Item001.

  2. Set the Value, written to the Server Item

...

  1. , to ON. 

    Image Added



  2. Save the action

...

  1. Image Added
  2. To create the "turn off" action we will copy and paste the action created right now.
    Select the TurnOnHeatingAction in the project tree on the left hand side and duplicate it (use copy and paste from the menu).

  3. The new action will get the name "TurnOnHeatingAction (1)" - so we have to change its

...

  1. Name, the

...

  1. Description. In the action

...

  1. select the Value = OFF to be written to the Server Item.

...

  1. Image Added
  2. Save the action

...

Tutorial video

...

Create a condition

The condition we have to implement is to hold the temperature of minimum 22 degrees. We imagine to read the current room temperature from the Server Item NETx\VAR\Numeric\Item001.

Step by step

  1. Open the Scheduler app.

  2. Select the folder where to create the condition and click Add > Condition from the menu.

  3. In the form enter the

...

  1. Name and the

...

  1. Description of the condition

...

  1. Image Added


     

  2. Click the Add button to add some logic what to do in this action. Do not mix the Add button from the menu and the Add button in the form! 

  3. Repeat this step to add additional actions.

  4. The XCommand sections appears

...

  1. Image Added

  2. Expand the XCommand list and select Comparison > LessOrEqual

...

  1. In the XCommand form browse the

...

  1. Item Tree to set the Input to NETx>VAR>Numeric>Item001.

  2. Set the Value to 22. This value will be compared to the selected Server Item.

    Image Added
  3. Save the condition

...

  1. Image Added

...

Tutorial video

...