here are the pinouts for port 3:
(PIN)
(2) Joystick Trigger Switch Digital (bit) p3_sw_trig Relay 3 Forward SW05 [5]
(7) Joystick Thumb Switch Digital (bit) p3_sw_top Relay 3 Reverse SW06 [5]
(10) Aux Switch1 Digital (bit) p3_sw_aux1 Relay 6 Forward SW07 [5]
(14) Aux Switch2 Digital (bit) p3_sw_aux2 Relay 6 Reverse SW08 [5]
pin 4 and 12 are grounds
so if you want p3_sw_aux1 in the code (for example) to be 1, you wire a switch from pin 4(or 12) to pin 10 which is the imput, so basically for a switch to work you wire it from the pin you want to the switch then the switch to ground
so
pin 10 on oi----->switch------->ground
/
---------------------------------
| |
| The Switch |
| (SPST) ]
___________________
| |
pin 10 ground
_______________________________________
and check out the control system manual at:
MANUAL
page14-17 has the pin-outs for the others
______________
hope this helps
