Examples of Message Texts

Concept

The following examples explain how you need to formulate an expression to achieve a specific output in a notification message.

Features

  • Output an example of a value and add text:

    In this case, the value of a tag is output (such as the temperature measured) and the term "degrees" is added. You enter the following expression in the Expression field:

    'Double1' & " degrees"

    Result:

    PCo sends the following expression in the notification message to the destination system:

    55 degrees

  • Example of a condition:

    If the value of a tag is greater than 44, the value and degrees should be output in the notification message; for example, 45 degrees. If the value is less than 44 degrees, the text Inform Administrator should be output. Enter the following expression in the Expression field:

    if('Double1'>44, 'Double1' & " degrees", "Inform Administrator")

    Result:

    If the value of a tag is less than or equal to 44 degrees, PCo sends the following expression in the notification message:

    Inform Administrator

  • Output an example of a value and then convert it:

    The value of a tag specifies the temperature in degrees Celsius. The temperature should also be converted into degrees Fahrenheit. To do this, you enter the expression 'Double1' & " degrees Celsius, " & ('Double1'*1.8+32) & " Fahrenheit".

    Result:

    PCo sends the following expression in the notification message:

    32 degrees Celsius, 89.6 degrees Fahrenheit