Please read our Legal Disclaimer before executing any steps on this article.
Overview
b-CAP is a communication protocol to access CAO provider and improve the transmission rate. b-CAP has the same service structure as the object of CAO provider. b-CAP is mounted as TCP stream communication. Since b-CAP packet does not contain check code, and error-free protocol is required at the lower-layer protocol.
This article is meant to help to gather information on resources that can help you get started with interfacing with the library to build b-CAP packets in C/C++ (bCAPClient). This article is not intended to aid you with programming in C/C++ nor how to use Visual Studio IDE.
Tools and Parts needed
- ORiN 2 SDK Install
- Visual Studio IDE
- PC running Windows OS (just to get a copy of library files)
NOTE: The following sample code is provided "AS IS" under the MIT License. Programming support service of C/C++ is out of warranty. Please note that we do not provide any programming support service beyond basic setup and troubleshooting.
Previous Steps...
Please make sure that you have reviewed the ORiN2 - Overview article and that your RC controller is properly setup. You can use the CAOTester to make sure that your PC is ready to communicate with the controller.
Set up your controller to accept messages from your PC. | ORiN 2 - Robot Controller Setup (RC8 / RC8A / COBOTTA) |
Test communication using b-CAP Tester application (Windows OS only)RC7 bCAP TesterC:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC7\Bin\b-CAP Tester.exe RC8 (VRC) bCAP TesterC:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Bin\b-CAP Tester_RC8.exe | |
Add bCAPClient.h Include Path to your Visual Studio project |
Programming References
At this point, you should be ready to begin programming your application to interface with your robot controller. When connecting to the controller, you will need to specify the ORiN provider you are trying to use to establish communication. The provider differs based on the robot controller you are using. RC5, RC7, and RC7M controllers use the NetwoRC provider. RC8, RC8A, and COBOTTA controllers us the RC8 provider.
NetwoRC provider directory
C:\ORiN2\CAO\ProviderLib\DENSO\NetwoRC
RC8 provider directory
C:\ORiN2\CAO\ProviderLib\DENSO\RC8
NOTE: Please consult the Owner's manual for information on how to program your DENSO Robot or details on specific robot commands.
Programming using the Provider
The following samples are for performing various basic but essential operations. The samples are for connecting using the RC8 Provider.
For more information you can reference Section 4 RC8 Programming Using the Provider from the RC8 Provider User's Guide PDF document.
RC8 Provider User Guide Samples in C/C++
This document intends to give you a better experience when trying to implement a command in the provider. We have "translated" the original VB6 samples in Section 5.0 from the RC8 provider guide into C/C++ language. Click here to download a copy. |
More samples...
You can find C/C++ samples in your install of the ORiN 2 SDK. Here are some recommendations:
RC8 Provider Samples
Sample Name | Directory Path |
---|---|
bCapChangeLang | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Samples\C\bCapChangeLang |
bCapChangeParams | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Samples\C\bCapChangeParams |
bCapControlTask | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Samples\C\bCapControlTask |
bCapDataStore | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Samples\C\bCapDataStore |
bCapDummyServer | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Samples\C\bCapDummyServer |
bCapIOAssign | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Samples\C\bCapIOAssign |
bCapManageFiles | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Samples\C\bCapManageFiles |
bCapManageGVars | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Samples\C\bCapManageGVars |
bCapRaspberryPi | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Samples\C\bCapRaspberryPi |
bCapRobotMove | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Samples\C\bCapRobotMove |
bCapSlaveMove | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Samples\C\bCapSlaveMove |
bCapVariablesAccess | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Samples\C\bCapVariableAccess |
NetwoRC Provider Samples
Sample Name | Directory Path |
---|---|
Sample (old) | C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC7\Samples\old\C |
Owner's Manual Reference
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