三a级做爰片免费观看玉蒲团,伊人久久亚洲综合av影院,午夜永久免费爽爽爽影院,西川唯久久久久久久综合

qxf0218
級別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 18 個(gè)
工控威望: 135 點(diǎn)
下載積分: 607 分
在線時(shí)間: 3(小時(shí))
注冊時(shí)間: 2014-03-24
最后登錄: 2016-07-11
查看qxf0218的 主題 / 回貼
樓主  發(fā)表于: 2014-07-01 11:01
西門子S7-300 BCC數(shù)據(jù)效驗(yàn)和             誰有用過的程序?分享一份。謝謝
學(xué)無止境
zjiori
級別: 正式會(huì)員
精華主題: 0
發(fā)帖數(shù)量: 4 個(gè)
工控威望: 94 點(diǎn)
下載積分: 578 分
在線時(shí)間: 3(小時(shí))
注冊時(shí)間: 2014-12-09
最后登錄: 2014-12-31
查看zjiori的 主題 / 回貼
1樓  發(fā)表于: 2014-12-16 16:00
接口: IN: DB_NO  INT  DB number
           LEN    INT  Length of source area
       OUT:RETVAL INT  RETVAL
       TEMP:w_db_no  Word  DB number
            w_bcc_value  Word   actual BCC value
            w_temp_val   Word   temporary value
            d_loop_akt   DWord  actual value of the loop counter
            d_loop       DWord  loop counter

  L     #LEN                        // load length                  
      L     2                           // decrement length by 2
      -I                                // last 2 bytes are reserved for BCC
      SLD   3                           // calculate bit offset
      T     #d_loop                     // save the last bit address

      L     #DB_NO                      // load DB number
      T     #w_db_no
      OPN   DB [#w_db_no]               // and open DBs

      L     0
      T     #d_loop_akt                 // initialize loop counter
      T     #w_bcc_value                // initialize the BCC

// loop for calculating the BCC for (LEN - 2) bytes
// abort if d_loop_akt = d_loop

LOOP: L     DBB [#d_loop_akt]           // load byte from DB
      L     #w_bcc_value                // load actual BCC
      XOW                               // EXOR
      T     #w_bcc_value                // and save

      L     8                           // increment the bit address by 8
      L     #d_loop_akt                 // to address the next byte
      +D    
      T     #d_loop_akt

      L     #d_loop
      <I    
      JC    LOOP

// load the actual BCC
// and compare with the last two bytes of the source DB
// example: #LEN      22
//           0..19     data bytes
//           20,21     BCC-HI, BCC-LO

      L     #w_bcc_value                // load BCC
      AW    W#16#F0                     //separate the most significant nibble
      SLW   4                           // shift the least significant nibble to the highbyte
      OW    W#16#3000                   // OR 30h to Highbyte to receive ASCII character
      T     #w_temp_val                 // and save temporary

      L     #w_bcc_value                // load BCC
      AW    W#16#F                      //separate the least significant nibble
      OW    W#16#30                     // OR 30h to Lowbyte to receive ASCII character
      L     #w_temp_val
      OW    

      L     DBW [#d_loop_akt]           // Load BCC from DB
      ==I                               // and compare
      L     0                           // value of RETVAL, if comparison ok
      JC    ENDE

      L     -1                          // value of RETVAL, if comparison not ok
ENDE: T     #RETVAL

      BE    

亚洲国产一区二区三区啪| 亚洲无码38p| 日日躁夜夜躁狠狠躁天天躁| 成人免费肉动漫无遮网站| 国产三级电影院二区三区| 五月天买门票哪个网站好| 精品婷婷乱码久久久久久| 伪娘屁眼好紧插进去想射| 亚洲精品成人网久久久久久| 小逼被大几把插免费视频| 欧美xxxx极品bbw| 日韩精品一区在线观看91| 无码av喷白浆在线播放| 黑大吊内射少妇浪逼喷水| 亚洲国产日韩欧美综合a| 一区二区三区这里只有精品| 97久久97欧美最大av| 快拔出去不要再插了视频| 以色列女人操b视频在线| 女人高潮抽搐喷水动态图| 久久亚洲av五十路熟妇| 久久综合九色综合欧美狠狠 | 182国产成人| 黄色的网站免费在线播放| 一本色道无码道在线观看| 天天夜摸夜夜添夜夜无码| 日本免费999一区二区| 男人和女人操逼真人动态| 鸡巴插小洞洞性爱免费看| 国产成人无遮挡免费视频| 成年看免费观看视频拍拍| 国产青青手机在线看电影| 91av资源网在线观看| 午夜性无码专区| 天天日天天操天天操天天操| 日本3级片久久| 免费一级欧美大片久久网| 欧美三日本三级少妇99| 妹子插国外破处| 国产精品五月天强力打造| 青青草黄色电影|