CL2.DriverOpenP* (FUN)

提示!

The interfaces of this component contains inputs and outputs which drive and diagnose optional functionalities. With CL2.GetProperty you can check, whether a driver supports a certain functionality or not. If not, its input and output values are irrelevant.

This function of the CAA_CanL2.library opens an interface for subsequent access.

In contrast to CL2.DriverOpenH the memory is provided by the caller (PLC). In all other aspects the function is equivalent to “CL2.DriverOpenH”.

Input:

usiNetId

USINT

handle of interface

uiBaudrate

UINT

baud rate [kbit/s]. Possible values are  10, 20, 50, 100, 125, 250, 500, 800 or 1000.

xSupport29BitIds*

BOOL

FALSE: 11 Bit-Ids only; TRUE: 29 Bit-Ids also supported

szMemSize

CAA.SIZE

size of space provided by IEC

pMemory

CAA.PVOID

start address of space provided by IEC

peError

POINTER TO CL2.ERROR

pointer to error code (enumeration type)

Output:

hDriver

CAA.HANDLE

handle of CAN interface