Posts by skyegee

    Thanks Skooter.

    I was looking for more info on serial communications. I have no problem receiving data from the robot to my PC but when I try to write it hangs on the serial write command (using Python currently). Do you know why this would be? It looks like CTS is never True.

    Thanks

    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 :smiling_face:


    %%%

    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

Advertising from our partners