TYPE VDIR

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.

  1. The situation after specifying the input data type VDIR, then issuing the INIT+ event and expanding the panel to show the newly created IN_ENUM element at the bottom. The default initial value RIGHT appears in the output panel.
  2. The situation after clicking on the drop-down list arrow; this allows checking that all enumerated values are properly displayed.
  3. The situation after clicking on a new enumerated value.
1
2
3