Sign in to follow this  
Followers 0
BJR

Micrologix and long strings

3 posts in this topic

I'm sending a status command to a device and the response I get back is 87 characters long! Is there any way to deal with a string that is longer than 82 characters?! If the buffer is reporting 87 I guess it's possible to store it into two separate strings but the process I may use is just not coming to me right now... What are my options?

Share this post


Link to post
Share on other sites
Which Micrologix do you have? I have a SLC program that can handle up to 246 characters. It uses the ARL instruction instead of the ARD instruction, so it only reads up to the first 82 characters out of the buffer. When you call the ARL instruction again, it will grab any remaining characters. Here's a pic of the important rung:

Share this post


Link to post
Share on other sites
ML1100 Thanks. I'll take a look at that and see if I can get it to work for me.

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