|
|
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
|
|
|
|
|
|
|
|
Rank: Advanced Member Groups: Member
Joined: 5/14/2009 Posts: 30 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: 20 Location: UK
|
I agree with ThePiMan, you need to set your location2 to a 2.
|
|
|
|
Guest
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.