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

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
61
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
63
I'm working with a project that contains some routines in ST but mostly in ladder. Am I correct in assuming this 'rung': DB1001DO._01AV55_OPEN :=...
Replies
4
Views
100
Is there a way to reset the count on the RS Logix BackUp?? XXXXX PROGRAM IN PROGRESS_BAK445.RSS XXXXX PROGRAM IN PROGRESS_BAK446.RSS XXXXX...
Replies
8
Views
252
I have a few questions about Studio5000. 1. Why is my RA folder so big? its well over 100 GB. 2. How do you delete versions or extra files...
Replies
3
Views
272
Back
Top Bottom