Delta Electronics DUP-B Manual De Usuario

Descargar
Página de 491
Chapter 3 Creating and Editing Screens 
 
3-154 
Revision May, 2010
 
Property Description of Dynamic Ellipse Element 
Used to set X coordinate 
Used to set Y coordinate 
Width 
Used to set the element width 
Height 
Used to set the element height 
 
3.8.9.6 Real Image 
Property Description of Real Image Element 
1.  This element provides a Dll Library which allows the user to transmit the 
user-defined image to HMI by using external programs through serial 
communication interface.   
2.  One screen can have a real image element only.   
Foreground Color  Used to set the foreground color of the real image element. 
Interface 
Used to set the communication protocol, RS232/RS-485。 
COM 
Used to set the HMI communication port. Please note that this COM 
port cannot be used for PLC communication at the same time.   
Used to set X coordinate 
Used to set Y coordinate 
Width 
Used to set the element width 
Height 
Used to set the element height 
Example 
1.  Load ImgTrans.dll (the file is saved in Utility folder under the 
location of the installation destination directory. (under 
destination directory \Utility) 
 
2.  Data Structure: 
typedef struct _COMM_INFO 
 char  szCOM[8]; 
 } COMM_INFO; 
szCOM is a string of characters and the sent values aire COM1, 
COM2, COM3, …。 
 
3.  List of Commands: 
(1)  int hmOpen(const COMM_INFO* pCommInfo); 
(2)  int hmSendImageFromFile(LPCTSTR szFileName); 
(3)  HANDLE hmAsyncSendImageFromFile(LPCTSTR 
szFileName); 
(4)  int hmSendImage(HBITMAP hbmp); 
(5)  HANDLE hmAsyncSendImage(HBITMAP hbmp);