Use Logic to Compare a Time Profile’s Value with the Readings from Plant
This example demonstrates how a Time Profile might be used in a Logic program, to provide a varying value against which data is compared. Be aware that a Time Profile’s current value is updated once, at the beginning of each minute. As such, each comparison is between the value of the Time Profile at the start of each minute and the value of the data against which the Profile’s value is being compared at that time.
Example:
A Time Profile is used to define the expected fluctuations in level each day.
The Time Profile is used in a Logic program, to compare the expected levels with the actual readings from plant, throughout the day.
In this particular example, the Logic uses the built-in GE (Greater Than or Equal To) function to compare the Time Profile’s value to the live data.
Further Information
Working with Logic Programs: see the ClearSCADA Guide to Logic
Built-in Logic Functions: see Built-in Functions, Function Blocks, and Conversions in the ClearSCADA Guide to Logic
The GE function is one of several Comparison functions that can be used in Logic programs: see Comparison in the ClearSCADA Guide to Logic.