PLC-based implementation of supervisory control for flexible manufacturing systems using theory of regions. (16th May 2019)