JaxGTO
Member
I remember a while back somebody asking about how to Indirect address a Logix tag using a string. It is possible. I just stumbled across this tech note:
https://rockwellautomation.custhelp.com/app/answers/detail/a_id/54960/page/1
Basically you do a MSG read of your own tag into a tag of the same type. I even tried it with a tag of a user defined type and it works. Even works in emulator (after an hour of getting emulator to run again). Just remember the path is "1,#". Where # is the slot your PLC is in.
Using this you could loop through tags like "M1" to "M75". Just build a string and punch it into the MSG block and read or write from/to the tags.
https://rockwellautomation.custhelp.com/app/answers/detail/a_id/54960/page/1
Basically you do a MSG read of your own tag into a tag of the same type. I even tried it with a tag of a user defined type and it works. Even works in emulator (after an hour of getting emulator to run again). Just remember the path is "1,#". Where # is the slot your PLC is in.
Using this you could loop through tags like "M1" to "M75". Just build a string and punch it into the MSG block and read or write from/to the tags.