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!!