麻豆一区区三三四区产品麻豆-麻豆影视国产TV在线观看-麻豆影视国产在线观看-麻豆影视在线-麻豆影视在线观看av-麻豆影院

tangbingchen
級別: 探索解密
精華主題: 0
發帖數量: 94 個
工控威望: 165 點
下載積分: 2598 分
在線時間: 27(小時)
注冊時間: 2018-07-10
最后登錄: 2024-11-23
查看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哈,你試試
beni
級別: 工控俠客
精華主題: 0
發帖數量: 116 個
工控威望: 2125 點
下載積分: 50242 分
在線時間: 2645(小時)
注冊時間: 2010-07-13
最后登錄: 2024-12-16
查看beni的 主題 / 回貼
2樓  發表于: 2022-08-18 00:38
A12.%X0,A12.%X1,A12.%X4,A12.%X5,A12.%X6,A23

主站蜘蛛池模板: 奇米一区二区三区四区久久| 亚洲大成色www| 99精品久久久久久久免费看蜜月| 欧美日韩国产综合草草蜜臀| 国产aⅴ无码片毛片一级| 丝瓜污视频| 日本MV高清在线成人高清| 国产v天堂在线观看免费| 日韩 图片小说| 欧美日韓性视頻在線| 成人精品激情无码| 国产精品日本一区二区在线播放| 欧美激情视频一区二区免费 | 久久超碰热热哦| 老师洗澡让我吃她胸视频| 国产99在线欧| AV天堂影音先锋AV色资源网站 | 老妇FREE性VIDEOSXX| 性色a∨人人爽网站hd| 亚洲一区二区三区国产四区| 国内熟女精品熟女A片小说| 久久看片网| 午夜人妻熟女一区二区| 丰满人妻熟妇乱精品视频| 国产人妻无码精品| 老熟女一区二区免费视频| 亚洲欧洲一区二区三区| 色欲国产麻豆精品AV免费| 国产av无码专区影视| 精品久久密臀| 国产亚洲精品久久yy50| 精品无码一区在线观看| 日本一区二区一本一道| 大陆一级毛片免费| 国产激情艳情在线看视频| 久久亚洲中文字幕精品一区| 18禁黄网站禁片免费观看| 亚洲中文字幕久久精品蜜桃| 国产高清视频一区二区在线观看 | 高辣H文短篇啪啪小说男男| 精品久久久无码21p发布|