Industry Online Support
Technical Forum
10/6/2013 12:34 AM | |
Posts: 1 Rating:
|
Hey all, I have some trouble to connect Openhab (Master) with an S7-1200. I wanted to use modbus TCP as communication because it's simple. So I set up Openhab with this configuration. modbus:poll=1000 modbus:tcp.slave1.host=192.168.1.200 modbus:tcp.slave1.port=502 modbus:tcp.slave1.id=1 modbus:tcp.slave1.start=0 modbus:tcp.slave1.length=10 modbus:tcp.slave1.type=coil I did first a test with Modbus slave (on the same pc) software this test was succesfull. As extra test I used KEPserverEX OPC server. Again succesfull. Next step programming my S7-1200 as modbus tcp client. I started from the sample program of Pegaia. When studying the program it looks plain and simple except that I don't understand why there has to be a request? It's a slave and it needs to listen to the master... Well, after programming the plc, openhab gives me the message there is no slave connected. The block is giving as status 7002, busy. I contacted the support line and they told me to remove the clock at the request input. After this the block gives me the message 80C8, no response of the server in the defined period... Someone any idea? Thanks in advanced. AttachmentTest Openhab_V12_SP1.zip (188 Downloads) |
Last edited by: TGroffils at: 10/6/2013 12:39 AM |
|
Follow us on