Micro Logix 1400 PLC的Pycomm3 write_tag(tag,value)问题

时间:2019-03-11 09:09:37

标签: python-3.x

代码

from pycomm.ab_comm.slc import Driver as MLDriver 



ML = MLDriver()
while 1:
    try:
        if ML.open('192.168.2.150'):
            #print (ML.read_tag('F8:0',10))
            print (ML.write_tag('N7:0',10))
            ML.close()

    except Exception as e:
        print (e)
        #continue 

错误

  

错误(只能将str(不是“ bytes”)连接到str),打包值以写入SLC write_tag(N7:0,10)

Read标签可以正常工作,但是write模块在pycomm3中不起作用

包装链接:-

点安装git + https://github.com/bpaterni/pycomm.git@pycomm3

1 个答案:

答案 0 :(得分:0)

这是应该最近修复的错误