Sign in to follow this  
Followers 0
truecuban

Use VB.NET to turn a memory bit on or off in CP1H PLC

6 posts in this topic

Hi for a college project I plan on communicating input from visual basic to the CP1H PLC. I just want to turn a memory bit on and off. I researched omron fin commands but it seems like its out of my league, I was wondering if there was a way to do this via USB communication or if you have examples I could work off? thanks in advance guys.

Share this post


Link to post
Share on other sites
As far as I am aware the USB is for programming only. You would be able to set up a serial port for Host Link and use that. Check out the Host Link commands - it may be easier.

Share this post


Link to post
Share on other sites
Even if you were to do USB, the protocol is still FINS. As there is not a control for .Net for Omron PLCs on USB, serial or Ethernet is much easier. Are you comfortable doing either serial or Ethernet comms from .Net? FINS seems daunting at first, but once you understand the 10 byte header and basic command structure, you can do almost anything. This forum could help answer questions about serial or Ethernet comms, but we want to make certain you still do the bulk of the work.

Share this post


Link to post
Share on other sites
Hi PMCR, thanks for the reply. I'd like to do it with ethernet but to be honest I don't know where to start, can you direct me towards a tutorial on how to do it or can you offer some guidance on ethernet comms, it would really be appreciated and I definitely will do the work my self.

Share this post


Link to post
Share on other sites
The details on how the FINS Protocol works can be found at the link below. It is the Sysmac CS/CJ Series communication Commands manual, and it also applies to the CP1H / CP1L. http://forums.mrplc.com/index.php?app=downloads&showfile=620 I have added an overview in the attached txt file. FINS Tutorial.txt There is also a utility that I wrote that can help you understand the FINS protocol by letting you build your own FINS commands, and the software shows you the entire data packet. http://forums.mrplc.com/index.php?app=downloads&showfile=948
1 person likes this

Share this post


Link to post
Share on other sites
Thank you very much PMCR for the help I really appreciate it

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0