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 TesterC:\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:
Press the [Add] button in the [Workspace] window to display the [CAOController] window. | |
Check Object and Log windowsIf 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 handlerIn the controller window, select a variable tab and create a variable window for I1 (Global Variable Integer 1). | |
Read / Write VariablePress 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: | |
Add the @SERVO_ON variable handlerUnder the Robot window add the variable handler by inputting the following information on the "AddVariable" section: | |
Read / Write @SERVO_ON variableUnder 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
Feedback sent
We appreciate your effort and will try to fix the article