Write a PLC program where if the motor reverse direction PB is pressed, the motor stops for 3 seconds using…