We install a lot of stand by generators at residential sites. I have started using micrologix 1000 controlers for load shed of the air conditioner compressors. I am currently using analog input to monitor the load on the generator in amps and allowing or disallowing the compressors to run based on the load. so far the highest number of AC units that I've had to control is 4 but I have a job comming up that will require the control of 6 units. For 4 units I simply wrote one rung for each input / output combination with various combinations of XIC and XIO to allow or block an individual unit. This was okay with only 4 units as there are only 15 combinations possible. But with 6 units there will be 63 combinations and I would like to make a more generic program that will facilitate any number of units. I thought that I could use a compare block, or a move, but I don't seem to have the knowledge to write a program that will actually work. the gist of the program is that I need to monitor which thermostats are calling for cooling, and either allow or block the corrisponding AC compressors based on the generator load. Any help that would lead me in the right direction would be greatly appreciated.