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.
Posted: 2020-12-19 07:20 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-12-19 07:20 AM
I am trying to set an error flag based on the GEST parameter of READ_VAR.
The array PT1_RX1_ST is the input GEST on a READ_VAR block.
The index 1 of the array points the report (0 = no error)
The index 3 of the array points to the length of the response (expecting length = 4)
If I unplug the cable to the remote device, we see the first NE_INT fails (7 != 0, but the output is false)
The second NE_INT block seems to work properly. How can I fix this ?? (I'm new to Schneider PLC)
I'm using M340, the remote device is a M221
Thanks!
I also tried to give the GEST a direct memory address %MW200 and read values %MW201 and %MW203.
%MW201 is always 0, %MW203 seems to update properly
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.
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: 2021-01-14 02:49 PM
@DavidBaker @Nope not resolved, so far no help on the forums....
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.
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.
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: 2021-01-14 03:20 PM
Mine is for M580. I'll take a quick look at yours. Export and attach.
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: 2021-01-14 03:31 PM
@DavidBaker Thanks any help is appreciated.
See program "Gestion_PTR" : https://we.tl/t-Q4u0jdD42O
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: 2021-01-15 12:51 AM
Hello
If the problem is always present,
As a workaround,
you could try to invert the logic of the test:
EQ_INT and then invert the input (on the OR_BOOL) with a Not (little circle).
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: 2021-01-15 07:06 AM
You are running your Read_Var continuously (directly from the Power Rail). The Value of 7 is actually toggling between 7 and 0 so fast that you can't see it. So it only looks like the logic is not working properly. I proved this by adding a contact in front of your Read_Var., then disabled the rung after remove the ethernet cable.
You will want to use logic to control execution of the Read_Var. I use a Pulse Input to execute the Read_Var.
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.