4/21/2017 8:57 AM | |
Posts: 47 Rating: (3) |
Ideal scheme: HMI have three var current_value, new_value and save_cmd. Then your code: if save_cmd then current_value:= new_value; result:= end_if |
4/21/2017 9:31 AM | ||||||||||||||||||||||
Posts: 2826 Rating: (684) |
Hello. Thank you for the replies so far. Hopefully later I will give a proper response to this. This message hopes to refresh some more thoughts from others on the subject. Please find attached a test program to test cycle times of code segements and their variations. You will be interested to know that the FB executes as soon as the PLC goes into RUN mode. Then the PLC goes to STOP when the test is complete. That allowed me to trigger the test without the PC linked to the PLC, as to test the influence by communication. The results are recoded in "db".capture[x] where "db" is the instance of the FB. The resulting time values in ms for my system configuration:
Note the difference between simulated and actual. Also - The contribution of the FOR LOOP without other code, is listed first. Bye. AttachmenttimeTrialV2.zip (33 Downloads) |
|||||||||||||||||||||
Last edited by: #dP at: 4/21/2017 9:33:47 AM |
||||||||||||||||||||||
Follow us on