Hello everyone,
Recently, I have started using the Unilogic program. I was familiar with TIA portal from siemens and I have some questions regarding the functions in Unilogic.
1) Is it possible to refer to the input or output of a function? For example, in TIA portal if the function is call calc the input is x and the output is y, you can use the variables directly by typing calc.x and calc.y.
2) Is there is a way to insert a contact or a series of contacts into the input of a function (as seen in the picture attached) without the need of an auxiliary coil?
3) If I call the same function multiple times is there a way to name each function call differently? For example in siemens if you called the function calc twice you could name the functions calc1 and calc2 and easily access the inputs outputs by typing calc1.input/output/local variable or calc2.input/output/local variable
4) Since you cannot insert a timer locally in a function you have to assign it globally. Let's say I want to call twice a function which uses a timer. Can I somehow use the same function in order to make two calls or I have to make two functions which are exactly the same except the timer. This is not a problem when you use the function a few times, but it is a waste of time when you have tens of calls to the same function.
5) I have read in the help file that there is a limit to the inputs/outputs of a function and that limit is 10. For the inputs this in not an obstacle since you can insert a struct as input containing as many variables as you desire. How can you overcome this problem with the outputs since you cannot assign a struct as an output in a function?
If something needs further explaining please let me know.
Thank you