Example: How to add a UDFB to a PID program
For PID programs, use user-defined function blocks (UDFB) outside the main program to perform specialized functions, such as converting units or transferring values.
The following are examples of UDFBs.
Transfer the auto-tune gain value
This UDFB transfers the Autotune gain value to My_GainTransfer. So it can be used by the controller.
Transfer the auto-tune gain value

Convert a manipulated value to a digital output
Convert a manipulated value to a digital output

This UDFB converts a manipulated value (MV) to a digital output (DO). So it can be used to control a digital input n(DI).
Convert a manipulated value to an analog output
This UDFB converts a manipulated value (MV) to an analog output (AO). So it can be used to control an analog input (AI).
Convert a manipulated value to an analog output

Provide Feedback