10/27/2014 2:02 PM | |
Joined: 7/8/2014 Last visit: 2/21/2023 Posts: 12 Rating:
|
Hi Mohagen, I would like to also implement Modbus TCP/IP communication between S7-300 and Diris A40. Could you just confirm me that Siemens S7-300 is configured as Modbus client and Diris A40 is configured as modbus server? Do you know if it is possible to configure if Diris A40 is Modbus client or Modbus server ? Thanks you very much for answer. Have a nice day. Best Regards Lukasz ------------------------ New subject after splitting from error modbus wizard. |
Last edited by: Min_Moderator at: 10/27/2014 3:01 PMSplitted |
|
11/4/2014 7:31 AM | |
Joined: 7/8/2014 Last visit: 2/21/2023 Posts: 12 Rating:
|
Hi, AttachmentModbus_Communication.zip (800 Downloads) |
11/5/2014 7:55 AM | |
Joined: 7/8/2014 Last visit: 2/21/2023 Posts: 12 Rating:
|
Hi Gwawl You have absolutely right, before I used Siemens as Modbus server and I think that this is the reason of the mistake. Thanks you very much for your comment.I defined value for inputs UNIT, DATA_TYPE, START_ADDRESS, LENGTH and WRITE_READ but unfortunately these not solve my problem – communication is still not working.When I trigger input ENQ_ENR function try to communicate but the output BUSY change the value to 1 and its stay like that. Normally I expect t that I should receive time out and ERROR output equal 1. I’m still not sureif the ports number for Client and for server is correct. Actually in Net pro I set both ports to 502. In the manuals if Diris I didn’t found any information about port number.In attachment you can find corrected project. AttachmentModbus_t.zip (633 Downloads) |
11/5/2014 8:03 AM | |
Joined: 7/8/2014 Last visit: 2/21/2023 Posts: 12 Rating:
|
I also captured traffic on the network using Wireshark. In my opinion S7-300 send correctly the message to read holding registers but if think that there in problem of interratation and answet to this message by Diris. Somebody have any idea why comminication is not working ? Regards Lukasz AttachmentCaptured Data.zip (497 Downloads) |
11/5/2014 4:29 PM | |
Joined: 7/8/2014 Last visit: 2/21/2023 Posts: 12 Rating:
|
Hi Gwawl, Thanks one more time for your very good comments. Today I replaced CP343-1 card to 6GK7 343-1EX30-0XE0 and communication start working it means that I received some DONE_NDR and also some ERROR outputs. I saw that when the devices are connected using only one switch between the “error counter” is equal 0. In reality between Siemens S7-300 and Diris A40 I have 3 switches and in this case statistics not looks so good. After few minutes I have “error counter” equal 1605 and “done counter” equal 104. I already try to extend MONITOR time to 4 s but this modyfication not help. Do you have idea what could be the reason of some many errors? How you can see in my project actually I set input ENQ_ENR every 2s and I reset this input using signals DONE_NDR or ERROR. Do you think that this logic is OK? AttachmentModbus_t.zip (555 Downloads) |
11/5/2014 5:51 PM | |
Joined: 7/8/2014 Last visit: 2/21/2023 Posts: 12 Rating:
|
I think that you are again right. It looks like most of the data are DINI and need to be divided by 100. Little bit strange format for me because I expected REAL. I will check for error code tomorrow when I will do additional tests. Regards Lukasz
AttachmentDirisA40ModbusTcp.pdf (577 Downloads) |
11/6/2014 11:37 AM | |
Joined: 7/8/2014 Last visit: 2/21/2023 Posts: 12 Rating:
|
I check and error is from function AG_SEN. I also run Special Diagnostic for card CP343-1 and there when I monitor status of connection once is closed and after 1 or 2 s established and again closed. It looks like one site (CP343-1 or Diris) close the connection. Now the question how to know where exactly is the problem ? AttachmentOnlineData.zip (479 Downloads) |
11/10/2014 1:26 PM | |
Joined: 10/21/2011 Last visit: 7/15/2021 Posts: 57 Rating:
|
Perhaps in a wireshark trace you could see why the connection gets shut down. |
11/11/2014 2:38 PM | |
Joined: 7/8/2014 Last visit: 2/21/2023 Posts: 12 Rating:
|
Hi Gwawl, I already try to look on wireshark trace and for me it looks like Diris (IP 172.16.32.227) from time to time not responding on request send from CP343-1 (IP 172.16.32.227) . I already try to increasy MONITOR time in FB108 block even to 20 s but it is still the same. Mayby next week I will have time to connect PLC to diffrent place in the network. I will let you know when I will find root cause of the problem. Regards Lukasz AttachmentCapturedData.zip (430 Downloads) |
Follow us on