- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-10-03 12:31 PM
Tutorial On How To Set UP Modbus Over TCP/IP for M580
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.
Andrew Liam McNeil
Systems & Software Engineer
ANF Energy Solutions Inc.
Email: almcneil@anfenergy.ca
Website: www.anfenergy.ca
Authentication Failed.
- Authentication Ticket Mismatched, failed authentication.
Link copied. Please paste this link to share this article on your social media post.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
Sr Solution Architect (SAE Master)
Link copied. Please paste this link to share this article on your social media post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
Sr Solution Architect (SAE Master)
Link copied. Please paste this link to share this article on your social media post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
Andrew Liam McNeil
Systems & Software Engineer
ANF Energy Solutions Inc.
Email: almcneil@anfenergy.ca
Website: www.anfenergy.ca
Link copied. Please paste this link to share this article on your social media post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.

