PATL01
Industrial
- Nov 17, 2004
- 5
I am currently converting a Softlogix program to run in a Control Logix platform. The problem I am having involves "double Indirect" addressing. i.e. N[N7:0]:[N7:1]
The "pointers" (in the original program) are derived using "CPT" instructions.
I have done some research on multi-dimensional arrays, but so far I have been unable to find any real good examples. (or even very many bad examples )
1 issue is the size that would be required of the array(s), i.e N7:0 could contain a value as high as 1264 (causing the pointer to look at N1264) and the word pointer (N7:1)can have a value of up to 1800. I know that I can make the arrays by calculating the Min/Max values that are used as pointers. I am really needing some examples, so I can see the Syntax.
If anybody knows where I could find some good A/B 5555 examples that use this type of addressing, I would appreciate it.
P.S. Before anyone suggests it, I will mention that I have talked with A/B~Rockwell tech support about this issue at great length.
Thanks in advance
Pat
The "pointers" (in the original program) are derived using "CPT" instructions.
I have done some research on multi-dimensional arrays, but so far I have been unable to find any real good examples. (or even very many bad examples )
1 issue is the size that would be required of the array(s), i.e N7:0 could contain a value as high as 1264 (causing the pointer to look at N1264) and the word pointer (N7:1)can have a value of up to 1800. I know that I can make the arrays by calculating the Min/Max values that are used as pointers. I am really needing some examples, so I can see the Syntax.
If anybody knows where I could find some good A/B 5555 examples that use this type of addressing, I would appreciate it.
P.S. Before anyone suggests it, I will mention that I have talked with A/B~Rockwell tech support about this issue at great length.
Thanks in advance
Pat