ORiN 2 - Operation check using CAOTester (CAO Engine)

Modified on Wed, 16 Oct at 6:46 PM

Please read our Legal Disclaimer before executing any steps on this article. 


Overview

Before jumping straight to building your application we recommend you test your setup by using the CAOTester tool which comes with the ORiN2 SDK installation.

Tools and Parts needed

  • RC8 Provider User's Guide

 

NOTE:
This example is to communicate your PC to a RC8 controller.

Connecting to the controller

Open CAO Tester 

C:\ORiN2\CAO\Tools\CaoTester\Bin\Cao Tester.exe


Select [Workspace] window and set parameters in [Add Controller]


 You will need to set the parameters to connect to the controller. Here is an example:

  • Controller Name: RC8
  • Provider Name: CaoProv.DENSO.RC8
  • Machine Name: <Blank>
  • Option: Server=192.168.0.1 *Substitute with target controller IP 

Press the [Add] button in the [Workspace] window to display the [CAOController] window.


Check Object and Log windows

If communication was established correctly, you will get a "Succeeded" message on the log window. You should also see the Controller object showing under the Object window. 



Reading a global variable

Get variable handler

In the controller window, select a variable tab and create a variable window for I1 (Global Variable Integer 1).

Name: I1
Option: <Blank>

In the [AddVariable] section, press the Add button. If the operation is successful you should see the variable window Variable - I1


Read / Write Variable

Press the [Get] button to read the I1 variable. Press the [Put] buttons to write the I1 variables. 



Turning motor ON

Select the [Controller] window of CaoTester. 

Select [Robot] tab and input the following under the RobotNames:

Name: Arm0
Option: <Blank>

Press the [Add…] button. 


Add the @SERVO_ON variable handler

Under the Robot window  add the variable handler by inputting the following information on the "AddVariable" section:

Name: @SERVO_ON
Option: <Blank>

Press the [Add...] button


Read / Write @SERVO_ON variable

Under the Variable - @SERVO_ON window, press the [Get] button to get the status of the Motor state. Press the [Put] button to Turn ON (1) or OFF (0) motor power.



Next Steps: 

  • ORiN2 - Overview.
  • CaoTester User’s Guide (C:\ORiN2\CAO\Tools\CaoTester\Doc\CaoTester_UsersGuide_en.pdf)
  • RC8 (VRC) Code Samples (C:\ORiN2\CAO\ProviderLib\DENSO\RC8\Samples)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article