PlcAppConnection
PROPERTY LastError : UDINT
Will be valid in case of State = PlcConnectionState.Error