calvindodds@hotmail.
Member
Hi All,
This is my first post on this form and I am hoping you can help me with this query,
I am reading a sensor value from a IFM AL1020 IO Link module. I am using a RS Logix 5000 enviroment. I am receiving the data into bytes AL1020:I.Data[2].4 and AL1020:I.Data[2].5 of my input process data. These two bytes contain the distance measured from the sensor. The AL1020 module send the data over Ethernet/IP™ uses the little endian format where as the IO Link module uses the big endian format. Can anyone help with sorting these two bytes of data so I can read the correct value? The sensor data seems to be a combination of the Most significant Byte of AL1020:I.Data[2].5 and the Least significant Byte of AL1020:I.Data[2].4
Thank You
This is my first post on this form and I am hoping you can help me with this query,
I am reading a sensor value from a IFM AL1020 IO Link module. I am using a RS Logix 5000 enviroment. I am receiving the data into bytes AL1020:I.Data[2].4 and AL1020:I.Data[2].5 of my input process data. These two bytes contain the distance measured from the sensor. The AL1020 module send the data over Ethernet/IP™ uses the little endian format where as the IO Link module uses the big endian format. Can anyone help with sorting these two bytes of data so I can read the correct value? The sensor data seems to be a combination of the Most significant Byte of AL1020:I.Data[2].5 and the Least significant Byte of AL1020:I.Data[2].4
Thank You