Also, I've been working with the basic stamp to communicate with mach 3.
This is a very simple version of what I'm working on in the basic stamp code.
' {$STAMP BS2}
' {$PBASIC 2.5}
sData VAR Byte
insignal VAR Byte
DO
SERIN 16, $4054, [sData] ' 4800 baud
insignal = sData -48 ' the incoming data is a character decimal value, so -48 to get the true number (not the best way, I'm sure)
TOGGLE insignal
LOOP
STOP
A moderator from the basic stamp forum says:
The stamps use a signal from the serial port to reset them (I think it is DTR).
You need to make sure that signal stays in the correct state (low I think) otherwise it will reset the stamp.
I need to figure out how to control the serial output from mach3 to keep the basic stamp from resetting after each incoming data being sent.
Sorry this is so short, and lacking in detail, I need to head to town.
Thanks

Z