50 Rockwell Automation Publication 2080-QS004C-EN-E - October 2023
Chapter 10 Learn About User-defined Functions and User-defined Function Blocks
2. Right-click the UDF and rename it to “Scaled_Value”.
3. Double-click Local Variables under the Scaled_Value UDF.
4. Create the following variables. Configure the Direction property carefully. This property defines whether the variable is an Input,
Output, or standard Variable.
5. Next, double-click the Scaled_Value UDF to launch the Ladder Diagram program editor in the main project window.
6. Create the following program.
You have completed creating your UDF.