A variable of this enumerated data type specifies the
orientation of a graphic component, and the direction of motion if
the graphic component is displaying a moving object. See the
documentation of the VSTYLE
data type for an example of its use.
TYPE VDIR : (* Orientation values for HMI elements *) (RIGHT, (* Left to Right *) DOWN, (* Top to Bottom *) LEFT, (* Right to Left *) UP) (* Bottom to Top *) ; END_TYPE
As shown below, you can launch an instance of the IN_ENUM
function block type to
test an enumerated type such as VDIR
.
-
The situation after specifying the input data type
VDIR
, then issuing theINIT+
event and expanding the panel to show the newly createdIN_ENUM
element at the bottom. The default initial valueRIGHT
appears in the output panel. - The situation after clicking on the drop-down list arrow; this allows checking that all enumerated values are properly displayed.
- The situation after clicking on a new enumerated value.


