Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Connect to Omron CP1E via USB port

What I have tried:

Dear every one!
I want to send data command to Omron CP1E via USB port by using VB6 or C++ but I don't know how to start.
Could you guide me or give me sample code to connect to CP1E?
Thanks you advance
Posted
Updated 8-Aug-17 4:44am

You should talk to the people who created it - they should provide technical support and will know more about their product than we will. If they don't, then find another supplier and demand your money back!

Omron supply PC software that will talk to it, they have pretty reasonable tech support: Technical Support | OMRON Industrial Automation[^] and even do free eLearning courses which may help you.
 
Share this answer
 
I believe you have to get a communication library from Omron to speak to it on the USB port. I am not entirely certain. I do know that for a "Universal" bus, it is not very easy to work with USB unless you have a vendor-supplied library.

With luck, you will get the N series CP1E CPU with a serial option card that includes an ethernet port. That will allow you to use sockets and Omron's proprietary protocol which they have documented and there is sample code available. Another option is to use the Modbus protocol with a serial port and that is also well documented.
 
Share this answer
 
Comments
phanvantuan6 8-Aug-17 10:59am    
Thanks your advance. But some time the CP1E has only one serial port or a option socket board and that was busy to connect to HMI.I can not configure again for my purpose. Therefor, I have to connect to CP1E via USB port.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900