Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I am trying to build a function that will be used multiple times in my ST program. within my program I reference different variables in the same structured data type multiple times. Each time i use the function I will be referencing different instance of the same user defined data type. (for example function 1: production.parameter.start and then function 2: Robot.parameter.start) I would like to pass the beginning of each variable as a parameter. (just production or robot). Do i do this as a pointer or do i concatenate the variable?
Function(line:=pointer or string)
a:= line.parameter.start;
b:= line.inputs.go
Thank you!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to build a function that will be used multiple times in my ST program. within my program I reference different variables in the same structured data type multiple times. Each time i use the function I will be referencing different instance of the same user defined data type. (for example function 1: production.parameter.start and then function 2: Robot.parameter.start) I would like to pass the beginning of each variable as a parameter. (just production or robot). Do i do this as a pointer or do i concatenate the variable?
Function(line:=pointer or string)
a:= line.parameter.start;
b:= line.inputs.go
Thank you!!