• <cite id="uwv89"></cite>
      1. 亚洲综合小综合中文字幕,国产久爱免费精品视频,精品国产品香蕉在线,国产午夜精品在人线播放,精品一二三四区在线观看,国产成人无码免费看视频软件 ,色欲久久人妻内射,午夜在线观看成人av
        柳絮飛花
        無(wú)產(chǎn)工程師
        級(jí)別: 論壇先鋒
        精華主題: 0
        發(fā)帖數(shù)量: 499 個(gè)
        工控威望: 1212 點(diǎn)
        下載積分: 7865 分
        在線時(shí)間: 102(小時(shí))
        注冊(cè)時(shí)間: 2017-06-27
        最后登錄: 2024-12-17
        查看柳絮飛花的 主題 / 回貼
        樓主  發(fā)表于: 2020-08-17 14:00
        (*****************************************************************************
        <FB NAME>       MC_Power_JEC                                                                        
        <Description>   運(yùn)転可 / Operation possible                                                                                        
                                                                                                                                  
        COPYRIGHT (C) 2016 MITSUBISHI ELECTRIC CORPORATION ALL RIGHT RESERVED  
        *****************************************************************************)

        PLS(Enable, bEnablePls);
        PLF(Enable, bEnablePlf);
        (*========================================================================*
        * 有効ON
        * Enable ON
        *========================================================================*)
        IF Enable THEN
            (*------------------------------------------------------------------*
            * 初期化処理
            * Initial processing
            *------------------------------------------------------------------*)
            IF bEnablePls THEN
                Status := FALSE;
                Error := FALSE;
                ErrorID := 0;
                
                bBusy := FALSE;
                bLinkReady := FALSE;
                wAxisStatus := 0;
                
                (* 入力ラベル取込 / Input labels transfer *)
                wAxisNo := Axis.AxisNo;
                MOV(((wAxisNo < 1) OR (16 < wAxisNo)), H1100, ErrorID);
                wPosTrqLimit := REAL_TO_INT(Axis.PosTrqLimit *10.0);
                MOV((ErrorID = 0) AND ((wPosTrqLimit < 0) OR (10000 < wPosTrqLimit)), H110E, ErrorID);
                wNegTrqLimit := REAL_TO_INT(Axis.NegTrqLimit *10.0);            
                MOV((ErrorID = 0) AND ((wNegTrqLimit < 0) OR (10000 < wNegTrqLimit)), H110E, ErrorID);
                
                (* リンクデバイスのオフセット計(jì)算 / Link device offset calculation *)
                IF (ErrorID = 0) THEN
                    wRX3F  := ((wAxisNo - 1) * 64) + H003F;    (* サイクリック通信準(zhǔn)備完了 / Cyclic communication ready command *)
                    wRWw01 := ((wAxisNo - 1) * 32) + H0001;    (* 制御指令 / Control command *)
                    wRWw14 := ((wAxisNo - 1) * 32) + H0014;    (* トルク制限値(正) / Torque limit value(positive) *)
                    wRWw15 := ((wAxisNo - 1) * 32) + H0015;    (* トルク制限値(逆) / Torque limit value(negative) *)
                    wRWr00 := ((wAxisNo - 1) * 32) + H0000;    (* 制御モード表示 / Control mode display *)
                    wRWr02 := ((wAxisNo - 1) * 32) + H0002;    (* 制御ステータス / Control status *)
                    wRWr0B := ((wAxisNo - 1) * 32) + H000B;    (* 制御出力2 / Control output 2 *)
                    bBusy := TRUE;
                END_IF;
            END_IF;
            
            (*------------------------------------------------------------------*
            * 軸狀態(tài)取得 & 実行條件確認(rèn)
            * Axis status acquisition & execution condition check
            *------------------------------------------------------------------*)    
            IF bBusy THEN
                (* サイクリック通信狀態(tài)確認(rèn) / Cyclic communication status check *)
                bLinkReady := G_stLinkBasic.bnRX[wRX3F];
                IF bLinkReady THEN
                    uModeDisp := G_stLinkBasic.unRWr[wRWr00];
                    bZeroVelocity:= ((G_stLinkBasic.unRWr[wRWr0B] AND H0008) = H0008);
                    (* 軸狀態(tài)取得 / Axis status acquisition *)
                    IF ((G_stLinkBasic.unRWr[wRWr02] AND H0008) = H0008) THEN
                        wAxisStatus := 1;        (* Errorstop *)
                        ErrorID := H1202;    
                        ELSIF ((G_stLinkBasic.unRWw[wRWw01] AND H0086) = H0002) THEN
                        wAxisStatus := 2;        (* Stopping *)
                        ELSIF (((G_stLinkBasic.unRWr[wRWr02] AND H000F) = H0000) OR
                        ((G_stLinkBasic.unRWr[wRWr02] AND H000F) = H0001) OR
                        ((G_stLinkBasic.unRWr[wRWr02] AND H000F) = H0003)) THEN
                        wAxisStatus := 0;        (* Disabled *)
                        ELSE
                        wAxisStatus := 4;        (* Standstill *)
                        IF ((G_stLinkBasic.unRWw[wRWw01] AND H0100)= H0100) THEN
                            CASE WORD_TO_INT(uModeDisp) OF
                                1,    (* Profile position mode *)
                                6:    (* Homing mode *)
                                IF ((G_stLinkBasic.unRWr[wRWr02] AND H0400) = H0000) THEN
                                    wAxisStatus := 5;    (* DiscreteMotion *)        
                                END_IF;
                                3,    (* Profile Velocity mode *)
                                4:    (* Profile Torque mode *)
                                IF NOT bZeroVelocity THEN
                                    wAxisStatus := 5;    (* DiscreteMotion *)        
                                END_IF;
                                ELSE
                                ;
                            END_CASE;                                
                            ELSE
                            CASE (WORD_TO_INT(uModeDisp)) OF
                                1:
                                IF ((G_stLinkBasic.unRWr[wRWr02] AND H0400) = H0000) THEN
                                    wAxisStatus := 5;    (* DiscreteMotion *)
                                END_IF;
                                3,
                                4:
                                wAxisStatus := 6;    (* ContinuousMotion *)
                                6:
                                IF ((G_stLinkBasic.unRWr[wRWr02] AND H0400) = H0000) THEN
                                    wAxisStatus := 3;    (* Homing *)
                                END_IF;
                                ELSE
                                ;
                            END_CASE;
                        END_IF;        
                    END_IF;
                      
                    (* 実行條件確認(rèn) / execution condition check *)
                    IF bEnablePls THEN
                        CASE wAxisStatus OF
                            2:    (* Stopping *)
                            ErrorID := H1204;
                            ELSE
                            ;    
                        END_CASE;
                    END_IF;

                    (*------------------------------------------------------------------*
                    * サーボON実行
                    * Servo ON execution
                    *------------------------------------------------------------------*)    
                    IF (ErrorID =0) AND bEnablePls AND (wAxisStatus = 0) THEN
                        G_stLinkBasic.unRWw[wRWw14] := INT_TO_WORD(wPosTrqLimit);    (* トルク制限値(正) / Torque limit value(positive) *)
                        G_stLinkBasic.unRWw[wRWw15] := INT_TO_WORD(wNegTrqLimit);    (* トルク制限値(逆) / Torque limit value(negative) *)
                        G_stLinkBasic.unRWw[wRWw01] := (G_stLinkBasic.unRWw[wRWw01] AND HFF70) OR H000F;
                    END_IF;        
                    IF ((G_stLinkBasic.unRWr[wRWr02] AND H006F) = H0027) THEN    (* OperationEnabled *)
                        Status := TRUE;
                        Error := FALSE;
                        ErrorID := 0;
                        ELSE
                        Status := FALSE;        
                    END_IF;
                    ELSE
                    wAxisStatus := 1;
                    ErrorID := H1202;
                END_IF;
            END_IF;
            (*========================================================================*
            * エラー出力
            * Output for [Error]
            *========================================================================*)
            IF (ErrorID <> 0) THEN
                Error := TRUE;
                Status := FALSE;
                bBusy := FALSE;
            END_IF;


            (*========================================================================*
            * 有効OFF
            * Enable OFF
            *========================================================================*)    
            ELSE
            IF bEnablePlf THEN
                G_stLinkBasic.unRWw[wRWw01] := (G_stLinkBasic.unRWw[wRWw01] AND HFF70);    (* DisableOperation *)
            END_IF;
            Status := FALSE;
            Error := FALSE;
        END_IF;
        工控普通人,學(xué)習(xí)在路上
        和諧共贏
        努力學(xué)習(xí),做好工控
        級(jí)別: 網(wǎng)絡(luò)英雄

        精華主題: 0
        發(fā)帖數(shù)量: 2000 個(gè)
        工控威望: 7825 點(diǎn)
        下載積分: 71540 分
        在線時(shí)間: 761(小時(shí))
        注冊(cè)時(shí)間: 2008-01-07
        最后登錄: 2025-08-29
        查看和諧共贏的 主題 / 回貼
        1樓  發(fā)表于: 2020-08-17 19:09
        看不懂,太深?yuàn)W
        yyande
        級(jí)別: 探索解密
        精華主題: 0
        發(fā)帖數(shù)量: 63 個(gè)
        工控威望: 135 點(diǎn)
        下載積分: 2693 分
        在線時(shí)間: 27(小時(shí))
        注冊(cè)時(shí)間: 2020-05-23
        最后登錄: 2025-08-11
        查看yyande的 主題 / 回貼
        2樓  發(fā)表于: 2020-08-17 20:39
        寫的牛!沒(méi)有控制的硬件驅(qū)動(dòng)器手冊(cè),就不知道他為什么這么干   
        焦劉吉
        緊跟時(shí)代發(fā)展,努力做好時(shí)代青年
        級(jí)別: 工控俠客
        精華主題: 0
        發(fā)帖數(shù)量: 1461 個(gè)
        工控威望: 4684 點(diǎn)
        下載積分: 15109 分
        在線時(shí)間: 432(小時(shí))
        注冊(cè)時(shí)間: 2015-05-19
        最后登錄: 2025-07-12
        查看焦劉吉的 主題 / 回貼
        3樓  發(fā)表于: 2020-08-20 21:00
        來(lái)個(gè)Case語(yǔ)句,不如來(lái)個(gè)枚舉,又能當(dāng)注釋,還能隨意添加
        Rules are always made by the strong, and history is always written by the winners.

        主站蜘蛛池模板: 强奷白丝美女在线观看| 国产精品一在线观看| 欧洲精品色在线观看| 精品国产免费一区二区三区香蕉| 亚洲熟伦熟女新五十熟妇| 久久亚洲国产精品五月天| 四虎国产精品永久地址99| 美女一区二区三区在线观看视频| 亚洲粉嫩av一区二区黑人| 国产精品麻豆成人AV电影艾秋| 亚欧美日韩香蕉在线播放视频| 日韩中文字幕人妻一区| jizzjizz少妇亚洲水多| 久爱www人成免费网站| 亚洲精品美女一区二区| 九九热免费精品视频在线| 久久精品国产熟女亚洲av| 国产黄色三级三级看三级| 国产精品无码专区| 国产男女猛烈无遮挡免费视频| 无码中文字幕人妻在线一区| 亚洲一区二区日韩综合久久| 亚洲中文字幕无码专区| 国产香蕉一区二区三区在线视频| 巨胸美乳无码人妻视频漫画| 日韩激情一区二区三区| 国产精品中文字幕日韩| 在线日韩日本国产亚洲| 亚洲另类激情专区小说图片| 蜜桃视频在线免费观看一区二区| 18国产午夜福利一二区| 亚洲国产区男人本色vr| 亚洲av无码一区二区三区网站| 久久久久久久久18禁秘| 亚洲中文字幕无码一久久区| 狠狠色狠狠色综合日日不卡| 实拍女处破www免费看| 免费又爽又大又高潮视频| 中文字幕亚洲一区二区三区| 国产日产欧产精品精品| 隔壁老王国产在线精品|