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: 2023-09-23 12:19 AM . Last Modified: 2023-09-23 11:48 PM
READ_VAR blocks periodically freeze and communication with Modbus devices is lost. Timeout delays of blocks are set (word 3). There are no errors in communication visible (word 2). The only way that helps is to remove the GEST variable of READ_VAR blocks and assign it back. We have M580 Hot Standby system. What could be the problem?
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: 2023-09-26 12:09 AM
Check if the variables (GEST) are excluded from Synchronization with the STBY controller (see HotStandby installation manual). If they are synchronized, a switchover might lock the READ_VAR.
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: 2023-09-28 10:51 PM
The READ_VAR block is triggered every 1 second if Activity bit is 0. Timeout is 20 (2sec).
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: 2023-09-25 08:56 PM
How fast is it being triggered? What is the timeout? Is it actually giving no error code? I suggest you double check and test your trap code for word 2 at the completion of the transaction (FE of word 1 bit 0. If the next read is already triggered, you might be timing out but never seeing the status word come up.
What you describe with removing the GEST variable seems a bit weird, so I would start with what I said above.
Please share a snip of your code.
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: 2023-09-25 09:18 PM
This is roughly how I would typically setup a READ_VAR, if it is any use to you:
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: 2023-09-25 10:45 PM
You can also try using the ModbusPortM / ModbusClient blocks from Schneiders General Purpose Library. However, remember that it is mandatory that those DFBs do not run in the standby controller.
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: 2023-09-26 12:09 AM
Check if the variables (GEST) are excluded from Synchronization with the STBY controller (see HotStandby installation manual). If they are synchronized, a switchover might lock the READ_VAR.
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: 2023-09-28 10:51 PM
The READ_VAR block is triggered every 1 second if Activity bit is 0. Timeout is 20 (2sec).
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: 2023-09-28 10:55 PM
I removed GEST and RECP variables from Synchtonization. It's working now, see what happens next.
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: 2023-10-05 02:18 AM
hi, i have similar problem but using M580 single controller. the READ_VAR block is freeze, and the only way to solve it is to create new tag for GEST. seems that the first tag that created for GEST is freezing (can not refresh). is there any way to un-freeze this tag without build changes/creating new tag? any help please
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: 2023-10-05 04:26 PM
Have you set a timeout? What is the state of the Activity bit?
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: 2023-10-05 07:58 PM
timeout set 100 (10s) and activity bit is 1
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.