ORiN 2 - Programming in JAVA (bCAP Packets)

Modified on Fri, 11 Jun 2021 at 06:22 PM

**Attention** : Read this resource material carefully and in its entirety before use, to ensure it is understood and used properly.  Failure to properly follow the instructions in the resource materials DPAM provides may result in damage to your equipment.  As a result, by using the resource materials, you are assuming the risks associated with modifying your equipment. DENSO holds no liability, implied or otherwise, for damage, injury or any legal responsibility incurred, directly or indirectly from the use of the resource materials, including any loss of data or damage to property which may occur by your use of the resource materials. The use of the resource materials are not recommended unless you have technical knowledge and functional experience with the equipment and related software. DENSO is unable to provide support, remote or otherwise, for the information included in the resource material, nor for the ancillary topics relating to the information included in the resource materials. Therefore, if you are not fully comfortable with it, we strongly recommend that you send your unit to one of our Regional Support Centers for repair.  The information contained in the resource materials are subject to change at the sole discretion of DPAM. 


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 bCAP packets in JAVA (bCAPClient). This article is not intended to aid you with programming in JAVA nor how to use Visual Studio IDE. 

Tools and Parts needed

The following sample code is provided "AS IS" under the MIT License. Programming support service of JAVA is out of warranty. Please note that we do not provide any programming support service. 

Previous Steps...

Please make sure that you have reviewed the ORiN 2 - 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 b-CAP Tester

C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC7\Bin\b-CAP Tester.exe

RC8 (VRC) b-CAP Tester

C:\ORiN2\CAP\b-CAP\CapLib\DENSO\RC8\Bin\b-CAP Tester_RC8.exe

Locate b-CAP Library (bCAPClient) for JAVA


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


RC8 provider directory


Please consult the Owner's manual for information on how to program your DENSO Robot or details on specific robot commands. 


More samples...

You can find JAVA samples in your install of the ORiN 2 SDK. Here are some recommendations:

RC8 Provider Samples

Sample NameDirectory Path

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

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article