COM.Open (FB; Prefix como)

By use of this function block of the ⇘ CAA_SerialCom.library a COM port can be opened and configured. The availability of ports depends on the hardware. The configuration of a serial interface is effected by the input pParameterList. The pointer pParameterList has to be assigned to an array of ⇘ COM.PARAMETER comprising all configuration parameters required by the COM interface. udiListLength indicates the number of configuration parameters.  

Input:

xExecute

BOOL

see: Guidelines for CAA libs

udiListLength

UDINT 

Number of parameters contained in list

pParameterList

CAA.PVOID

Pointer on list of COM parameter values (COM.PARAMETER)

Output:

xDone

BOOL

see: Guidelines for CAA libs 

xBusy

BOOL

see: Guidelines for CAA libs

xError

BOOL

 see: Guidelines for CAA libs

eError

COM.ERROR 

Error ID

hCom

CAA.HANDLE

Handle of  COM interface