FNC Member F Join Date May 2010 Location NJ Posts 84 Jun 11, 2010 #1 I have a small piece of code (4 lines) that I need to repeat many times over. How do I create a subroutine with parameters? I have many subroutines but none that I can pass parameters to. Thanks!
I have a small piece of code (4 lines) that I need to repeat many times over. How do I create a subroutine with parameters? I have many subroutines but none that I can pass parameters to. Thanks!
GeoffC Member Join Date Aug 2006 Location Newcastle Posts 683 Jun 12, 2010 #2 Create a DFB (defined function block). The inputs to the DFB are your input parameters and the outputs will be the result
Create a DFB (defined function block). The inputs to the DFB are your input parameters and the outputs will be the result