User Tools

Site Tools

한국어

logicpython:cubloc_api:blen

This is an old revision of the document!


BLen

Return the number of bytes currently in a receive or send buffer.

Syntax

from cubloc import BLen
 
BLen(channel: int, bufferType: int)

Parameters

  • channel: RS-232 channel number (0 or 1).
  • bufferType: 0=Receive buffer, 1=Send buffer.

Return Value

Return the number of bytes currently in a receive or send buffer.

Exceptions

Example

from cubloc import BLen
 
# Example usage
result = BLen(0, 16)
print(result)
logicpython/cubloc_api/blen.1775786798.txt.gz · Last modified: by 127.0.0.1