Read (FB)ΒΆ
FUNCTION_BLOCK Read EXTENDS CBM.ETrigToA
Function block to read data from the serial port
- InOut:
Scope
Name
Type
Comment
Input
hComCAA.HANDLEHandle to the open COM port. Ist returned by the COM.Open function block.
pBufferCAA.PVOIDPointer to a buffer to get the received data from the COM port
szBufferCAA.SIZEMaximum size of the pBuffer parameter in bytes
Output
eErrorLocal library error ID (0: no error; 5001: time out)
szSizeCAA.SIZEReturns the number of received data bytes in pBuffer