User Tools

Site Tools

한국어

logicpython:cubloc_api:blen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

logicpython:cubloc_api:blen [2026/04/10 02:06] – created - external edit 127.0.0.1logicpython:cubloc_api:blen [2026/04/10 04:03] (current) – removed mfranklin
Line 1: Line 1:
-====== BLen ====== 
- 
-Return the number of bytes currently in a receive or send buffer. 
- 
-===== Syntax ===== 
- 
-<code python> 
-from cubloc import BLen 
- 
-BLen(channel: int, bufferType: int) 
-</code> 
- 
-===== 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 ===== 
- 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#TypeError|TypeError]]: An argument is not an integer. 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#ValueError|ValueError]]: ''channel'' or ''bufferType'' is out of range. 
-  * [[https://docs.micropython.org/en/latest/library/builtins.html#RuntimeError|RuntimeError]]: ''OpenCom'' has not been called for this ''channel''. 
- 
-===== Example ===== 
- 
-<code python> 
-from cubloc import BLen 
- 
-# Example usage 
-result = BLen(0, 16) 
-print(result) 
-</code> 
- 
-===== Related APIs ===== 
- 
-  * [[logicpython:cubloc_api:bclr|BClr]] 
-  * [[logicpython:cubloc_api:bfree|BFree]] 
-  * [[logicpython:cubloc_api:checkbf|CheckBf]] 
-  * [[logicpython:cubloc_api:get|Get]] 
-  * [[logicpython:cubloc_api:geta|GetA]] 
  
logicpython/cubloc_api/blen.1775786798.txt.gz · Last modified: by 127.0.0.1