
YAMAHA SR1 Provider User's Guide - 30 -
ORiN Forum DENSO WAVE Inc.
3.2.22. CaoRobot::Execute("WRITE") command
Write point data. To write point data, specify a string array. Points to which data is written do not need to be
sequential numbers.
Syntax WRITE ( <vntPointData:VT_BSTR | VT_ARRAY> )
< vntPointData >
:
[out] Point setting string (VT_BSTR | VT_ARRAY)
Px=<Position data> x: Point number
The position data is VT_R8.
Return value
:
None
Example
----------------------------------------------------------------------------------------------------------------------------------
Dim aaa As Object
Set aaa = caoCtrl.AddRobot(“AAA”)
aaa.Execute(“WRITE”, Array(“P0=0.00”,”P1=350.00”,”P254=-0.27”)) ‘ Write to point
----------------------------------------------------------------------------------------------------------------------------------
3.2.23. CaoRobot::Execute("?P") command
Get point data at the specified point number. The first argument specifies the point number at which data is to
be acquired as an array. To acquire only one point, specify an array with one element. Point data at
unregistered point numbers is skipped.
Syntax ?P (<vntPointData:VT_I4 | VT_ARRAY> )
< vntPointData >
:
[in] Point number (VT_I4| VT_ARRAY)
<lBeginPointNo> Point number: VT_I4
[<lEndPointNo>] Point number: VT_I4
Return value
:
[out] Point number (VT_BSTR |VT _ARRAY)
P(lBeginPointNo) = Position data,...
,P(lEndPointNo) = Position data array
Example
----------------------------------------------------------------------------------------------------------------------------------
Dim aaa As Object
Set aaa = caoCtrl.AddRobot(“AAA”)
aaa.Execute(“?P”, Array(15,24)) ‘ Get data for point numbers from 15 to 24
----------------------------------------------------------------------------------------------------------------------------------
Komentarze do niniejszej Instrukcji