Hi guys, can you help me how we can write this expression for third tag for two tags it is working fine so how we can write expression for the third tag
if ({tag1} > 0 , if ({tag2} > 0 , "Both Tags are positive." , "Tag 1 is positive." ), if ({tag2} > 0 , "Tag 2 is positive." , "Neither Tag is positive." ))
i will pastte the link here for the manual if - Ignition User Manual 7.9 - Ignition Documentation
case(
binEnc({tag1}, {tag2}, {tag3}),
1, "Tag1 is positive.",
2, "Tag2 is positive.",
3, "Tag1 and 2 are positive.",
4, "Tag3 is positive.",
5, "Tag1 and 3 are positive.",
6, "Tag2 and 3 are positive.",
7, "Tag1, 2 and 3 are positive.",
"No tag is positive."
)
https://docs.inductiveautomation.com/display/DOC81/binEnc
https://docs.inductiveautomation.com/display/DOC81/case
See also, Wiki - how to post code on this forum
3 Likes