Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfiguration "A single-line graph with a color fill specified by y values relative to the optimal limit value."

Creates the PmgCanvas object configured as - A single-line graph with a color fill specified by y values relative to the optimal limit value..
 
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 has the variable valY and valX of the String type containing values separated by semicolon. It is possible to connect it to the measured value of the same data structure by data binding. The variables of the parent object are accessible in the onDraw event by using the pEvent.GetParentVar().
 
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

For embedded Pmg object

- ctx.lineWidth value represents the thickness of the rendered graph line
- ctx.strokeStyle value represents the color of rendered graph line
These configurators can be set before the preconfiguration is created:
Object nameName (identifier) of the Pmg object. It is used to obtain the Pmg object by the PmgObject.Items method.

This configurator sets the initial value of the property Name.

The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.

Range from minimum (x)Low limit of the x axis
Range to maximum (x)High limit of the x axis
Range from minimum (y)Low limit of the y axis
Optimal valueDefined ideal value that will be used in relation to rendering the graph value deviations.
Range to maximum (y)High limit of the y axis
Values (x)Base values on the x axis separated by semicolon
Graph line widthGraph line width
1st Graph line colorGraph line color
ValuesBase values
Data emulation in control variable bindingEmulated data will be generated in the control variable

History:
Pm9.00.09: Created
PROMOTIC 9.0.9 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice