Try outputting a program first to see what kind of format it produces. For example whether is starts with a %, or EOB, etc. Then edit your program to match it before you send it. I remember that control had some very unique requirements to get the send/receive function to work. Just one possibility.