Example 2 for Call
Parameterized blocks are useful for building libraries of user-defined
functions. For example, if you have an equation such as:
E=(A+B+C+D)/4, a parameterized block named AVG_4 could be
called as shown in the example to the right.
In this example, the average of the values in R00001, R00002,
R00003, and R00004 would be placed in R00005.
The logic within the parameterized block would be defined as shown
below.
Logic for AVG_4 Parameterized Block
GFK-2950C
Chapter 4. Ladder Diagram (LD) Programming
February 2018
205