Difference between revisions of "IComComponent"

From AdvancedHMI
Jump to: navigation, search
(IComComponent Interface)
(IComComponent Interface)
Line 3: Line 3:
 
AdvancedHMI's controls work by requesting or sending data to a driver. In order for a single control to work with any driver, the driver's must implement a common interface. This interface is defined as the IComComponent. All AdvancedHMI drivers implement the methods and properties defined by this interface.
 
AdvancedHMI's controls work by requesting or sending data to a driver. In order for a single control to work with any driver, the driver's must implement a common interface. This interface is defined as the IComComponent. All AdvancedHMI drivers implement the methods and properties defined by this interface.
  
<b><u>Properties</u></b>
+
<font size="4"><u>'''Properties'''</u></font>
  
 
<b>''DisableSubscriptions''</b> - Paused updating of subscriptions. This is useful in cases such as when hiding a form and there is no longer a need to refresh the values. Or when used with a Trend Chart, it can pause the charting.<br>
 
<b>''DisableSubscriptions''</b> - Paused updating of subscriptions. This is useful in cases such as when hiding a form and there is no longer a need to refresh the values. Or when used with a Trend Chart, it can pause the charting.<br>
 +
 +
 +
<font size="4"><u>'''Methods'''</u></font>
 +
 +
Function Subscribe(ByVal plcAddress As String, ByVal numberOfElements As Int16, ByVal pollRate As Integer, ByVal callback As EventHandler(Of Common.PlcComEventArgs)) As Integer<br>
 +
Function Unsubscribe(ByVal id As Integer) As Integer<br>
 +
Function BeginRead(ByVal startAddress As String, ByVal numberOfElements As Integer) As Integer<br>
 +
Function Read(ByVal startAddress As String, ByVal numberOfElements As Integer) As String()<br>
 +
Function BeginWrite(ByVal startAddress As String, ByVal numberOfElements As Integer, ByVal dataToWrite() As String) As Integer<br>
 +
Function Write(ByVal startAddress As String, ByVal dataToWrite As String) As String<br>

Revision as of 09:12, 3 September 2016

IComComponent Interface

AdvancedHMI's controls work by requesting or sending data to a driver. In order for a single control to work with any driver, the driver's must implement a common interface. This interface is defined as the IComComponent. All AdvancedHMI drivers implement the methods and properties defined by this interface.

Properties

DisableSubscriptions - Paused updating of subscriptions. This is useful in cases such as when hiding a form and there is no longer a need to refresh the values. Or when used with a Trend Chart, it can pause the charting.


Methods

Function Subscribe(ByVal plcAddress As String, ByVal numberOfElements As Int16, ByVal pollRate As Integer, ByVal callback As EventHandler(Of Common.PlcComEventArgs)) As Integer
Function Unsubscribe(ByVal id As Integer) As Integer
Function BeginRead(ByVal startAddress As String, ByVal numberOfElements As Integer) As Integer
Function Read(ByVal startAddress As String, ByVal numberOfElements As Integer) As String()
Function BeginWrite(ByVal startAddress As String, ByVal numberOfElements As Integer, ByVal dataToWrite() As String) As Integer
Function Write(ByVal startAddress As String, ByVal dataToWrite As String) As String