Hi guys,
I am trying to send coordinates to the robot serially from my PC but my program times out at the ReadAnyBin command. I can send and see data sent from the controller to my PC but am having trouble the other way around. Any tips?
My PC is sending bytes of data over.
Thanks
%%%
VERSION:1
LANGUAGE:ENGLISH
%%%
MODULE SERRD1
VAR iodev deRS232;
VAR byte bData;
VAR string str;
PROC main()
Open "com2:",deRS232\Bin;
ReadAnyBin deRS232,bData\Time:=5;
!Compiles but times out above
Close deRS232;
str:=ByteToStr(bData);
TPWrite str;
ENDPROC
ENDMODULE