Simulates a PLC and controls a number of acuatotrs