Vai al contenuto

GraphArray

Draws a graph curve, point by point, taking the values from an array.The xMin and xMax limits indicate which elements of the array (between minimum and maximum) are to be drawn. By changing such limits you can increase or decrease the quantity of data displayed (horizontal zoom).By changing the X and Y limits you can enlarge or reduce the graph vertically (vertical zoom).Note: only “DINT” and “REAL” arrays are supported.It has the following properties:
  • enable: lets you enable or disable display of this element. If enable is not specified, it is always visible. You can use both PLC labels and local variables.
  • color: color of graph curve
  • circularArray: specifies how to treat the array data. With AUTOMATIC the array is treated as circular only if it is part of the circular arrays of the system. With CIRCULAR_LTR (circular left-to-right) the array read by the PLC is always considered circular. The first element of the array corresponds to the first point on the left. With CIRCULAR_RTL (circular right-to-left) the array read by the PLC is always considered circular. The first element of the array corresponds to the first point on the right (the array is reversed to horizontal). In the latter two cases, the array is used by element 2 (inclusive) onwards (n elements + 2 are declared on the PLC). The first two elements have the following significance: array[0] = Pointer at element zero. array[1] = Number of useful elements in array.
  • label: indicates the variable containing the array with values to be represented. Note: if the points of the curve are contained in different variables and are not available in a contiguous array, you can specify the values with the following notation: label1, label2, label3, etc. useful for curves with a small number of points. The various labels can be any one of the types provided on the pages, i.e.: label, label[constant], label[label], constant Please note: if you have an array variable (e.g.: DINT MYARRAY[10]) and you want to display the whole array, just specify the name without brackets (e.g.: MYARRAY). It’s also possible to specify a virtual array by separating labels with commas (e.g.: VAR1, VAR2, ARRAY_ELEM[5], VAR3).
  • fullDrawn: graph curve drawing mode. With fullDrawn at true, all points of the curve are drawn regardless of whether they are actually visible or not. This algorithm is slow but lets you see any spikes even with very wide zoom factors. With fullDrawn at false, only points that are actually visible are drawn. This algorithm is very fast but does not let you see any spikes with very wide zoom factors.
  • limitLink: if it contains GRAPHGRID, the logic limits used for calculations are taken from the GraphGrid on which this component is deposited. If it contains STANDALONE, you can specify different limits by means of variables xMin, xMax, yMin, yMax
  • xMin, xMax, yMin, yMax: logic limits used for the X and Y axes in case of limitLink = STANDALONE. The variables to be drawn refer to these limits. If limitLink = GRAPHGRID , these variables are ignored (those of the GraphGrid on which this component is deposited are used)
  • orientation: indicates whether the graph is to be drawn horizontally (standard) or vertically (rotated 90° clockwise). x_min and x_max always indicate the axis relative to the base of the graph, and y_min and y_max the axis relative to the height of the graph. For example, a vertical graph uses x_min and x_max for its base, corresponding to the left side of the grid.
  • antiAlias: allows to “round” the graphical “pixel” artefacts (steps) by applying an antialiasing method. For further information about antialiasing, please see chapter “Configuration parameters – Graphics options – Fixed text antialiasing method”.
  • lineWidth: width of the line used to draw the curve. Not available in all systems.