Controller Implementation on a PLC via MatLAB-Simulink: Practical realization for inverted pendulum