Trend configuration and setting for Siemens HMI using Siemens TIA portal wincc
trend in industrial application describe the changes in a variable with time. siemens wincc flexible is used for design graphical user interface with multiple graphical tools like button, numerical input, label, slider, alarm, trend etc. Trend is used in industrial control system to know variation of variable values over time. you can use real time and historical trend to shows variation of value over time. real time trend shows variable variation on present time and historical trend shows values past time. you can also take backup of these trend. if the value of variable is increasing it is called upward trend, if the value is decreasing it is called downward trend. in wincc flexible trend is very easy to configure. in this article we see how to configure trend for Siemens HMI.
types of trend view in wincc tia portal
trend view is used To display tag values graphically over time and value axis or x and y axis. trend view are used when they are inserted in screen from control. wincc have following two types of trend view in Runtime
f(x) trend view : it is values axis trend view which make trend of tag over x axis and y axis.
f(t) trend view :it is a time axis trend which make trend over time axis and value axis
add tag and component for trend
trend view configured for tags so first make a tag to add tag goto tag table and add two tag (tag1 and tag2) and both are numerical data type(INT). these tags we used in this article for trend visually representation. next add two slider to change value of tag1 and tag2 and assign both slider tag as tag1 and tag2. slider is not directly available in some basic panel in this article use HMI runtime.
insert trend view on screen of Siemens hmi
f(x) trend view make trend of tag over x and y axis. to add f(x) trend view in hmi goto toolbox and than controls and select f(x) trend view and than insert it into screen. select f(t) trend view for time axis trend from component
configuration of value axis trend view (f(x) trend view) for Siemens hmi
after inserting f(x) trend view change some property from property tab of tab view. you can change X axis, y axis, background color, font color axis color, set tag for trend etc. to configuration value axis trend make following changes in property tab
1. in property tab open trend and add trends than add following parameter
enter name of trend
enter label of trend
select plot style for trend
in data source select x axis and y axis tag for trend
set date range of tag for trend
in x axis and y axis property select scaling type and select logarithmic scale, negative logarithmic, linear scaling as per your trend requirement for display
change display color, or font setting in appearance property setting
above is the important property setting for value axis trend you can make change as per your requrment
configure time axis trend view in wincc hmi
time axis trend view plot a graph over time axis and value axis. it is very useful to check variation of trend over time. f(t) trend view is a time axis trend, to insert trend on screen goto toolbox and select f(t) trend view and insert it on screen. after inserting make following changes in property
1. trend add tag in trend property press add new and set following parameter in trend property
a. enter name of trend
b. change style of trend in this property change trend view type, color of trend line etc.
c. set maximum trend values
d. select trend type from drop down.
d. in source setting select tag for trend view this is very important to make a trend.
e. select side for trend
f. set high limit and low limit setting of trend
2. if you want change axis setting use left axis, right axis from property and set maximum and minimum value for trend.
some another property are also available like change background, foreground color, style of trend etc. you can change as per your requirement.
test trend view in wincc simulation
simulation help to test your program without downloading program to real hmi. for simulation first build compile your project from menu if any error occurred than remove error if zero error comes than start simulation of trend. this program make a two trend first time axis trend and value axis trend. so when slider 1 and slider 2 value changes same changed display on trend view. in time axis trend view trend is developed over time and in value axis trend over values of x axis and y axis.