恭喜,你发布的帖子
发布于 2024-06-06 10:29:02
10楼
//Initialization
//
#quantity := 0;
//Check if there are more than 2 trigger tags.
//
FOR #i := 0 TO 9 DO
#quantity := #quantity + BOOL_TO_INT(#tag[#i]);
END_FOR;
//If the number of triggered tags is>=2, an alarm will be triggered.
//
#alarm := #quantity >= 2;
请填写推广理由:
分享
只看
楼主