91美女视频-亚洲免费观看视频-欧美a∨-久热在线视频-日韩黄网站-成av人片在线观看www-久操综合-超碰av在线播放-性欧美欧美巨大69-婷婷二区-av男人的天堂网-中文字幕一区在线播放-玖草在线观看-国产网址在线观看-免费在线不卡av

duhuaiguo
級(jí)別: *
精華主題: * 篇
發(fā)帖數(shù)量: * 個(gè)
工控威望: * 點(diǎn)
下載積分: * 分
在線時(shí)間: (小時(shí))
注冊(cè)時(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

主站蜘蛛池模板: 国产特级黄色片 | 蜜臀久久99精品久久久久久宅男 | 久久久精品视频免费 | 青青草毛片 | 黄色网址视频在线观看 | av在线成人 | 久久婷婷国产麻豆91天堂 | 欧美精品久久96人妻无码 | 91亚洲一区二区 | 黄色字幕网 | 黑人巨大精品欧美黑寡妇 | 奇米影视在线观看 | 国产伦精品一区二区三区四区免费 | 天堂中文资源在线观看 | 亚洲成人精品在线播放 | 91欧美大片| 日韩第一页在线 | 日本少妇激情 | 黄色一级片av | 国模无码国产精品视频 | 久99热| 日韩精品免费观看 | 欧美精品99| 六月丁香激情综合 | 欧美一二三四五区 | 视频二区在线观看 | 伊人网在线视频观看 | 99re在线观看 | 亚洲网站在线播放 | 佐山爱在线视频 | 91一起草| 久久婷婷一区二区 | 制服丝袜影音先锋 | 久久久综合网 | 成人影视免费 | www成人啪啪18软件 | 成人av黄色 | 黄色aaaaa| 亚洲视频中文字幕 | 日韩熟女一区二区 | 91精品婷婷国产综合久久 | aa黄色片| 欧美一区二区三区婷婷月色 | 色小姐综合网 | 清冷男神被c的合不拢腿男男 | 国产真实的和子乱拍在线观看 | 台湾三级伦理片 | 五月婷婷丁香 | 久久久久国产一区二区三区 | 黑丝啪啪 | 国产精品福利在线观看 | 欧美一级特黄aaaaaa | 一级bbbbbbbbb毛片 | 人人爱人人 | 欧美日日日 | 天天综合在线视频 | 一区二区在线 | 国产成年网站 | 精品久久中文字幕 | 最新中文字幕在线 | 偷偷操网站 | jizz网站| 91在线亚洲 | 日韩精品视频在线观看免费 | 九色蝌蚪视频 | 中国在线观看免费高清视频播放 | 加勒比综合在线 | 亚洲一区二区在线播放 | 久久天天躁狠狠躁夜夜躁2014 | 亚洲高潮av | 亚洲视频一区在线观看 | 干骚视频 | 亚洲20p | 精品一区二区无码 | 裸体按摩www性xxxcom | 久久久久人妻一区精品色欧美 | 精品玖玖玖 | 免费成人av片 | 美女黄色小视频 | 国产农村老头老太视频 | 久久久久网站 | 少女与动物高清版在线观看 | 国产成人精品av在线观 | chinesepron hd videos国产91 | 欧美激情精品久久久久久免费 | 中文在线字幕 | 午夜精品久久久久久久爽 | 男人午夜天堂 | 日韩不卡一区二区 | 午夜影院免费在线观看 | 国产极品视频在线观看 | 伊人亚洲精品 | 西西44rtwww国产精品 | 中文字幕超清在线观看 | 秋霞影院一区二区 | 青青视频免费观看 | 三级免费黄 | 超碰人人干 | 欧美群交射精内射颜射潮喷 |