Using Ryan's wiring the code might look something like this:
Code:
Channel5=Get RxInput (1,5);
Channel6=Get RxInput (1,5);
if (Channel5 == 1) {
// forward
Set Digital Output (1,1);
Set Digital Output (2,0);
} else if (Channel6 == 1) {
// reverse
Set Digital Output (1,0);
Set Digital Output (2,1);
} else {
// stop
Set Digital Output (1,0);
Set Digital Output (2,0);
}