asd3500
級別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 16 個
工控威望: 138 點
下載積分: 14060 分
在線時間: 38(小時)
注冊時間: 2014-03-12
最后登錄: 2020-04-16
查看asd3500的 主題 / 回貼
樓主  發(fā)表于: 2015-03-01 19:04
PLC1     m8002       mov h1c82 d8400                              PLC2                    m8002       mov h1c82 d8400  
                                                                                
                x0        rs2 d0 k2 d10 k2 k1                                                      x0        rs2 d10 k2 d30 k2 k1
                                                                                        
                上微分x1        mov k34 d0                                                    上微分x1        mov k34 d010                                
                                             mov k35 d1                                                                                 mov k35 d11
                                            set m8402                                                                                    set m8402          
                                                                              
                  m8403             mov d10 d20                                                        m8403             mov d30 d40  
                                           mov d11 d21                                                                                   mov d31 d41  
                                           rst m8403                                                                                          rst m8403                                          

                                 end                                                                                                  end                                              

    
  以上是我用2臺PLC測試寫的程式
用RS的話都很OK
用RS2時永遠(yuǎn)只讀的到一個數(shù)據(jù)
像PLC1只有D10有值D11沒有
    PLC2只有D30有值D31沒有
請問該如何解決