Hi All,
I am communicating with a cognex camera from a MicroLogix over EIP.
I am reading in a part count and a Pass/fail (1 or 2).
My issue is that the two integers are being written into the same int file (N15:1). When I view them as HEX I am seeing 3802 for example. When you separate this it reads 38 02, which in HEX means 56 2 which is 56 bottles and a fail, which is correct and accurate every time.
Is there a way to use the EQL command for the first half of the int N15:1?
Maybe something line N15:1.Data[1] or something like that?
Any help is much appreciated, thanks in advance.
I am communicating with a cognex camera from a MicroLogix over EIP.
I am reading in a part count and a Pass/fail (1 or 2).
My issue is that the two integers are being written into the same int file (N15:1). When I view them as HEX I am seeing 3802 for example. When you separate this it reads 38 02, which in HEX means 56 2 which is 56 bottles and a fail, which is correct and accurate every time.
Is there a way to use the EQL command for the first half of the int N15:1?
Maybe something line N15:1.Data[1] or something like that?
Any help is much appreciated, thanks in advance.