Provider Execution Procedure - Denso Keyence Vision XG Series Manual

Image processing system
Table of Contents

Advertisement

4. Provider Execution Procedure

The basic process of the provider is implementation (declaration) -> execution. This provider takes a connection
process at the time of implementation. The operation can be repeated as many times as needed. A program example is
shown below.
Sub Main
On Error Goto ErrorProc
Dim caoCtrl as Object
Dim vntResult as Variant
caoCtrl = cao.AddController("XG", "caoProv.KEYENCE.VWXG", "", "conn=eth:192.168.0.10")
"State from trigger to data receiving process"
EndProc:
'End process
Exit Sub
ErrorProc:
'Error process
End Sub
(1) Declare the provider error processing routine as needed. (Connection error detection at declaration)
(2) Declare the provider implementation variable as Object type. The variable name can be specified arbitrarily.
(3) Declare the result acquisition variable. The data type depends on the command.
(4) Execute implementation with the provider declaration command cao.AddController. The parameters required for
settings vary by provider. From this point the provider commands are available using the implementation variable
caoCtrl.
(5) Now the program can be stated using the provider commands.
(1)
(2)
(3)
(5)
'Declare error process routine
'Declare provider variable
'Declare result acquisition variable
9
画像処理システム/XGシリーズ
(4)

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Denso Keyence Vision XG Series

Table of Contents