Commands and functions
P.
278 of 349
Mpshifter
Chart
Mchart
Element
mpshifter
●
mpshifter
(ID)[$Text1$,$Text2$,...,$Text254$][Image1, Image2, Image3, Image4] $Label$
Argumente
●
ID: Value between 0 and 59 as an index for programming and the access to this element.
You can also access u08 variables of the section
[EibPC]
.
●
Image1 to Image4: A value between 0 and 99. To arrange the application more clearly,
constants have been predefined (page 291).
●
Image2 to Image4 are optional.
●
If only three images are defined, the element has only three buttons etc.
●
Text1, Text2, .. Text254: labels for the
mpshifter
. The second and following elements are
optional.
●
Label: A static labeling text (first line).
Access by the user program
●
The Image and the text are accessed by the function
pdisplay
(page 260). Switching of the
listbox (providing the active listbox element) is also arranged by this function.
●
Activation of the buttons has to be evaluated by the function
mbutton
(page 247).
Element
chart
●
chart(ID)[$Y0$,$Y1$,$Y2$]
Arguments
●
ID: A value between 0 and 255 as an index for programming and the access to this
element.
●
$Y0$, $Y1$,$Y2$: Labeling of the y-axis.
Access by the user program
●
The y-values are accessed in the user program by the function
(page 247), as
explained in Table 1.
●
Values from the field 1...30 can be represented. With every call of this function, the values
are displayed starting from the left. When the end is reached after 47 calls, the values are
shifted to the left.
Element
mchart
●
mchart
(ID) [Height,Type]($Label1$,Style1,
$Label2$,Style2, $Label3$,Style3, $Label4$,Style4)
Arguments
●
ID: Value between 0 and 59 as an index for programming and the access to this element.
●
Height
:Value 0 or 1 (or constant SINGLE and DOUBLE)
●
Type
: Value 9 (or constant SXY) for plots with sorted X-Y sets (well suited for time-based
plots)
●
$Label1$ .. $Label2$
Legend of the graph
●
Style1, Style2, Style3, Style4:
value 0,1,2 or 3 (constant LINE, DOTS, LINEDOTS,
COLUMN)
Access by the user program
●
XY values are accessed with the function
mchart
(page Fehler: Referenz nicht gefunden)
in the user program as explained in in Table 1. A
mchart
manages up to 4 XY diagrams.
The number of diagrams is specified through the number of arguments.
●
Each XY diagram has a legend. When you display 4 XY diagrams, also 4 legend are
displayed.
●
47 floating point values are display in a diagram. The scale is generated automatically.
Please consider the additional information given by the function
mchart
() on page Fehler:
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]