Make the example ladder logic to control the motor in forward and reverse direction using PLC Programming with limit switches…