11.07.2015 Views

BCL Programmers Manual V2.00 (PDF) - Barix

BCL Programmers Manual V2.00 (PDF) - Barix

BCL Programmers Manual V2.00 (PDF) - Barix

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.

RMTHOST$( H )Returns the remote host IP of the stream H, or an empty string.For the special CGI handle -1 (see chapter 12.2) RMTHOST$ returns the remote address ofthe client, which can be used e.g. for authentication.CONNECTED( H )Returns TRUE if the connection has been established for TCP-based stream H, or FALSEotherwise.FILESIZE (H)Returns number of bytes in the incomming FIFO of the stream H available for reading.See also example 14.3 on page 79.7.4 Serial portSerial ports can be opened using:OPEN "COM:Baudrate,Parity,Data,Stopbits,FlowControl:PortNumber" AS Xwhere Baudrate, Parity, Data, Stopbits, FlowControl and PortNumber are integer parameters.Possible values for Baudrate are:230400,115200,76800,57600 ,38400,19200,9600,4800,2400,1200,600,300Possible values for Parity are:N,O,EPossible values for Data are:7,8Possible values for Stopbits are1,2Possible values for FlowControl areValueNONSFWHDWType of flow controlnoneSoftware flow control (XON,XOFF)Hardware flow control (RTS,CTS)422 RS422485 RS485PortNumber is the number of the serial port, usually 1 or 2. Depending on the hardwareconfiguration, various ports are supported. Please refer to the specific productdocumentation for details.Serial configuration on the Barionet is ignored and the configuration is taken from the systemconfiguration. To open serial port on the Barionet use the following OPEN command:OPEN "COM::1" AS XFILESIZE( H )Returns number of bytes available for reading in the incoming FIFO.<strong>Barix</strong> AG | 35/106

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

Saved successfully!

Ooh no, something went wrong!