hi I have been given the task to sort out a broken barrier at the entrance to my work. It is a simple enough system, push button to go up/down and a stop button. Within the barrier mechanism is 2 pistons (one for up, one for down) which are controlled by a hydraulic pump. The pump has a single phase capacitor start motor. This is bidirectional to control either of the pistons. My problem; the direction of the motor is controlled by an electronic circuit board mounted within the barrier mechanism. This is continually getting wet and failing no matter how much we try to protect it. I now want to build my own system with either a plc unit, or simply relay system, away from the barrier itself to protect from the elements. I am unsure the best way to do this for the reversal of the motor direction. The motor core colours from the built in flex are brown, blue, black, earth, which i assume is switch wire, neutral, switch wire, earth?? Do i need 2 capacitors, one for each switch wire? any help greatly appreciated.