Brooksy

Omron NJ/NX to AB Ethernet/IP String Data type exchange

3 posts in this topic

Have been able to exchange data types of BOOL, INT,  DINT & REAL between Omron NJ/NX CPU with Allen Bradley Logix CPU's with Ethernet/IP using the CIPUCMMRead & CIPUCMMWrite instructions.

I now have a need to exchange "STRING" variable types. Have tried varions string lengths in the NJ without sucsess. AB default string length is 82 & Omron 256 but I think the difference is the length headder that AB has with within their String Tag type. I know I could convert my strings to an array of bytes & sent them this way, but was looking for a solution to sent them as native strings.

Hope someone out there has done this & can share their leg work? 

Share this post


Link to post
Share on other sites

You will have to convert to bytes, with a four-byte length header.

Share this post


Link to post
Share on other sites
On 7/28/2021 at 10:16 PM, Brooksy said:

I know I could convert my strings to an array of bytes & sent them this way

I would do it this way anyway. In fact, I would transfer all the data types in this manner. This way you could transfer the entire block of data with one instruction. (or two if you are reading and writing). Both platforms are capable of custom data types so you could resolve them in PLC code easily. 

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