Read/write operation codes

For each read/write operation of a single or multiple tags, the controller generates an operation code that describes the operation result.

Operation codes description

Code Description

Good

The read/write operation succeeded.

BadNoCommunication

The read/write failed because of a timeout, such as a connection timeout.

The Timeout property value of a Communication stationdetermines the timeout.

BadCommunicationError

The read/write operation failed because the controller returned an error.

BadConfigurationError

The read/write operation failed because of a tag configuration error such as an invalid address.

Read operation codes in C#

You can read the operation codes in NetLogics. If the returned value is 0, the communication is good. If the returned value is different than 0, the communication is down.

Example:
var station = Project.Current.Get<Station>("CommDrivers/RAEtherNet_IPStation1");

var stationState = station.OperationCode