ASCII code for Micrologix 1100

sellis4003

Member
Join Date
Feb 2019
Location
maryland
Posts
6
Hi Guys, i am reposting this beacuse I'm still having issues with the "READ" ARL or ARD instructions. I have a pdf of a program that I found on the Rockwell site that is slightly modified for the Write command but I can write fine. I would like to be able to read back commands that I just wrote to the device as well as solely just monitor certain ASCII data from the device. Cannot seem to read any ASCII from the device and not sure how to set up my string table for the reads. Any help would be much appreciated.


Hello, I am working with a micrologix 1100 allen bradley plc and I need to send and receive ascii code to a sensor device. The syntax for the commands that the manufacture states are the following:

set:LO=xxxx -(to set the low speed)
set:HI=xxxx -(to set the high speed)
I can get this to work using an AWA write command with a ACN command by typing the (set:LO=) in my ST string file and loading the xxxx variable from an hmi into and interger file and using an AIC command.
it works pretty well.

What I am having problems with is how to read information from the sensor.

get:LO=xxxx
get:HI=xxxx...


I am not certain how I can read these with and ARL or ARD instruction.. Or do i need to do something else. I will also need to convert it back to an integer file.

Thank you for your time!!!

Steve
 
At first glance, it still looks a bit too simple to cover all your bases. It has been over ten years since I had to to ASCII with ladder logic, but when I did, I ended up with a state logic control over the steps and several places where I had my own timeouts and recover branches. I don't have access to that code or enough memory of the details to say much more.
 
Thanks for the reply Okie. Yes this is know this is too simple for what I am trying to do. I had some more complex code written with different time delays and more ASCII values that I needed to write and read but reverted back to this because I wasn't able to read anything back at all and thought I should start simple. I found this example on the Allen Bradley Website and Added the AIC and ACN for the write since I need to load the values from a touch screen. The writes all seem to work fine. I'm thinking it has something to do with the SYNTAX that the ASCII device is looking for. When I do a Write, I have to type a (set:LO=) into my string data file but not sure how to handle this for a read since the device is looking for a (get: LO=) to read a value. Any help would be much appreciated... Thanks again Steve!!!
 
I think your scan time is beating out the very slow speed of the ARD. I'd separate out your AEX and ACI from the ARD. Use the ARD /DN bit to trigger the AEX and ACI.

Edit: I see that you need to write a get: command, then the device will respond with the value you want. If this is the case, I'd try to first clear the buffers, AWT your get: command, then test the buffer, then read. Give your AWT and ARD time to do their work as they can be quite slow. Trigger any concatenation off their /DN bits.
 
Last edited:
Thank you Shawn for the quick reply. I appreciate your input, it certainly make a lot of sense. I was wondering if I had to do an AWT for the get as well. I will give these things a try and keep you posted.. Thanks again, Steve
 

Similar Topics

Hello, I am working with a micrologix 1100 allen bradley plc and I need to send and receive ascii code to a sensor device. The syntax for the...
Replies
3
Views
2,260
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
685
hi, i try to capture barcode data using UDT with SINT ascii array. i have all the data i need but it in array format, how can i convert to 1...
Replies
5
Views
3,016
Hi, anyone can recommend for*Melsoft for Q*series instruction to reverse the ASCII code i receive the eg. bacode ABC12345 i wanted to change...
Replies
1
Views
1,848
I have an omron cp1le plc and a sato s84ex printer I need to learn how to send print jobs to it. I know I can use the Serial card option and send...
Replies
3
Views
2,587
Back
Top Bottom