How to create a function which can be called several times with RSLOGIX5000. What about the tags for the function?