Promotic

Preconfiguration "Current value trend"

Creates the PmgCanvas object configured as trend of current value.
This object renders a simple "trend" (time progression) of a value. The progression is rendered continuously, i.e. in a specific time a portion of the image is rendered according to the current value. It is not necessary to save the historical values (PmaTrendGroup object is not needed). So keep in mind that in such case all data is lost once the panel is closed.

This preconfiguration can be activated when creating a new Pmg object and is included in the group: "/ Chart, functions".

This object contains embedded PmgCanvas object named "Dynamic". The item contains the variable Item1NewVal of the Double type that can be connected to the measured value by data binding.

In the PmgCanvas object, there are variables minX, maxX, minY, maxY, spaceX and spaceY. These variables define the scale range in both x and y axes and also the offset of axes from left and bottom edge of the Pmg object.

Additional configuration variables are located at the beginning of context itself, or at the beginning of designer's method. The following items can be set:
- colorScale color of ticks and scale descriptions
- nMajY number of main ticks on Y-axis
- nMinY number of minor ticks (between two main ticks) on Y-axis
- nDescPer specifies the quantity of displayed descriptors of main ticks (0 = no, 1 = every main, 2 = every second main)
- nMajX number of main ticks on X-axis
- nMinX number of minor ticks (between two main ticks) on X-axis
- colorArea background color of the graph rendering area
- colorGrid grid color
- nGridPer specifies quantity of displayed horizontal/vertical grid lines (0 = no, 1 = every main, 2 = every second main)
- nTextSize scale description text size
The parent object contains TimeRangeSec variable where the time range of X-axis is defined (in seconds).
These configurators can be set before the preconfiguration is created:
The name of created objectName (identifier) of the Pmg object. It is used for obtaining the Pmg object by the PmgObject.Items method.
This configurator sets the initial value of the Name property.
The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and the first character must not be a number.
Number of trendsThe number of trend variables
1. trend
Measured valueConnection to measured value
Range from minimum (y)Lower limit of Y-axis
Range to maximum (y)Upper limit of Y-axis
Graph line colorGraph line color
Chart typeChart type
0=hidden
1=linear
2=stairs
2. trend
Measured valueConnection to measured value
Range from minimum (y)Lower limit of Y-axis
Range to maximum (y)Upper limit of Y-axis
Graph line colorGraph line color
Chart typeChart type
0=hidden
1=linear
2=stairs
Time axis range (s)Range of the time axis (x) in seconds.
10
15
20
30
60
120
300
Data emulation in control variable bindingEmulated data will be generated in the control variable

History:
Pm8.03.13: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.