Question about RS422/ASCII to Micrologix 1100

opmal7

Member
Join Date
Dec 2014
Location
Moline
Posts
35
I'm using a Micrologix 1100 and I want to add a sensor that has a RS422/ASCII output. The sensor outputs a series of messages in hex format over RS422 in a specified message format:

CA (start of header) AB (message id) 10 (message # of bytes) 85 (header checksum) ABCD1234....(message) FF (message checksum)

There are about a dozen different messages, but only a few contain information that I'm interested in. So, for example, message A6 contains a measurement in bytes 8-12 that I want to convert from hex to decimal and display on the HMI for the user. I will also need to write messages back to the sensor, which follow the same format, and will need the correct checksum added based on the message contents.

I've got several questions:

1) Is it possible to connect the RS422 device directly to the Micrologix, or will it require an add-on module?

2) How would I set this all up in RsLogix? I'm very inexperienced with the serial programming for RsLogix, so I'll probably need to review some manuals. But, could I potentially copy each message (based on message id) to separate data tables, and then process the information from there, or is there a better way to approach this?

3) How would I handle the beginning and ends of messages? Each message has a common "start of header" (CA), but that's about it. Each message is a different length, and are sent at varying intervals (some are 5 Hz, some 2 Hz, some 1 Hz, etc.)

4) For writing messages back to the sensor, how do I calculate the checksum? Is there an automatic checksum calculator, or would I have to setup math functions to calculate it within the PLC program?

Thanks, and let me know if any additional information is needed!
 
You'll need something like a LanTronix XPress DR to do your conversion to RS232 and back to RS422. A DIGI IAP will do it too. I wouldn't even put the 1000 in the mix and just let your PC read the data via the LanTronix through Ethernet and parse it right there in the PC.

If you do decide to use the ML1100, beware that it is quite clunky with ASCII and even worse with hex data. I have in the past treated the hex data as simple ASCII and only did the conversion to hex right before I transmitted out the serial port.
 

Similar Topics

Hello again..trying something on an existing poorly written program and just wanted to double check something system is an A-B MicroLogix 1200 In...
Replies
5
Views
132
Good morning! Let me start by saying, I am still learning about this type of HMI programming. I recently watched a video about recipes and how it...
Replies
0
Views
53
I have some logic that I have written within a 5380 series controller that tracks the time an event is started, while the event is running an RTO...
Replies
2
Views
81
I have an HMI 2711R - T4T Series B, and I want to know which PLCs, besides Micro 820, can communicate with it.
Replies
2
Views
80
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
71
Back
Top Bottom