Notes, Error description, Example – Yaskawa MotionWorks IEC Toolboxes User Manual
Page 549

Yaskawa Toolbox: Function Blocks
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
536
Notes
•
See Yaskawa's Youtube webinar -
function block.
Error Description
ErrorID
Meaning
No error
DataSize must be greater than zero
Example
The MovingAverage function acts as a smoothing filter. In this example, the Sweep function will increment by 5
each cycle. The Sweep function will continue to increment the OutputValue until it has reached 100.
The Moving average function has a sample size of 50 which means that if Sweep reaches its maximum value
after 19 cycles, MovingAverage will output the maximum value after 69 cycles. By looking at the Logic Analyzer
plot below, notice there is a 5 cycle pre-record that must be taken in to account: 74 - 5 = 69 cycles.