We need to use pedal switch control logic at machine work shop for speed control of motor. Write the PLC…