|
Description |
Invokes the control to read or write the PLC |
|
VB 6.0 |
[ TRUE | FALSE ] = [ form.] ABCTL. Trigger |
|
VC ++ |
BOOL ABCTL.Trigger ( void ) |
|
VB .NET |
Boolean AxABCTL1.Trigger( ) |
|
Remarks |
Trigger executes the command set by the Function Property . Trigger will return TRUE if SUCCESS else FALSE. Trigger will return FALSE under the following conditions. Parameters: |
|
VB 6.0 Example |
Sub Command1_Click() |
|
VC ++ Example |
void MyCWndClass:: OnBtnClick( void ) |
|
VB .NET Example |
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click AxABCTL1.Adapter = 0 ' * use adapter 0 AxABCTL1.Host = "192.168.1.31" ‘ * PLC IP Address AxABCTL1.TimeOut = 1000 ‘ * 1000ms timeout AxABCTL1.Function = 0 ' * read PLC AxABCTL1.FileAddr = "N7:0" ' * starting at N7:0 AxABCTL1.CtlSize = 10 ' * for 10 data points AxABCTL1.Trigger() ' * get the data End Sub |
|
Also See |