
YAMAHA SR1 Provider User's Guide - 8 -
ORiN Forum DENSO WAVE Inc.
“Conn=com
:[<ComPort>”[:<BaudRate>[:<Parity>:<DataBits>:<StopBits>]]]”
<ComPort> : COM port number. ’1’-COM1, ’2’-COM2,...
<BaudRate> : Transmission rate.4800, 9600, 19200, 38400, 57600, 115200
<ByteSize> : Parity. ’N’-NONE, ‘E’-EVEN, ‘O’-ODD
<DataBits> : Number of data bits. ’7’-7bit, ‘8’-8bit
<StopBits> : Number of stop bits. ‘1’-1bit, ‘2’-2bit
2.2.2. CaoController::AddRobot method
The argument of the AddRobot method of the CaoController class specifies the robot name (BSTR type). The
robot name specified here is an arbitrary string. A CaoRobot object is retrieved by calling the AddRobot
method.
Syntax AddRobot(<bstrName:BSTR>[,<bstrOption:BSTR>])
< bstrName >
:
[in] Robot name (VT_BSTR)
< bstrOption >
:
[in] Option character string (not used)
2.2.3. CaoController::AddVariable method
The AddVariable method of CaoController class is a method for access to variables. In the SR1 provider,
specify a system variable for the variable name.
Refer to Table
2-5 about the system variables implemented in the SR1 provider.
Syntax AddVariable(<bstrVariableName:VT_BSTR>[,<vntOption:VT_BSTR>])
< bstrVariableName >
:
[in] Variable name (VT_BSTR)
<bstrOption>
:
[in] Option character string
Example
----------------------------------------------------------------------------------------------------------------------------------
Dim aaa As Object
Dim bbb As Double
Set aaa = caoCtrl.AddVariable(“@POS”)
bbb = aaa.Value
----------------------------------------------------------------------------------------------------------------------------------
Komentáře k této Příručce