Need Help! Modicon M340 w/Unity Pro XL v10
Need Help! Modicon M340 w/Unity Pro XL v10
(OP)
I am trying to convert an Allen Bradley RSL5k program and am stuck on an addressing issue. In AB I have a UDT with a DINT member. I step through the bits of the DINT programatically with the following code
UDT_NAME.MemberDINT.[StepVar] and then I simply cycle through the applicable bits of the DINT by incrementing StepVar.
I need to do the same thing in Unity Pro, but cannot figure out how. Is this possible, if so, how? Please, and thank you very much!
UDT_NAME.MemberDINT.[StepVar] and then I simply cycle through the applicable bits of the DINT by incrementing StepVar.
I need to do the same thing in Unity Pro, but cannot figure out how. Is this possible, if so, how? Please, and thank you very much!
"To be or not to be, that is the question" - William Shakespeare via Hamlet





RE: Need Help! Modicon M340 w/Unity Pro XL v10
RE: Need Help! Modicon M340 w/Unity Pro XL v10
"To be or not to be, that is the question" - William Shakespeare via Hamlet
RE: Need Help! Modicon M340 w/Unity Pro XL v10
RE: Need Help! Modicon M340 w/Unity Pro XL v10
"To be or not to be, that is the question" - William Shakespeare via Hamlet
RE: Need Help! Modicon M340 w/Unity Pro XL v10
Which is to say that it does in my code. I have arrays of words defined : Stationregs => ARRAY[1..3] of WORD, and address these with two integer indexes : Stationregs[Index1].Index2. Unity knows exactly what to do with these.
RE: Need Help! Modicon M340 w/Unity Pro XL v10
I am using Unity Pro version 10, but am happy to upgrade if a later version will get me said functionality...
"To be or not to be, that is the question" - William Shakespeare via Hamlet
RE: Need Help! Modicon M340 w/Unity Pro XL v10
I fear that you will have to write yourself a wee function block to do this. Translate your DINT into an array of bits which you will be able to index.
RE: Need Help! Modicon M340 w/Unity Pro XL v10
RE: Need Help! Modicon M340 w/Unity Pro XL v10
"To be or not to be, that is the question" - William Shakespeare via Hamlet
RE: Need Help! Modicon M340 w/Unity Pro XL v10