Advanced PLC-controlled drive systems