(* Create FUNCTION atMbCall_cext returning UDINT, paste this declaration. Properties > Build > External implementation must be selected. Library filename and Project Information title: CmpAtomModbus. This declaration is the SINGLE external entry point for the C engine. *) FUNCTION atMbCall_cext : UDINT VAR_INPUT command : UDINT; handle : UDINT; ipAddress : DWORD; port : UINT; unitId : BYTE; functionCode : BYTE; startAddress : UINT; quantity : UINT; pData : POINTER TO WORD; dataCapacity : UDINT; pStatus : POINTER TO UDINT; statusCapacity : UDINT; nowMs : ULINT; connectTimeoutMs : UDINT; responseTimeoutMs : UDINT; retryDelayMs : UDINT; END_VAR