• <cite id="uwv89"></cite>
      1. 亚洲综合小综合中文字幕,国产久爱免费精品视频,精品国产品香蕉在线,国产午夜精品在人线播放,精品一二三四区在线观看,国产成人无码免费看视频软件 ,色欲久久人妻内射,午夜在线观看成人av
        柳絮飛花
        無產工程師
        級別: 論壇先鋒
        精華主題: 0
        發帖數量: 499 個
        工控威望: 1212 點
        下載積分: 7865 分
        在線時間: 102(小時)
        注冊時間: 2017-06-27
        最后登錄: 2024-12-17
        查看柳絮飛花的 主題 / 回貼
        樓主  發表于: 2020-08-17 14:00
        (*****************************************************************************
        <FB NAME>       MC_Power_JEC                                                                        
        <Description>   運転可 / 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);
                
                (* リンクデバイスのオフセット計算 / Link device offset calculation *)
                IF (ErrorID = 0) THEN
                    wRX3F  := ((wAxisNo - 1) * 64) + H003F;    (* サイクリック通信準備完了 / 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;
            
            (*------------------------------------------------------------------*
            * 軸狀態取得 & 実行條件確認
            * Axis status acquisition & execution condition check
            *------------------------------------------------------------------*)    
            IF bBusy THEN
                (* サイクリック通信狀態確認 / 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);
                    (* 軸狀態取得 / 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;
                      
                    (* 実行條件確認 / 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;
        工控普通人,學習在路上
        yyande
        級別: 探索解密
        精華主題: 0
        發帖數量: 63 個
        工控威望: 135 點
        下載積分: 2693 分
        在線時間: 27(小時)
        注冊時間: 2020-05-23
        最后登錄: 2025-08-11
        查看yyande的 主題 / 回貼
        1樓  發表于: 2020-08-17 20:39
        寫的牛!沒有控制的硬件驅動器手冊,就不知道他為什么這么干   

        主站蜘蛛池模板: 日韩中文日韩中文字幕亚| 久久精品国产88精品久久| 国产精品一区二区三区麻豆| 亚洲色婷婷综合开心网| 久久99热只有频精品6狠狠| 欧美videos粗暴| 欧美激情一区二区三区成人| 亚洲精品一区二区三区色| 日韩亚洲视频一区二区三区| 欧美在线观看www| 九九热免费公开视频在线| 桃花岛亚洲成在人线AV| 色婷婷欧美在线播放内射| 国产精品一码在线播放| 午夜AAAAA级岛国福利在线| 九九热中文字幕在线视频| 亚洲图片自拍偷图区| 99re6这里有精品热视频| 亚洲国产亚洲国产路线久久| 欧美xxxx做受欧美.88| 久久波多野结衣av| 国产精品中文av专线| 欧美日韩v| 国产一区二区不卡视频在线| 人妻少妇精品中文字幕| 久热这里有精品免费视频| 亚洲夂夂婷婷色拍ww47| 国产精品爽爽久久久久久竹菊| 亚洲成av人片无码天堂下载| 国产无套无码AⅤ在线观看| 色呦呦九九七七国产精品| 久久久久免费看成人影片| 亚洲熟少妇一区二区三区| 欧洲中文字幕一区二区| 亚洲av无码国产在丝袜线观看| 四虎国产精品免费久久| 国产精品av中文字幕| 午夜一区二区三区视频| 华人在线亚洲欧美精品| 日韩精品亚洲精品第一页| 一区二区三区四区亚洲自拍 |