
VAR_INPUT PEN1 : UINT; (* Pen 1 Position, 0-100% *) PEN2 : UINT; (* Pen 2 Position, 0-100% *) PEN3 : UINT; (* Pen 3 Position, 0-100% *) COLORS : COLOR[3] := [red,yellow,green]; (* PEN1,2,3 Colors *) BKGD : COLOR := lightGray; (* Background Color *) SIZE : UINT[2] := [200,200]; (* Width,Height *) N : UINT := 10; (* Number of increments on strip chart (= number of points -1) *) END_VAR
An instance of this function block type encapsulates a three-channel
strip chart recorder which displays the values of the inputs
PEN1,
PEN2
and
PEN3
as percent full-scale values in the range
{0..100}.
The colors of the pens are programmable with the
COLORS
parameter.
The number of x-increments on the horizontal axis is programmable
with the
N
parameter. The plot advances by one x-increment per
REQ
event.
The figures below show the declaration and resulting display of an
instance of this type from the TANK_MVL
system configuration.
RECORDER : STRIP3( COLORS := [red,blue,green], BKGD := COLOR#lightGray, SIZE := [200,150], N := 100);
