Read (FB)ΒΆ
FUNCTION_BLOCK Read EXTENDS CBM.ETrigToA
Function block to read data from the serial port
- InOut:
Scope
Name
Type
Comment
Input
hCom
CAA.HANDLE
Handle to the open COM port. Ist returned by the COM.Open function block.
pBuffer
CAA.PVOID
Pointer to a buffer to get the received data from the COM port
szBuffer
CAA.SIZE
Maximum size of the pBuffer parameter in bytes
Output
eError
Local library error ID (0: no error; 5001: time out)
szSize
CAA.SIZE
Returns the number of received data bytes in pBuffer