玖玖玖视频-亚洲精品1卡2卡3卡-操欧美美女-真实国产乱子伦对白视频不卡-国产乱在线-大胸美女被吃奶爽死视频-久久亚洲美女精品国产精品-天堂在线www天堂在线-久久在精品线影院精品国产-国产又粗又长又大-欧美三级一区二区-超碰在线亚洲-天天cao在线-国产偷倩视频-亚洲啪

duhuaiguo
級別: *
精華主題: * 篇
發(fā)帖數(shù)量: * 個
工控威望: * 點
下載積分: * 分
在線時間: (小時)
注冊時間: *
最后登錄: *
查看duhuaiguo的 主題 / 回貼
樓主  發(fā)表于: 2009-09-01 18:48
This is the main handler of the MMI profile container

Parameters : fb_in_offset   First byte in the input container
             fb_out_offset  First byte in the output container
             db_address     Number of the database to use
             con_len        Length of container in bytes (min.32)  

Example : The terminal is configured to be on input and output byte 64,
          32 bytes allocated  and database to communcate with is 51:
          fb_in_offset  = 64
          fb_out_offset = 64
          db_address    = 51
          con_len       = 32

The function block handles one complete container in one scan. If read index,
FC111 is called.
If write index, FC112 is called.
Note that the control byte is not set until next scan, to avoid timing problems



      L     #fb_in_offset               // Incontainer start address
      T     MW   496                    // Remember incontainer start
      T     MW   500

      L     #fb_in_offset               // Incontainer start address
      SLD   3                           //
      LAR1  
      L     IB [AR1,P#0.0]              // Get the proper control byte from inp.container
      T     MB   486                    // Store it

      L     #fb_out_offset              // Outcontainer start address
      T     MW   498                    // Store it
      T     MW   502

      L     #m_110                      // Previous input control byte
      T     MB   479                    // Store it

      L     0
      T     MB   474                    // Clear error code

      A     M    479.0
      R     M    479.0                  // Clear error flag

      A     M    486.6                  // Terminal present ?
      JC    WEI1                        //
      L     1                           // Error 1 : Comm error
      JU    FEH                         //

WEI1: A     M    486.5                  // Does the terminal toggle the toggle bit ?
      AN    M    486.5
      L     S5T#2S                      // Timeout timer
      SD    "Terminal timeout"
      AN    "Terminal timeout"
      JC    WEI2
      L     2                           // Error 2 : Terminal not in RUN
      JU    FEH

WEI2: A     M    486.7                  // Test if new container
      A     M    479.7                  // Compare old container byte with the new one
      O    
      AN    M    486.7
      AN    M    479.7
      JC    ENDE                        // No new container

      A     M    486.7                  // Pulse
      =     M    479.7

      L     MW   498                    // Outcontainer pointer
      L     4
      +I    
      T     MW   498                    // First data position : 4

      L     MW   496                    // Incontainer pointer
      L     4
      +I    
      T     MW   496                    // First index position : 4
//    
LOOP: NOP   0
      L     MW   496                    // Incontainer pointer
      ITD  
      SLD   3
      T     MD   504                    // Make it double word
      L     IB [MD 504]                 // Get first index byte
      T     MB   486                    // Store it
      L     MB   486
      L     0
      ==I  
      JC    DONE                        // Jump out if index is 0

      A     M    486.7                  // Is it a read index ?
      JC    ANK1
      CALL  "READ INDEX OP PANEL"       // Then call read index function
       DataBase:=#db_address
ANK1: NOP   0
      L     MB   478                    // Check return value from FC111
      L     0
      ==I  
      JC    WEI3                        // Was there an error return ?
      AN    M    479.0
      S     M    479.0                  // Then, set error bit
      L     MB   478
      JU    FEH                         // Jump to error
WEI3: AN    M    486.7                  // Is it a write index ?
      JC    WEI4
      CALL  "WRITE INDEX OP PANEL"      // Then call write index function
       DataBase:=#db_address
      L     MB   478                    // Check return value from FC112
      L     0
      ==I  
      JC    WEI4                        // Was there an error return ?
      AN    M    479.0
      S     M    479.0                  // Then set error bit
      L     MB   478                    //
      JU    FEH                         // Jump to error
WEI4: L     MW   496                    // Check if incontainer is done
      L     MW   500
      -I    
      L     #con_len
      <I    
      A(    
      L     MW   498                    // .. or that outcontainer is done
      L     MW   502
      -I    
      L     #con_len
      <I    
      )    
      JC    LOOP                        // Continue id conatiner not completed
DONE: L     #fb_in_offset               // Container done !
      SLD   3
      LAR1  
      L     IB [AR1,P#0.0]              // Get input control byte

      T     MB   486                    // Store it
      JU    ENDE
//-------  ERROR HANDLING  ---------
FEH:  T     MB   474                    // Store error code
FEH1: L     MW   498
      ITD  
      SLD   3
      T     MD   504

      L     0                           // Write controlbyte to output container
      T     QB [MD 504]

      L     1
      L     MW   498

      +I    
      T     MW   498

      L     MW   502
      -I                                // INTERNES MERKERBYTE SICHERN

      L     32
      <I    

      JC    FEH1
ENDE: NOP   0
      NOP   0
      AN    M    486.6
      S     M    486.6                  // Set the COM-bit
      AN    M    486.5
      =     M    486.5                  // Toggle the Toggel-bit
      A     M    479.0
      =     M    486.4
//----------------------
      L     MB   486                    // Delay answer one scan to avoid timing problems
      T     #out_this_cycle
      L     #fb_out_offset
      SLD   3
      LAR1  
      L     #out_last_cycle
      T     QB [AR1,P#0.0]
      L     #out_this_cycle
      T     #out_last_cycle
      L     MB   479
      T     #m_110
      NOP   0

主站蜘蛛池模板: www.国产 | 国产精品爽爽久久久久久无码 | 午夜淫片 | 真人做作爱视频 | 黑人粗硬进入过程视频 | 亚洲欧洲日产国产 最新 | 美女性高潮视频 | 在线看中文字幕 | 免费在线观看av的网站 | 老太婆性杂交视频 | 精品国产999 | 久久精品人妻中文系列 | 久久成人麻豆午夜电影 | 夜色88v精品国产亚洲 | 国产国产精品人在线观看 | 亚洲午夜国产 | 北条麻妃一区二区三区在线观看 | 成人免费午夜视频 | 扒开双腿猛进入喷水高潮视频 | 国产一区二区三区中文字幕 | 亚洲综合久久无码色噜噜 | 91丨porny丨户外露出 | 嫩草av久久伊人妇女超级a | 中文字幕日韩一区二区不卡 | 国产精品6| 色秀视频在线观看 | 99视频精品全部免费 在线 | 日韩av一级 | 日韩综合亚洲色在线影院 | 欧美人与牲动交xxxx | 久草香蕉视频在线观看 | 国产精品无码翘臀在线观看 | 亚洲精品福利在线 | 人人插人人插人人爽 | 国产精品偷伦视频免费还看旳 | 国产免费高清 | 国产综合亚洲区在线观看 | 在线成人激情视频 | 亚洲免费在线 | 色偷偷av老熟女 | 亚洲精品国产熟女久久久 | 久久网站免费 | 国产av一区二区三区无码野战 | 亚洲色欲色欲www在线观看 | 国产手机精品视频 | 成人婷婷网色偷偷亚洲男人的天堂 | 中文字幕av无码一区二区三区 | 97超碰国产精品无码分类 | 美女啪啪网站又黄又免费 | 毛片aaa | 久久在线精品视频 | 欧美3p两根一起进高清免费视频 | 天天摸夜夜爽 | 亚洲综合久久一本伊一区 | 无码大潮喷水在线观看 | 99久久精品美女高潮喷水 | 911av| 在线视频欧美日韩 | 中文日韩欧美 | 亚洲涩综合 | 国产成人一卡2卡3卡4卡 | 97精品久久久大香线焦 | 国产欧美国产综合每日更新 | 久久伊人热 | 日韩精品无码久久久久久 | 亚洲欧美日韩中文无线码 | 俄罗斯美女一级爱片 | 国产精品国三级国产av | 久久亚洲中文字幕不卡一二区 | 婷婷av一区二区三区 | 国产多人群p刺激交换视频 国产精品日 | 91在线观看网站 | 麻婆豆传媒一区二区三 | 亚洲成av人在线观看天堂无码 | 精品国产情侣高潮露脸在线 | 久久精品福利视频 | 国产三级国产精品国产普男人 | 天堂网在线最新版www中文 | 伊人色在线| 美女黄页在线观看 | 一区二区三区乱码在线 | 中文 | 四虎永久在线精品免费网站 | 日本护士xxxxhd少妇 | xxx综合网 | 欧美最大胆的西西人体44 | 人人玩人人添人人澡超碰 | 久久www成人免费直播 | 波多野结衣一区二区三区av免费 | 亚洲伦理久久 | 久久艹影院 | 人人妻人人澡人人爽人人精品 | 中文字幕――色哟哟 | 91瑟瑟| 奇米综合网| 国产福利在线视频蜜芽tv | 中文字幕第15页 | 激情网久久| 高清国产在线拍揄自揄视频 | 国产白丝喷水 |