Ok, I finally got this working after much fiddling about. Here's how to duplicate my setup.
Firstly, the serial connectionto the PC. You have to connect header J2 on the controller board to the PC's serial port. I did this by hacking off one of the connectors from the supplied cable which had identical 2x5 connectors on each end and replacing it with a female DB9 connector.
J2 looks like this:
1 2
3 4
5 6
7 8
9 10
Of these pins, only 3 need to be connected:
PIN 3: connect to DB9 pin 3 (data from controller to PC)
PIN 5: connect to DB9 pin 2 (data from PC to controller)
PIN 9: connect to DB9 pin 5 (signal ground)
The V16 controller is thus wired as a 3-wire DTE. Remember that the serial settings are 2400baud, 8N1, no handshaking (although you can change the baudrate in software).
Next up, you need to connect the touchscreen. I can only assume that the cable which Miles Industrial supplied me is for 8-wire screens or something, coz it's completely bloody useless for my screen, which is a 4-wire interface.
The controller card interfaces to the touchscreen with two headers, J1 and J4. Only J4 is used for a four wire interface. From top to bottom, J4's pin assignments are:
pin 1: YE-
pin 2: YE+
pin 3: XE-
pin 4: XE+
For reference purposes, J1 is:
pin 1: YS-
pin 2: YS+
pin 3: XS+
pin 4: XS-
For an 8-wire interface you'd use both J1 and J4. For a four wire interface such as I have, you use J4 only.
The connector from the touchscreen itself has an arrow by pin 1, and the connections in order are:
pin 1: TOP
pin 2: BOTTOM
pin 3: LEFT
pin 4: RIGHT
As far as I can tell from the diagram of the touchscreen, TOP corresponds to YE-, BOTTOM to YE+, LEFT to XE-, and RIGHT to XE+, although it doesn't actually matter as the calibration phase of the software can figure out the orientation.
The cable I was supplied with was an 8 way one with a 2x4 connector on one end and a 1x8 connector on the other.
The 2x4 connector straddles both J1 and J4, so for the cable, the pin assignments are:
1: J1 pin 1 (YS-) 2: J4 pin 1 (YE-)
3: J1 pin 2 (YS+) 4: J4 pin 2 (YE+)
5: J1 pin 3 (XS+) 6: J4 pin 3 (XE-)
7: J1 pin 4 (XS-) 8: J4 pin 4 (XE+)
the touchscreen is expecting 1:YE-, 2: YE+, 3: XE-, 4: XE+, so I had to rebuild the 1x8 connector so that the relevant signals went to the right places. In detail, I moved pin 2 to pin position 1, pin 4 to pin 2, pin 6 to pin 3 and pin 8 to pin 4. I hope the attached photograph illustrates this better. Sorry about the composition, but hey it's 3am here
So I'm now in a state where my terminal software can quite clearly see the controller reporting movement on the touchscreen. I haven't tried it with 3M's drivers (coz I need to write my own linux DirectFB driver for my project), so I can't verify that the horizontal and vertical connections are the right way round, but like I said, calibration should sort this out.
Apologies for the long post, but hopefully it helps somebody out.