Project

General

Profile

Feature #1732

SHL18BS物联网云项目-svgScript.js内申请追加一个变频风机的逻辑

Added by yufeng wu about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Start date:
10/20/2021
Due date:
% Done:

0%

Estimated time:

Description

图元反馈自定义点配置
点1,点2,点3
工频关,工频开,变频0关/1开
1,0,1开(变频)==1
1,0,0关(变频)==0
0,1,0开(工频)==1
其他情况异常 ==2
LOGIC_API int Logic3_GBP(int *pIn, int nums) {
if (nums >= 3) {
if(( 1==pIn0 && 0==pIn1 && 1==pIn2) || (0==pIn0 && 1==pIn1 && 0==pIn2))
return 1;
elseif( 1==pIn0 && 0==pIn1 && 0==pIn2)
return 0;
else
return 2;
}
elseif(nums >= 2)
return (1 == pIn0 + pIn1) ? (pIn1) : 2;
else
return pIn0;
return -1;
}

History

#1

Updated by yufeng wu about 3 years ago

  • Status changed from New to Resolved

已完成Logic3_GBP,交付使用

Also available in: Atom PDF