12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

InstructionReadAnyBinFile and Serial Channel HandlingExampleCONST num NEW_ROBT:=12;CONST num NEW_WOBJ:=20;VAR iodev channel; VAR num input;VAR robtarget cur_robt;VAR wobjdata cur_wobj;Open "com2:", channel\Bin;! Wait for the opcode characterinput := ReadBin (channel \Time:= 0.1);TEST inputCASE NEW_ROBT:ReadAnyBin channel, cur_robt;CASE NEW_WOBJ:ReadAnyBin channel, cur_wobj;ENDTESTClose channel;As a first step, the opcode of the message is read from the serial channel. Accordingto this opcode a robtarget or a wobjdata is read from the serial channel.SyntaxReadAnyBin[IODevice’:=’] ’,’[Data’:=’] [’\’Time’:=’ ]’;’Related informationDescribed in:Opening (etc.) of serial channelsWrite data to a binary serial channel<strong>RAPID</strong> Summary - Communication or filesInstructions - WriteAnyBin or file<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1, Instructions A-R 377

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!