Error Codes ComError_t

ComError_t

TYPE ComError_t :
(
COMERROR_NOERROR                := 0,
COMERROR_PARAMETERCHANGED       := 1, (* input parameters changed during reception *)
COMERROR_TXBUFFOVERRUN          := 2, (* string > transmit buffer *)
COMERROR_STRINGOVERRUN          := 10, (* end of string *)
COMERROR_ZEROCHARINVALID        := 11, (* string cannot receive zero characters *)
COMERROR_INVALIDPOINTER         := 20, (* invalid data pointer, e. g. zero *)
COMERROR_INVALIDRXPOINTER       := 21, (* invalid data pointer for ReceiveData *)
COMERROR_INVALIDRXLENGTH        := 22, (* invalid length for ReceiveData, e. g. zero *)
COMERROR_DATASIZEOVERRUN        := 23, (* end of data block *)
COMERROR_INVALIDPROCESSDATASIZE := 24,
COMERROR_MODENOTSUPPORTED       := 16#0101, (* mode not supported (3-Byte Terminals connected to bus controllers) *)
COMERROR_INVALIDCHANNELNUMBER   := 16#0102,
COMERROR_INVALIDBAUDRATE        := 16#1001,
COMERROR_INVALIDNUMDATABITS     := 16#1002,
COMERROR_INVALIDNUMSTOPBITS     := 16#1003,
COMERROR_INVALIDPARITY          := 16#1004,
COMERROR_INVALIDHANDSHAKE       := 16#1005,
COMERROR_INVALIDNUMREGISTERS    := 16#1006,
COMERROR_INVALIDREGISTER        := 16#1007,
COMERROR_TIMEOUT                := 16#1008
);
END_TYPE

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4012

PC or CX (ARM, x86, x64)

Tc2_SerialCom