Hi everybody!
Let's say I want to make one subroutine that will handle multiple similar pieces of equipment.
Seems to me that I must use the CPS instruction to copy each individual structure into a "multiplexed" structure, call the routine using the JSR with the multiplexed structure in argument, then CPS again the multiplexed structure into original structure of the equipment. And then repeat the three rungs for every similar equipment.
Am I doing this right, or is there a better way to do this?
Also, is there a way to "build" a tagname for indirect referencing?
As an exemple ,we used to do with adresses, N[N7:0]:[N7:1], where N7:0 is the file pointer and N7:1 is the item pointer.
Now with tagnames, can we use Machine.[Stringtag].Status, Where Stringtag would contain "Section1", "Section2", "Section3" and so on?
Thanks for your help!