一区二区三区成人-一区二区三区www-一区二区三区 日韩-一区二区日韩欧美-一区二区日韩精品中文字幕-一区二区日韩

tangbingchen
級別: 探索解密
精華主題: 0
發帖數量: 93 個
工控威望: 164 點
下載積分: 2586 分
在線時間: 27(小時)
注冊時間: 2018-07-10
最后登錄: 2024-10-22
查看tangbingchen的 主題 / 回貼
樓主  發表于: 2022-08-14 12:52
*************************************************************************************)
REGION
    #A18 := #IN >= 32767;      
    #A19 := #IN <= -32768;    
    #A22 := #A18 OR #A19;
END_REGION

REGION
    #A17 := LIMIT(MN := 0, IN := #IN, MX := 27648);
    IF #A22 THEN
        #A17 := 0;
    END_IF;
END_REGION

REGION  
    IF #SQUA THEN
        #A17 := REAL_TO_INT((SQRT(INT_TO_REAL(#A17) / 27648.0)) * 27648.0);
    ELSE
        #A17 := #A17;
    END_IF;
END_REGION

REGION  
    IF NOT #SsrTy THEN
        #A15 := (INT_TO_REAL(#A17)) / 27648.0 * (#HiScl - #LoScl) + #LoScl;
    ELSE
        #A15 := (INT_TO_REAL(#A17)) / 10.0;
    END_IF;
    
    //revise
    #A16 := #A15 * #RvsMul + #RvsAdd;
    
    IF #A16 < #MinVal THEN
        #A11 := 0.0;
    ELSE
        #A11 := #A16;
    END_IF;
END_REGION

REGION  
    IF #HwSCW.HwSCW.%X0 THEN
        #A11 := #HwSCW.SimVal;
    ELSE
        #HwSCW.SimVal := #A11;
    END_IF;
    
    #Q := #A11;
    #HwSCW.Q := #A11;
    #HwSCW.Fill := (#A11 / #HiScl - #LoScl) * 100.0;
END_REGION

REGION
    REGION
        #A14 := 0;
        #A13[0] := 0.0;
        #A13[1] := 0.0;
        #A13[2] := 0.0;
        #A13[3] := 0.0;
        #A13[4] := 0.0;
        #A13[5] := 0.0;
        
        IF #AlmTy.%X5 THEN
            #A13[#A14] := #HwSCW.Setting.AHH;
            #A14 := #A14 + 1;
        END_IF;
        
        IF #AlmTy.%X4 THEN
            #A13[#A14] := #HwSCW.Setting.AH;
            #A14 := #A14 + 1;
        END_IF;
        
        IF #AlmTy.%X3 THEN
            #A13[#A14] := #HwSCW.Setting.SH;
            #A14 := #A14 + 1;
        END_IF;
        
        IF #AlmTy.%X2 THEN
            #A13[#A14] := #HwSCW.Setting.SL;
            #A14 := #A14 + 1;
        END_IF;
        
        IF #AlmTy.%X1 THEN
            #A13[#A14] := #HwSCW.Setting.AL;
            #A14 := #A14 + 1;
        END_IF;
        
        IF #AlmTy.%X0 THEN
            #A13[#A14] := #HwSCW.Setting.ALL;
            #A14 := #A14 + 1;
        END_IF;
        
        IF ABS(#A13[0]) >= ABS(#A13[1]) AND ABS(#A13[1]) >= ABS(#A13[2]) AND ABS(#A13[2]) >= ABS(#A13[3]) AND
            ABS(#A13[3]) >= ABS(#A13[4]) AND ABS(#A13[4]) >= ABS(#A13[5]) THEN
            #A23 := 0;
        ELSE
            #A23 := 1;
        END_IF;
    END_REGION
    
    IF #Polarity THEN           //0:positive/1:negative    
        //H
        #A12.%X1 := ABS(#A11) >= ABS(#HwSCW.Setting.AH) AND #AlmTy.%X4 AND #Feature.HAlmEnable;
        
        //SH
        #A12.%X2 := ABS(#A11) > ABS(#HwSCW.Setting.SH) AND #AlmTy.%X3 AND (NOT #A12.%X0) AND #Feature.HAlmEnable;
        
        //SL
        #A12.%X3 := ABS(#A11) < ABS(#HwSCW.Setting.SL) AND #AlmTy.%X2 AND (NOT #A12.%X5) AND #Feature.LAlmEnable;
        
        //L
        #A12.%X4 := ABS(#A11) <= ABS(#HwSCW.Setting.AL) AND #AlmTy.%X1 AND #Feature.LAlmEnable;
        
        //HH
        #A20 := ABS(#A11) >= ABS(#HwSCW.Setting.AHH) AND #AlmTy.%X5 AND #Feature.HAlmEnable;
        
        //LL
        #A21 := ABS(#A11) <= ABS(#HwSCW.Setting.ALL) AND #AlmTy.%X0 AND #Feature.LAlmEnable;
    ELSE
        //H
        #A12.%X1 := #A11 >= #HwSCW.Setting.AH AND #AlmTy.%X4 AND #Feature.HAlmEnable;
        
        //SH
        #A12.%X2 := #A11 > #HwSCW.Setting.SH AND #AlmTy.%X3 AND (NOT #A12.%X0) AND #Feature.HAlmEnable;
        
        //SL
        #A12.%X3 := #A11 < #HwSCW.Setting.SL AND #AlmTy.%X2 AND (NOT #A12.%X5) AND #Feature.LAlmEnable;
        
        //L
        #A12.%X4 := #A11 <= #HwSCW.Setting.AL AND #AlmTy.%X1 AND #Feature.LAlmEnable;
        
        //HH
        #A20 := #A11 >= #HwSCW.Setting.AHH AND #AlmTy.%X5 AND #Feature.HAlmEnable;
        
        //LL
        #A21 := #A11 <= #HwSCW.Setting.ALL AND #AlmTy.%X0 AND #Feature.LAlmEnable;
    END_IF;
    
    //HH
    #A01(IN := #A20,
            PT := #DlyTime.HH
    );
    
    IF #A01.Q THEN
        #A12.%X0 := 1;
    END_IF;
    
    //LL
    #A02(IN := #A21,
            PT := #DlyTime.LL
    );
    
    IF #A02.Q THEN
        #A12.%X5 := 1;
    END_IF;
    
    //Fault
    #A03(IN := #A22,
             PT := #DlyTime.Flt
    );
    
    IF #A03.Q THEN
        #A12.%X6 := 1;
    END_IF;
END_REGION

REGION
    IF (#A12.%X0 OR #A12.%X5 OR #A12.%X6) AND (#Ack OR #HwSCW.HwSCW.%X31) THEN
        #A10 := 1;
    END_IF;
    
    IF #A10 THEN
        IF NOT #A01.Q THEN
            #A12.%X0 := 0;
        END_IF;
        IF NOT #A02.Q THEN
            #A12.%X5 := 0;
        END_IF;
        IF NOT #A03.Q THEN
            #A12.%X6 := 0;
        END_IF;
    END_IF;
    IF #A12.%X0 = 0 AND #A12.%X5 = 0 AND #A12.%X6 = 0 THEN
        #A10 := 0;
    END_IF;
    
END_REGION

REGION  
    #QOK := (NOT #A12.%X0) AND (NOT #A12.%X1) AND (NOT #A12.%X4) AND (NOT #A12.%X5) AND (NOT #A12.%X6) AND (NOT #A23);
    
END_REGION

REGION
    #QAHH := #A12.%X0;
    #QAH := #A12.%X1;
    #QSH := #A12.%X2;
    #QSL := #A12.%X3;
    #QAL := #A12.%X4;
    #QALL := #A12.%X5;
    #QFlt := #A12.%X6;
    #QHiScl := #HiScl;
    #QLoScl := #LoScl;
    #HwSCW.QHiScl := #QHiScl;
    #HwSCW.QLoScl := #QLoScl;
END_REGION

REGION
    #A04(SIG := #QFlt AND NOT #HwSCW.HwSCW.%X15);
    #A05(SIG := #QAHH AND NOT #HwSCW.HwSCW.%X15);
    #A06(SIG := #QALL AND NOT #HwSCW.HwSCW.%X15);
    #A07(SIG := #QAH AND NOT #HwSCW.HwSCW.%X15);
    #A08(SIG := #QAL AND NOT #HwSCW.HwSCW.%X15);
    #A09(SIG := #A23 AND NOT #HwSCW.HwSCW.%X15);
END_REGION

REGION
    #HwSCW.HwSCW.%X1 := #HwSCW.HwSCW.%X7 AND #AlmTy.%X5;
    #HwSCW.HwSCW.%X2 := #HwSCW.HwSCW.%X7 AND #AlmTy.%X4;
    #HwSCW.HwSCW.%X3 := #HwSCW.HwSCW.%X7 AND #AlmTy.%X3;
    #HwSCW.HwSCW.%X4 := #HwSCW.HwSCW.%X7 AND #AlmTy.%X2;
    #HwSCW.HwSCW.%X5 := #HwSCW.HwSCW.%X7 AND #AlmTy.%X1;
    #HwSCW.HwSCW.%X6 := #HwSCW.HwSCW.%X7 AND #AlmTy.%X0;
    #HwSCW.HwSCW.%X16 := #A12.%X0;
    #HwSCW.HwSCW.%X17 := #A12.%X1;
    #HwSCW.HwSCW.%X18 := #A12.%X2;
    #HwSCW.HwSCW.%X19 := #A12.%X3;
    #HwSCW.HwSCW.%X20 := #A12.%X4;
    #HwSCW.HwSCW.%X21 := #A12.%X5;
    #HwSCW.HwSCW.%X22 := #A12.%X0 AND NOT #A10;
    #HwSCW.HwSCW.%X23 := #A12.%X5 AND NOT #A10;
    #HwSCW.HwSCW.%X24 := #A12.%X6;
    #HwSCW.HwSCW.%X25 := #A12.%X6 AND NOT #A10;
    #HwSCW.HwSCW.%X26 := #QOK;
    #HwSCW.HwSCW.%X8 := #AlmTy.%X5;    //AHH
    #HwSCW.HwSCW.%X9 := #AlmTy.%X4;    //AH
    #HwSCW.HwSCW.%X10 := #AlmTy.%X3;   //SH
    #HwSCW.HwSCW.%X11 := #AlmTy.%X2;   //SL
    #HwSCW.HwSCW.%X12 := #AlmTy.%X1;   //AL
    #HwSCW.HwSCW.%X13 := #AlmTy.%X0;   //ALL
    #HwSCW.HwSCW.%X28 := #A18;         //overflow    
    #HwSCW.HwSCW.%X29 := #A19;         //break line
    #HwSCW.HwSCW.%X30 := #A23;
    #HwSCW.HwSCW.%X31 := FALSE;        //Ack command from hmi
END_REGION
13581965432
級別: 略有小成
精華主題: 0
發帖數量: 58 個
工控威望: 352 點
下載積分: 242 分
在線時間: 15(小時)
注冊時間: 2022-08-10
最后登錄: 2024-07-15
查看13581965432的 主題 / 回貼
1樓  發表于: 2022-08-15 10:56
好像是#A15   ,一般溫控器的數據好像都得除10哈,你試試

主站蜘蛛池模板: 果冻传媒在线视频观看免费| 91一区二区在线观看精品| 男人女人叉叉叉| 香蕉成人999视频| 亚洲精品乱码久久久久久蜜桃欧美| 美国雪白人妖sarina| 免费特黄一级欧美大片| 欧美se图| 日本无遮挡拍拍拍凤凰| 人人澡人| 无码乱人伦一区二区亚洲一| 美女在尿口隐私视频| 男人插曲女人下面| 三年片韩国在线| 清纯唯美 亚洲| 369看片网| 俄罗斯bbbbbbbbb大片| 久久91精品国产91| 国产小视频网站| 国产精品午夜剧场| 干妞网免费视频| 青涩体验在线观看未删减| 亚洲AV蜜桃永久无码精品无码网| 毛片网站大全| 亚洲第一色网| 麻生希在线观看| 99香蕉网| 国产精品免费精品自在线观看| 91视频a| 国产精品久久国产三级国电话系列| 免费午夜剧场| 四虎最新紧急更新地址| 日本sss在线高清观看| 日本高清中文字幕一区二区三区| sao虎影院桃红视频在线观看| 99re这里只有精品视频在线观看| 91大神第九部红酒气质女| narutomanga玖辛奈之乳| 日比免费视频| 欧美精选视频| bl双性肉文|