The dual-axis controller has two potentiometers and four microswitches.
Two of the switches are for Boom Up/Down and the other two are for Swing Left/Right.
In the drawing, switch 1 is activated in both directions of Joystick movement, switch 2 is activated in only one direction of Joystick movement.
Switch 1 provides power for the circuit board and provides power for switch 2.
Switch 2 provides power for the two coils on the directional valve.
Before making the investment in new cards/controllers, check to be sure that the microswitches are getting the voltage and are being activated properly.
Many times the bracket that holds the potentiometers and microswitches gets loose and can give these intermittent problems.
Also check terminal A of the control cards for clean, tight connection.
It is difficult diagnosing problems when they are not always there.
Having a voltmeter and other tools handy when the machine breaks down is not the way it usually works. It would be nice if it was.
The cards do fail but the majority of the time they get replaced only to find that it was not the cause of the problem. Please take the time to verify it is not something else. Back in the day when we used this system on our machines, countless control cards that were sent back to us for warranty claims were found to be good.
edit: removed cylinder, added motor