12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

InstructionReadBlockSensor InterfaceReadBlock - read a block of data from deviceReadBlock (Write Block) is used to read a block of data from a device connected to theserial sensor interface. The data is stored in a file on ramdisk or floppy disk.The sensor interface communicates with a maximum of two sensors over serial channels using the RTP1 transport protocol. The two channels must be named “laser1:” and “swg:”.This is an example of a sensor channel configuration.COM_PHY_CHANN:-name “sio1:” -type “sio”-Channel 1-Baudrate 19200COM_TRP:-Name “laser1:”-Type “RTP1” -PhyChnnel “sio1”ExampleCONST string SensorPar := “flp1:senpar.cfg”;CONST num ParBlock:= 1;! Read sensor parameters from sensor datablock 1! and store on flp1:senpar.cfgReadBlock ParBlock, SensorPar;ArgumentsReadBlock BlockNo FileName [\SensorNo ]BlockNoData type: numThe argument BlockNo is used to select the data block in the sensor to be read.FileNameData type: stringThe argument FileName is used to define a file to which data is written from thedata block in the sensor selected by the BlockNo argument.[\SensorNo]Data type: numThe optional SensorNo is used if more than one sensor is connected to the robotcontroller. SensorNo 0 selects the sensor connected to the “laser1:” channel.SensorNo 1 selects the sensor connected to the “swg:” channel.If the argument is left out the default SensorNo 0 is used.<strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R 379

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

Saved successfully!

Ooh no, something went wrong!