LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Lookout OPC reads A-B PLC Output word bit 15 as negative.

I am using LabVIEW and Lookout OPC driver to read an output word from an Allen-Bradley PLC and display the bit values as booleans. When bit 15 goes to a logic one, the value the opc driver reads goes negative. this causes the Labview Number to boolean array converter to 'mis-read' the bit values. How can I prevent this mis-read?
0 Kudos
Message 1 of 2
(2,731 Views)
I dealt with this problem a couple of years ago.
I had to write a VI that decode the bits and fixed it.
THe VI just checked the MSB and acted accordingly.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 2
(2,731 Views)