GATI_1976

Micrologix 1400 - Read more than 82 ASCII characteres

3 posts in this topic

I have a Micrologix 1400 and one PC which sends 102 Characters in RS-232. I need to read all characters with Micrologix 1400, Is there any way to read all characters? I know the limit of ARL and ARD instruction is 82 characters. I do not know if two ARD instructions could read all characters. Do you have any experienced like that?

Could you help me?

Thank you in advance

Share this post


Link to post
Share on other sites

Yes, you can do that using the ARL instruction, which reads a "line" from the buffer rather than expecting to see the whole string. Below is a screen shot of a program rung that can read a string of variable length up to 246 character strings using three cascading ARL instructions. You can play with the string length variable to control how much of the string you read in at a time. Look at the help file for more information.

Capture.thumb.GIF.4e7f3d2d08755372f016fb

Share this post


Link to post
Share on other sites

You are right, your program works fine.

Thak you for you help.

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