TM200C40T PLC modbus in Ecostruxure machine expert -basic
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-06-1811:39 PM
TM200C40T PLC modbus in Ecostruxure machine expert -basic
Hi everyone,
I am using TM200C40T PLC. I am new to PLC programming. I want to read modbus data continuously from slave.
I have made Ladder diagram which use READ_VAR block. I am able to read modbus data from slave but I can do it only once in start when I give high input to Execute of block. I am getting done signal from block.
after getting done signal, if data is changed from slave side I can't read updated data in READ_VAR block.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-06-1908:39 PM
I think this block only executes once after the execution input is active, since it starts based on a rising edge. So once it is done, you'll have to toggle the execute input off for at least one scan cycle before setting it high again.
It also seems like you have both the execute and abort inputs connected the same line, so you're likely aborting the read Everytime you try to execute.You should monitor the status of the aborted output and error output to check for proper functionality. The CommError and OperError will also give you insight into what is working or not
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-06-1908:39 PM
I think this block only executes once after the execution input is active, since it starts based on a rising edge. So once it is done, you'll have to toggle the execute input off for at least one scan cycle before setting it high again.
It also seems like you have both the execute and abort inputs connected the same line, so you're likely aborting the read Everytime you try to execute.You should monitor the status of the aborted output and error output to check for proper functionality. The CommError and OperError will also give you insight into what is working or not