Modbus Over TCP/IP, DATA_EXCH Not Working for Code 05h (Write To Coil)
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.
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-10-2211:00 AM
Modbus Over TCP/IP, DATA_EXCH Not Working for Code 05h (Write To Coil)
I am still new to M580 and getting Modbus over TCP/IP working. I got read register (code 03h) to work but cannot get write to coil (code 05h) using function block DATA_EXCH to work. Here are my code samples along with the M580 manual references I am using and the protection relay I am writing to a 1 bit register ("coil"), if someone can pinpoint the error:
----------------------------------------- Andrew Liam McNeil Systems & Software Engineer ANF Energy Solutions Inc. Email: almcneil@anfenergy.ca Website: www.anfenergy.ca