mhopley
Member
I am trying to duplicate some Modicon code in a Contrologix PLC.
This a sequence step number that is incremented on each step (78 steps). The modicon code uses a MBIT instruction to set a bit corresponding to each step.
I am struggling to find a neat way of doing this in Logix 5000.
My first thought was a boolean array and just have a coil of Step[StepNumber] but you can't manipulate boolean arrays to reset the coil.
Also I would like to have this in a UDT (I have 28 identical sequences) and have a description of each step.
I'm thinking an AOI with 78 compares might be the only way.
Does anyone have any ideas for a better method?
Thanks
This a sequence step number that is incremented on each step (78 steps). The modicon code uses a MBIT instruction to set a bit corresponding to each step.
I am struggling to find a neat way of doing this in Logix 5000.
My first thought was a boolean array and just have a coil of Step[StepNumber] but you can't manipulate boolean arrays to reset the coil.
Also I would like to have this in a UDT (I have 28 identical sequences) and have a description of each step.
I'm thinking an AOI with 78 compares might be the only way.
Does anyone have any ideas for a better method?
Thanks