Write (FB)ΒΆ
FUNCTION_BLOCK Write EXTENDS CBM.ETrigToA
Function block to write data to 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 with the data to write to the COM port
szSizeCAA.SIZENumber of bytes in pBuffer to write to the COM port
Output
eErrorLocal library error ID (0: no error; 5001: time out)