Vai al contenuto

GraphXY

Draws a graph curve, point by point, taking the values from two arrays, one containing the values on the X axis and one containing the values on the Y axis.By changing the X and Y limits you can enlarge or reduce the graph.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
  • aspect: graphic aspect of curve. ORTHOGONAL draws a stepped curve, useful for displaying speed and/or pressure profiles. XYDIAGRAM draws a broken curve, where each point is calculated from the intersection of the various points of the X and Y arrays.
  • axisLine, axisSpace: describes the style of vertical axes, drawn at each point, starting from the X axis. axisLine indicates the size of the small segments used to draw lines. axisSpace indicates their distance. By setting 0 in both, the axes are not drawn. With axisSpace = 0 the line is solid.
  • axisColor: colour of axes. If not specified, matches the colour of the curve (indicated with the colour property)
  • labelX: indicates the array with values to be used for the X axis. 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, and so on. 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).
  • labelY: label that indicates the array with values to be used for the Y axis. See labelX.
  • 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 X and Y axes if 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)
  • openLeft: lets you draw an ORTHOGONAL graph without the left closing line toward the bottom (XYDIAGRAM is always open at the left)
  • openRight: lets you draw an ORTHOGONAL graph without the right closing line toward the bottom (XYDIAGRAM is always open at the right)
  • lineWidth: sets the additional width of the line used to draw the graph (ORTHOGONAL only). Examples: 0: standard width + 0 = 1 pixel 1: standard width + 1 = 2 pixels 2: standard width + 2 = 3 pixels In some systems the linewidth works also with XYDIAGRAM type.
  • orientation: 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.
  • colors: when the graph is ORTHOGONAL, lets you specify different fill colours for different sections of the graph. In the editing window, you have to list a different colour for each section to be coloured, starting from the first on the left.
  • 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”.