Ask our Experts
Didn't find what you are looking for? Ask our experts!
Launch of Consumer/Home Owner registration process! We are pleased to announce the commencement of the Consumer/Home Owner Registration Process on Community. Consumers/Home Owners may now proceed to register by clicking on Login/Register. The process is straightforward and designed to be completed in just a few steps.
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
Posted: 2021-05-06 12:17 PM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-05-06 12:17 PM
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.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-05-09 04: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.
Trinxs
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
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.