Vesp123 Posted February 20, 2021 Report Share Posted February 20, 2021 Hey all, I am looking for your suggestions/ideas in regard to writing a below described program. Lets say I need to control lighting(many lamps) in 20 rooms. Each room has the same, very advanced funcionalities. How do I write a program avoiding creating 20 exact multi-lines subroutines with different variables in each subroutine? Copying and pasting would take me perhaps 2 days, but maintaining it would be horrible, because when I make small change I need to make it in every subroutine every time! Is there a better approach? I thought that I could use UDFBs while passing as "Function In" a proper variables related to each room, but it seems like UDFB does not allow using Positive contacts. This way UDFBs are useless to me. What am I missing guys? How should I do it in Unilogic? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.