I have a 3-axis sensor that I'm working on integrating with a Micrologic PLC. The sensor has a RS-422 output and I'm using an RTA Automation PLC to ASCII device to communicate between the sensor and the PLC.
The sensor uses messages made up of hex data of the format SOH, Msg ID, #of bytes in message, Chksum, data1, data2... Because the RTA device translates the hex to ASCII, I have it set to pass the messages as an array of integers. So, I have an array of integers configured to read as hex, and in RSlogix I can see the array containing hex values from the RS-422 output of my sensor.
I need to combine two array values and display the result as a single SP Float value. For example, N1:3 contains 3E02, and N1:4 contains 8621. The SP float should be 3E028621, and convert to the equivilant decimal (0.1275, I believe). I'm more of a systems integrator, rather than PLC programmer, so does anyone know what sort of instructions I could use in RsLogix to work with this data and display the result I want? Thanks, and let me know if you've got any questions or need additional info.
The sensor uses messages made up of hex data of the format SOH, Msg ID, #of bytes in message, Chksum, data1, data2... Because the RTA device translates the hex to ASCII, I have it set to pass the messages as an array of integers. So, I have an array of integers configured to read as hex, and in RSlogix I can see the array containing hex values from the RS-422 output of my sensor.
I need to combine two array values and display the result as a single SP Float value. For example, N1:3 contains 3E02, and N1:4 contains 8621. The SP float should be 3E028621, and convert to the equivilant decimal (0.1275, I believe). I'm more of a systems integrator, rather than PLC programmer, so does anyone know what sort of instructions I could use in RsLogix to work with this data and display the result I want? Thanks, and let me know if you've got any questions or need additional info.
Last edited: