Skip to main content

i4scada Knowledge Base

SIMATIC Interface Error Codes

Abstract

Check out this article and learn more details about the i4scada SIMATIC Interface error codes.

Method

Error Code

Init(string configXML, out object signalNames, out object dataTypes, int startCommunication)

  • -999 = Invalid license

  • -1 = Already initialized

  • -3 = Invalid XML configuration

  • -4 = Failure to build list of signals out of XML configuration

  • 0 = success

Reset()

  • 0 = success

DefineSignal(string signalName, string furtherDefinition, out int dataType)

  • 0 = success

ActivateSignals(object signalNames, object statusFlags, out object results)

  • -1 = Connector not initialized or wrong signalNames parameter or wrong statusFlags parameter

  • 0 = success

Results parameter:

  • -1 = license quota insufficient to allow signal activation

  • -2 = Attempt to activate nonexistent signal

  • 0 = success

WriteSignalsAsync(object signalNames, object signalValues, out object results, out string guidAsync)

  • -1 = Connector not initialized or wrong signalNames parameter or wrong signalValues parameter

  • 0 = success

Results parameter:

  • -1 = Attempt to write to nonexistent signal

  • -2 = Attempt to write to signal, which is not writable

  • -3 = Attempt to write value of incompatible data type

  • -4 = Writing to wrong signal type

  • 0 = Write will be attempted

From asynchronous completion by OnWriteSignals result:

  • -5 = Starting write job ( for given PLC link ) failed

  • -6 = Writing of all signals in whole job failed

  • -7 = Writing of signal failed

  • 0 = success

WriteSignalSync(object signalNames, object signalValues, out object results)

  • -1 = Connector not initialized

Results parameter:

  • -1 = Attempt to write to nonexistent signal

  • -2 = Attempt to write to signal, which is not writable

  • -3 = Attempt to write value of incompatible data type

  • -4 = Writing to wrong signal type

  • -5 = Starting write job failed

  • -6 = Writing of all signals in whole job failed

  • -7 = Writing of signal failed

  • 0 = success