Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

This document is related to: tutorial

Create an action

The actions we have to implement 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. Select the folder where to create the action and click Add > Action  from the menu.
  2. In the form enter the name and the description of the action. 
  3. 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.
  4. The XCommand sections appears

     
  5. Expand the XCommand list and select Item > Write
  6. Enter the Server Item and the values to write


  7. Save the action


  8. 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).
  9. The new action will get the name "TurnOnHeatingAction (1)" - so we have to change its name, the description and the action what to do.
  10. Save the action

Animation

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. Select the folder where to create the condition and click Add > Condition from the menu.
  2. In the form enter the name and the description of the condition
     
  3. 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! 
  4. Repeat this step to add additional actions.
  5. The XCommand sections appears
  6. Expand the XCommand list and select Comparison > LessOrEqual
  7. Enter the Server Item and the value to conpare
  8. Save the condition

Animation

  • No labels