casofp

Omron NX1P2 to C#

5 posts in this topic

Hi,

 

I'm developing an application in C# and need to communicate with a plc omron NX1P2. How can i do it? With cx-compolet?

Or is there another way?

 

Share this post


Link to post
Share on other sites

The NJ and NX processors support symbolic access via Ethernet/IP using the same read & write services as Rockwell uses.  See Rockwell's Logix 5000 Data Access manual.

1 person likes this

Share this post


Link to post
Share on other sites

I've used socket services for this in the past. Essentially send TCP commands like you would over Telnet and parse them out in the PLC.

1 person likes this

Share this post


Link to post
Share on other sites
On 9/30/2022 at 4:44 AM, casofp said:

Hi,

I'm developing an application in C# and need to communicate with a plc omron NX1P2. How can i do it? With cx-compolet?

Or is there another way?

pturmel said nice stuff. You can use E/IP library for .NET and your communication will be more advanced, compare to old fashion TCP/UDP styles. I'm not saying that it's wrong or so. TCP and UDP still valid and very useful communication protocols. But E/IP will be a bit comfortable and convinience. PLC won't require to do extra steps to build a message for transaction and your application won't need to parse the data.

Share this post


Link to post
Share on other sites

It's very easy to create a socket and exchange data by UDP or TCP.

You can exchange data in structure without conversion.

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