Modicon PAC Forum
A forum for topics related to the scope of Modicon PAC offers and ecosystem along the whole lifecycle: Modicon M580 and 340, EcoStruxure Control Expert, EcoStruxure Process Expert (Unity Pro) and more.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-10-03 12:31 PM
Although I have over 20 years experience in developing embedded systems, I am a newbie to M580 PAC. I am trying to set up Modbus over TCP/IP but cannot find an outline or tutorial that shows me all the steps. I have found some articles troubleshooting someone's setup but I am looking for a "walkthrough" style outline. Any help would be appreciated.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-10-07 01:38 AM
I'm not sure what you mean by "Set UP Modbus Over TCP/IP for M580", but I assume you mean how to set up a Modbus Client in the M580 to read or write data from a Modbus/TCP server.
2 things to consider here: What Modbus Functions (1-23) are supported by this Modbus server?
1: In case of Function code 3 & 16 you can use so called I/O scanning using the DTM browser. Note this uses only FC3 (read holding registers), FC16 (write holding registers) and FC23 (read/write holding registers.
To setup up you can use this link: https://www.youtube.com/watch?v=iHOzyGZ8pQU&list=PLa7UGrWOTyjmmdyweOFrYny3ZKwq1DbBC
2: In all other cases you can use Function Blocks (READ_VAR, WRITE_VAR and DATA_EXCH) to communicate. To setup, read the communication library manual, showing several examples: https://www.se.com/us/en/download/document/33002527K01000/
Youtube has a lot of examples to show: https://www.youtube.com/playlist?list=PLa7UGrWOTyjmmdyweOFrYny3ZKwq1DbBC
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-10-07 01:38 AM
I'm not sure what you mean by "Set UP Modbus Over TCP/IP for M580", but I assume you mean how to set up a Modbus Client in the M580 to read or write data from a Modbus/TCP server.
2 things to consider here: What Modbus Functions (1-23) are supported by this Modbus server?
1: In case of Function code 3 & 16 you can use so called I/O scanning using the DTM browser. Note this uses only FC3 (read holding registers), FC16 (write holding registers) and FC23 (read/write holding registers.
To setup up you can use this link: https://www.youtube.com/watch?v=iHOzyGZ8pQU&list=PLa7UGrWOTyjmmdyweOFrYny3ZKwq1DbBC
2: In all other cases you can use Function Blocks (READ_VAR, WRITE_VAR and DATA_EXCH) to communicate. To setup, read the communication library manual, showing several examples: https://www.se.com/us/en/download/document/33002527K01000/
Youtube has a lot of examples to show: https://www.youtube.com/playlist?list=PLa7UGrWOTyjmmdyweOFrYny3ZKwq1DbBC
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-10-07 01:51 PM
EUREKA! Modbus over TCP/IP now works! And my boss confirmed we're getting the correct values from the remote device! Thank you so much! Your references were what I needed! Although I still have questions, I can research them myself.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-10-08 09:31 PM
Make certain you set a timeout value, as blank means wait forever which will lock up the block if it doesn't get a reply. This catches people out if they don't pay attention to the details.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.