New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).
M340 Arrays
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.
Search in
Improve your search experience:
Exact phrase→Use quotes " "(e.g., "error 404")
Wildcard→Use * for partial words(e.g., build*, *tion)
AND / OR→Combine keywords(e.g., login AND error, login OR sign‑in)
Keep it short→Use 2–3 relevant words, not full sentences
Filters→Narrow results by section(Knowledge Base, Users, Products)
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: 2021-05-0612:17 PM
M340 Arrays
Good evening,
I have written a DFB which captures values from a sensor into an Array.
I'm capturing the values every second , however I have noticed that the values keep on changing latency when it has been captured in the array. Is there any way I can restrict the values not to be changing once they are written. This is the block which is capturing the values . One other thing is Test_Data_Out[1] gets over written every cycle.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-05-0904:06 PM
Hello BGB,
I would look to synchronise the update of the DFB, using the second pulse to trigger the operation of the block.
The scan cycle of the system is in order of top to bottom in the application browser so please ensure that the source information is provided at the top of the scan and the update of the DFB is at the end of the scan.
If using inputs please check the update of the input is associated with the task that you are running the DFB in.
Finally I would use an IN_OUT connection for the array attach the array to the input side so that the data array can be read into the array and also updated internally. If it is attached as an output only any changes you make to the array externally to the DFB are overwritten by the DFB.