#MvImg |
Top Previous Next |
This #MvImg object enables the rotation and moving of images. As the background can be set to be transparent, it is possible to overlay several of these objects.
Parameters Object Text/File
X, Y, DX, DY
BackColor
VarValue
The data is exchanged with the PLC via a word array of length of 5 ( WORD[5] ).
Word[0] - control flags The Active flag is set as soon as the object is instantiated. If the object is deactivated, the Active flag is reset. The Redraw flag is used by the PLC to initiate a redraw. The flag is reset if it was detected by Epam. Word[1] - index of the image to be drawn The individual files are listed under Text/File, separated by commas. This parameter specifies which of these files are to be drawn. In this case, the index 0 stands for the second image as the first image is used as the background and is always output. Word[2], Word[3] - position X and position Y The position of the file to be drawn can be defined here with the coordinates. X and Y define the position of the top left corner of the image. If Pos=Center is specified under Option, the center of the file is positioned at this point. Word[4] - rotation angle This parameter defines the number of degrees by which the image is to be rotated clockwise. The rotation point is always located at the center of the bitmap. VarType
VarState
Init, Exit
|