TL140
Lifetime Supporting Member
So I have a problem that I am trying to overcome. I have X amount of motors (I'm trying to make the program scaleable). Let's say that a system has three motors. Each motor has a Hand/Off/Auto setup. I need the motors to start in a sequence. The outside program should read the sequence and turn on each motor individually as the conditions occur to make them do so.
Here is the real thorn in my side. The motor sequence is decided by a few things. The PLC is recording the hours that the motor gets run, so I want to start the first one if it has the least amount of operating hours on it. If system demands are too much after a fixed amount of time, then the second one with the second least operating hours comes on.
The second thorn in my side is that since each motor has a Hand/Off/Auto function, the sequence should skip over whichever motor is not in auto, but have the very next one come on at the second condition that is stated.
I'm using the Automation Direct Do-More series CPU. I'm 90% sure this can (and should) be done with indirect addressing and possibly casting, but I am having a difficult time piecing this one together.
Any advice is much appreciated.
-TL
Here is the real thorn in my side. The motor sequence is decided by a few things. The PLC is recording the hours that the motor gets run, so I want to start the first one if it has the least amount of operating hours on it. If system demands are too much after a fixed amount of time, then the second one with the second least operating hours comes on.
The second thorn in my side is that since each motor has a Hand/Off/Auto function, the sequence should skip over whichever motor is not in auto, but have the very next one come on at the second condition that is stated.
I'm using the Automation Direct Do-More series CPU. I'm 90% sure this can (and should) be done with indirect addressing and possibly casting, but I am having a difficult time piecing this one together.
Any advice is much appreciated.
-TL