From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

cFP-DI-304 reading bitmask instead of data

I have six machines running concurrently, and they each use two cFP-DI-304s to read proximity switches on valves.  So, if the valve is open, it reads one number, if it's closed, it reads another, and if it's interim, it reads zero.  The prox switches use two channels apiece, and I can read them in MAX individually, and in my program by reading the entire module and bitmasking the returned data to select the two channels I want.  All the machines have worked fine up until this morning.
 
One of the valves is returning its bitmask instead of it's Open value.  For example, say the Open value is normally 4 and the closed value is normally 8.  The Open value is now returned as 805306368, or 0x30000000, it's bitmask.  This only happens on one of the six machines, so I don't think I changed a setting accidentally.
 
Has this ever happened to anyone before?  None of the wiring has been changed, and the data is verifiable in MAX.
 
 
0 Kudos
Message 1 of 4
(6,393 Views)
Never mind, apparently the "high quality" proximity switches we have are able to read both open and closed at once.
0 Kudos
Message 2 of 4
(6,389 Views)
Does that mean that they can also detect "kind of closed" and "almost open" as well?  Smiley Very Happy
Message 3 of 4
(6,385 Views)
those states return complex numbers Smiley Very Happy
0 Kudos
Message 4 of 4
(6,364 Views)