Exercise: Checking Trends History with Trend Object
Trend Configuration
Create an INT (INT16) tag named Count in the Tag Editor with an initial value of 0. Then create a bool tag named ON that defaults to off.
2.) Create a Switch/Lamp on the page and drag the ON tag onto the Lamp. This will bind Value to the Tag ON.
Make an On Press Command on the Lamp that will Toggle the Tag Value. This will make it so that the Lamp is able to turn on and off.
Create the Trend by going to Insert > Trend or by simply clicking Trend on the Hotbar. In the Basic Properties of the Trend, set the Max Value to 20.
Click and hold the Count tag and drag it over the Trend. This will create a new Pen in the Basic Properties of the Trend. Go to Pen 1, and change the Pen Width to 5.
0 Comments