Started using EDelays just to get the applications to work when trying out the algorighms using GUI on PC for simulation. But on real device need to sample at regular intervals. Since EDelays do not guarentee time between samples because of delay time to execute other Function Blocks.
Better Solution: ECycle - sends out request at regularly timed intervals.
Of course the sample rate chosen must be greater than the execution time of all FBs used in the cycle.
No comments:
Post a Comment