Anaheim HMIPLC Release note for Version 16 all20110601 Users Guide
Here you can view all the pages of manual Anaheim HMIPLC Release note for Version 16 all20110601 Users Guide. The Anaheim manuals for HMI/PLC are available online for free. You can easily download all the documents as PDF.
Page 121
Click macro button, it displays: 6. Draw picture directly on the scr een(Descriptions of drawing functions) In order to facilitate to draw some conventional pictures(like line, cycle and polygon and so on) , there is a group of drawing func tions in HMI macro. User can call these drawing functions in MacroEntry function. The drawing function use HMI rectangular coordi nate: the origin is at the top left of screen, X axis increase from left to righ t , Y axis increase from top to...
Page 122
typedef struct penparam { short type; short width; int color; }PenParam; Penparam is used to set the type, width., co lor attribute of a pen, their ranges are in the following form: Parameters’ name Value Explain PS_NULL No brush PS_SOLID Smooth linear () PS_DASH Lineation () PS_DOT Dotted line(.) PS_DASHDOT Dot dash line () Type PS_DASHDOTDOTDouble dots dash line() Width 1~8(Units: Pixel )If the input value is smaller than the minimum1, the system set it...
Page 123
BFS_DENSE6 BFS_DENSE7 BFS_DENSE8 BFS_DENSE9 BFS_DENSE10 BFS_DENSE11 BFS_DENSE12 BFS_FDIAG1 BFS_BDIAG1 BFS_FDIAG2 BFS_BDIAG2 BFS_FDIAG3 BFS_BDIAG3 BFS_VER1 BFS_HOR1 BFS_VER2 BFS_HOR2 BFS_VER3 BFS_HOR3 BFS_DIAGCROSS BFS_CROSS BFS_HORGRDT_FTTD BFS_HORGRDT_FDTT BFS_HORGRDT_FETC BFS_HORGRDT_FCTE BFS_VERGRDT_FLTR
Page 124
BFS_VERGRDT_FRTL BFS_VERGRDT_FETC BFS_VERGRDT_FCTE BFS_OUPGRDT_FLTTRD BFS_OUPGRDT_FRDTLT BFS_OUPGRDT_FETC BFS_OUPGRDT_FCTE BFS_ODWNGRDT_FRTTLD BFS_ODWNGRDT_FLDTRT BFS_ODWNGRDT_FETC
Page 125
BFS_ODWNGRDT_FCTE BFS_CONGRDT_FLTTRD BFS_CONGRDT_FRTTLD BFS_CONGRDT_FRDTLT BFS_CONGRDT_FLDTRT BFS_CENGRDT_FETC BFS_CENGRDT_FCTE ForeColor 0~65535 Suggest using the RGB(r, g, b) to set color, the range of r, g, b is 0~255 。System will switch the RGB(r, g, b) values according to the HMI color parameters BackColor 0~65535 Suggest using the RGB(r, g, b) to set color, the range of r, g, b is 0~255 。System will switch the RGB(r, g, b) values
Page 126
according to the HMI color parameters (3) Point Structure Parameters of Point Structure are simple: x means X axis coordinate of point; y means Y axis coor dinate of point 2 Drawing functions (1) Rectangle: DrawRect (x,y,w,h,pen,brh) Explains for the parameters are as follows: Parameter Type Explain x int X axis coordinate of rectangle’s top left(units : pixels ) y int Y axis coordinate of rectangle’s top left(units: pixels ) w int Rectangle’s width (units:pixels ) h int Rectangle’s...
Page 127
Explains for the parameters are as follows: Parameter Type Explain x1 int X axis coordinate of linear starting point units: pixels ) y1 int Y axis coordinate of linear starting point (units: pixels ) x2 int X axis coordinate of linear end point (units:pixels ) y2 int Y axis coordinate of linear end point (units :pixels ) pen PenParam Pen of linear (4) Polygon: DrawPolyg (pts, n, pen, brh) Explains for the parameters are as follows: Parameters Type Explain pts Point * First address of polygon...
Page 128
it, because there is a correspondence between 65526 colors and RGB. int MacroEntry() { PenParam pen; BrushParam brh; Point pts[5]; short buf[2] = {0}; pts[0].x = 0; pts[0].y = 0; pts[1].x = 100; pts[1].y = 0; pts[2].x = 120; pts[2].y = 150; pen.type = 1; pen.width = 0; pen.color = RGB(0, 0, 0XFF); brh.type = BFS_ODWNGRDT_FRTTLD; brh.foreColor = RGB(0, 0, 0); brh.backColor = RGB(255, 255,255); DrawRect(0, 0, 400, 400, pen, brh); } 23 Gradient...
Page 129
24 Polygon scaling entirely As to polygon, add the function of widening and narrowing entirely, this function can maintain the entire shape when changing the size of graphic . As shown in the picture, when the mouse shape is , change the vertexes of polygon, when the mouse shape is , change the entire size of polygon. 25 Image Library Image Library in V1.6 modifies a lot, change the browsing mode from file tree to image library, so that the users can search the images intuitively,....
Page 130
lines cycles and so on in EV5000. There are three ways to enter the Image Library interface: 1, click Graphics in component attributes, then click Import graphics to enter the Image Library interface(take the Bit State Switch for example): 2 Click the Import graphics Library(I) in Draw(w) menu to enter the Image Library interface
All Anaheim manuals