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 recently uploaded an aplication from a Panel View, created a new screen and now that I've downloaded it to the Panel View, all the texts have...
Replies
9
Views
155
I have never had the pleasure of working with a "Thermistor" until now and have a question. The Thermistor is a 10KOhm 4-20mA 2-wire device and I...
Replies
4
Views
136
Hi All, So I have a main routine with an instruction that's executed by XIC "Run" I have a JSR located on a rung below it. In the logic for that...
Replies
6
Views
242
I have a 120V relay, 120V DI card and a analog input. I was wanting to know if i could put a 24V DI and well as a 120V DI card on the same plc...
Replies
1
Views
104
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
200
Back
Top Bottom