ASCII Reads/Writes on a ControLogix

kdcui

Lifetime Supporting Member
Join Date
Dec 2007
Location
USA
Posts
386
The documentation states that when these instructions are executed, they are placed in a queue. When the ASCII read/writes are subsequently processed from the queue, are they then synchronous or asynchronous (like MSG instructions)?
 
Bringing this thread back for another question:

I need to read a continuous ASCII stream from a device (a weight scale).

I'm using a 1756-L62 (5562)
At 9600 baud, am I going to overwhelm the ASCII buffer to the point where the PLC can't keep up with the incoming ASCII?

Also, how should I set up my read instructions: Should I make an array of Control Port tags and use multiple reads or just stick with one read instruction. Additionally, is it recommended to put these instructions in a continuous task, or a periodic task?

The PLC has relatively little going on so the scan won't be bogged down in other parts of the program.

Thanks.
 
No, you won't overwhelm anything on the 62 at 9600 baud, unless perhaps the message itself is more than a standard string in possible length. If it is, just create a new string type with a longer length.

Anyway, keep it in continuous, configure it for the proper end-of-message character(s), trigger it, and wait either for timeout or an actual message. Once you get a real message, copy it off, parse it, and re-trigger the MSG instruction.
 
Ok, I should note I'm not using a MSG block for this, but rather (planning on using) the built in ASCII instructions (ARD or an ARL).
 
They are sthe same kdcui, once triggered, they go off and do their thing. They don't have to complete before the scan moves on (Good thing too, if you think about it).

If you are doing a polling sequence, you will have to watch the order of writes and reads, of course.
 

Similar Topics

Hi, We couldn’t find anything specific, so am starting a new thread. I’m trying to migrate a config from a ML1400 to a micro820 & am experiencing...
Replies
1
Views
92
I have an L24ER-QB1B with a 1769-ASCII card in slot number 4. I'm looking to send data to this zebra printer after every completed sequence. I'm a...
Replies
2
Views
439
Hi to everybody. I need to read the first 12 characters of the message that a barcode reader sends to the ascii card (1734-rs232 ascii) and I...
Replies
8
Views
725
I am trying to import addresses and symbols from a PanelBuilder32 application into the RSLogix 5 Address/Symbol database - however each time I...
Replies
5
Views
534
Good day! I am working on a project at our campus to integrate fleet vehicle chargers with load management so we don't overwhelm our service. The...
Replies
37
Views
3,802
Back
Top Bottom