radu_harceaga Posted October 30, 2009 Share Posted October 30, 2009 Hello, I have the following problem: I am monitoring a channel on wich I have a simple On/Off switch. When I turn on the switch, in the channel table I read -1 and for the off position I read 0. Can anyone tell me how I can get 1 for on and not -1. I don't want to use an aditional virtual vhannel and ABS the value of the phisical channel. Regards Link to comment Share on other sites More sharing options...
AzeoTech Posted October 30, 2009 Share Posted October 30, 2009 Just create a Conversion for the channel. The expression can be a number of things. I'd just do: Value != 0 Note that DF considers TRUE to be any non-zero value, including -1. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.