Electrically_Bound
Member
Hello,
This is my first post on this forum. There are a lot of smart people on here and I hope that one of them can answer my question.
What I am trying to do is very simple and thus my frustration. The plc that I am using is a Micrologix 1100. I have a table of 50 messages located in ST9:0 through ST9:49. The number of the fault message is located in N7:4. Life would be easy is the AWT (Ascii WriTe instruction) would let me do someing such as use ST9:[N7:4] as the source, but that instruction does not allow the use of indirect addresses, only direct addresses.
I thought of using indexed addressing by first moving N7:4 into S:24 and then using the COPY instruction with #ST9:0 as the source and place the result in ST9:50, but the ML1100 requires that the same type of addressing be used for the source and destination. (The AWT could have always used ST9:50 as the source.)
Am I going to be forced to duplicate 50 rungs of AWT instructions or is there a simple cure for my problem?
This is my first post on this forum. There are a lot of smart people on here and I hope that one of them can answer my question.
What I am trying to do is very simple and thus my frustration. The plc that I am using is a Micrologix 1100. I have a table of 50 messages located in ST9:0 through ST9:49. The number of the fault message is located in N7:4. Life would be easy is the AWT (Ascii WriTe instruction) would let me do someing such as use ST9:[N7:4] as the source, but that instruction does not allow the use of indirect addresses, only direct addresses.
I thought of using indexed addressing by first moving N7:4 into S:24 and then using the COPY instruction with #ST9:0 as the source and place the result in ST9:50, but the ML1100 requires that the same type of addressing be used for the source and destination. (The AWT could have always used ST9:50 as the source.)
Am I going to be forced to duplicate 50 rungs of AWT instructions or is there a simple cure for my problem?