asd3500
级别: 探索解密
精华主题: 0
发帖数量: 16 个
工控威望: 138 点
下载积分: 14060 分
在线时间: 38(小时)
注册时间: 2014-03-12
最后登录: 2020-04-16
查看asd3500的 主题 / 回贴
楼主  发表于: 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時永遠只讀的到一個數據
像PLC1只有D10有值D11沒有
    PLC2只有D30有值D31沒有
請問該如何解決