|
|
Rank: Newbie Groups: Member
Joined: 8/21/2009 Posts: 1 Location: Uk
|
Hi
I have setup some boolean tags in Kepserver. When I see a boolean 1 the value of -1 is been sent to PI. Is there any way of setting up PI so that when it sees a digital value as non zero (1) it will give a value of 1. At present when I get a non zero value I get bad data in PI
Thanks
|
|
|
|
|
OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System. We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ or contact OSIsoft vCampus for more details.
|
|
|
Rank: Advanced Member Groups: Member
Joined: 5/14/2009 Posts: 35 Location: UK
|
The float value -1 is actually "True" so if you use digital sets they will recognise it as 1.
We had cases where the float value would be 0.999 or 1.0001 and so the digital set did not recognise it as true. So to just record 0 and 1 to the tag set Location2 = 2 This will set anything that isn't a zero as one.
Location2: Special handling flag for digital state tags: 1= read as a string 2= treats values as true(1)/false(0)
.
|
|
|
Rank: Member Groups: Member
Joined: 1/14/2010 Posts: 28 Location: UK
|
I agree with ThePiMan, you need to set your location2 to a 2.
|
|
|
|
Guest
|