ComGetCaaSerialComConfig (FB)

FUNCTION_BLOCK ComGetCaaSerialComConfig EXTENDS AbbETrig

Obtain configuration data of project for a specified COM port in CAA SerialCom compatible format

InOut:

Scope

Name

Type

Initial

Comment

Input

ComID

COM_PORT_ID

COM_PORT.COM_ID_INVALID

COM port ID: Use ComGetIdByName() to get the COM port ID for a serial device as shown in the configuration device tree

pCaaParamList

POINTER TO Serial_Communication.COM.PARAMETER

0

Where configuration data will be written to

NumParams

UINT

0

Number of available elements in pasCaaParamList

Output

ErrorID

ERROR_ID

ERROR_ID.NO_ERROR

Error code describing error condition