PLC/ intelligent application controller