Rockwell Automation 2080-LC50 Micro830 and Micro850 Programmable Controllers User Manual User Manual
Page 73

Rockwell Automation Publication 2080-UM002F-EN-E - December 2013
59
Program Execution in Micro800 Chapter 6
Example of Five Nested UDFBs
• Structured Text (ST) is much more efficient and easier to use than Ladder
Logic, when used for equations. if you are used to using the RSLogix 500
CPT Compute instruction, ST combined with UDFB is a great
alternative.
As an example, for an Astronomical Clock Calculation, Structured Text
uses 40% less Instructions.
Display_Output LD:
Memory Usage (Code) : 3148 steps
Memory Usage (Data) : 3456 bytes
Display_Output ST:
Memory Usage (Code) : 1824 steps
Memory Usage (Data) : 3456 bytes
• You may encounter an Insufficient Reserved Memory error while
downloading and compiling a program over a certain size. One
workaround is to use arrays, especially if there are many variables.
UDFB1
UDFB2
UDFB3
UDFB4
UDFB5