Denso Keyence Vision XG Series Manual page 21

Image processing system
Table of Contents

Advertisement

<ImplVar>.WriteVariable
Usage
Writes a value to a specified scalar variable (global or local variable).
Syntax
<ImplVar>.WriteVariable
Description
A value is written to a specified scalar variable.
(This variable name is a name configured in the XG series.)
Example
Dim caoCtrl as Object
caoCtrl=cao.AddController("XG","CaoProv.KEYENCE.VWXG", "", "conn=eth:192.168.0.10")
caoCtrl.WriteVariable "#MyVar", 2, 0
Argument: <Variable name> Specify a scalar variable name with one-byte characters
<Value> Specify a value to write to the variable (Double type).
<Synchronization mode> Specify whether or not to reflect in
<Variable name>, <Value>
(character string).
synchronization with a flow (integer).
0: Reflected immediately without
synchronization with flow (MW command)
1: Reflected at the end unit of flow (MS
command)
21
画像処理システム/XGシリーズ
, <Synchronization mode>

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Denso Keyence Vision XG Series

Table of Contents