
YAMAHA SR1 Provider User's Guide - 27 -
ORiN Forum DENSO WAVE Inc.
Example
----------------------------------------------------------------------------------------------------------------------------------
Dim aaa As Object
Set aaa = caoCtrl.AddRobot(“AAA”)
aaa.Execute(“ACHI”, Array(2,-100)) ‘ Arch motion definition to return for distance of Y=-100.00
----------------------------------------------------------------------------------------------------------------------------------
3.2.16. CaoRobot::Execute("P") command
Set point variable P. A point number between 0 and 999 can be specified.
[Attention]
Although the point variable data is retained even if the controller power is turned OFF, an operation that causes
a program reset initializes the point variable to 0.
Syntax P ( <lPNo:VT_I4> )
< lPNo >
:
[in] Point number (VT_I4): A point number between 0 and 999
Return value
:
None
Example
----------------------------------------------------------------------------------------------------------------------------------
Dim aaa As Object
Set aaa = caoCtrl.AddRobot(“AAA”)
aaa.Execute(“P”, 100) ‘ Set point variable P to 100
----------------------------------------------------------------------------------------------------------------------------------
3.2.17. CaoRobot::Execute("P+") command
Add 1 to point variable P.
Syntax P+ ()
Return value
:
None
Example
----------------------------------------------------------------------------------------------------------------------------------
Dim aaa As Object
Set aaa = caoCtrl.AddRobot(“AAA”)
aaa.Execute(“P”, 100) ‘ Set point variable P to 100
aaa.Execute(“P+”) ‘ Set point variable P to 101 (P <- P+1)
----------------------------------------------------------------------------------------------------------------------------------
Komentarze do niniejszej Instrukcji