briana banks
Member
- Join Date
- Jul 2005
- Posts
- 242
Hi all
Using RSlogix 5k( but may be applicable to any other plc)
in my project i have 6 devices (it can be motors or any other heavy machinery.
I take a DINT variable to represent an array of these items
I use the first 0..5 bit as a cyclic array and able to know which of the 6 devices are in fault mode.
for example (the first 2 devices are in fault):
0 0 1 1 1 1
There is a pivot(index) to this array which represent the first item in this cyclic array and its position is changed every 2 days (if a device is in fault it should skip it).
there are 6 setpoints and in each setpoint, an additional device
is turned on (if a device is in fault it should skip it)
In other word i need to manipulate arithmetically,a stack and
a queue using these bits.
How can i do that ?
Using RSlogix 5k( but may be applicable to any other plc)
in my project i have 6 devices (it can be motors or any other heavy machinery.
I take a DINT variable to represent an array of these items
I use the first 0..5 bit as a cyclic array and able to know which of the 6 devices are in fault mode.
for example (the first 2 devices are in fault):
0 0 1 1 1 1
There is a pivot(index) to this array which represent the first item in this cyclic array and its position is changed every 2 days (if a device is in fault it should skip it).
there are 6 setpoints and in each setpoint, an additional device
is turned on (if a device is in fault it should skip it)
In other word i need to manipulate arithmetically,a stack and
a queue using these bits.
How can i do that ?
Last edited: