Write (FB)ΒΆ

FUNCTION_BLOCK Write EXTENDS CBM.ETrigToA

Function block to write data to 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 with the data to write to the COM port

szSize

CAA.SIZE

Number of bytes in pBuffer to write to the COM port

Output

eError

ERROR

Local library error ID (0: no error; 5001: time out)