lib60870.NET 2.3.0
IEC 60870-5-101/104 Protocol Source Code Library for C#/.NET
Loading...
Searching...
No Matches
lib60870.CS101.Master Class Referenceabstract

Common interface for CS104 and CS101 balanced and unbalanced master. More...

Inheritance diagram for lib60870.CS101.Master:

Public Member Functions

void SendInterrogationCommand (CauseOfTransmission cot, int ca, byte qoi)
 Sends the interrogation command.
 
void SendCounterInterrogationCommand (CauseOfTransmission cot, int ca, byte qcc)
 Sends the counter interrogation command (C_CI_NA_1 typeID: 101)
 
void SendReadCommand (int ca, int ioa)
 Sends a read command (C_RD_NA_1 typeID: 102).
 
void SendClockSyncCommand (int ca, CP56Time2a time)
 Sends a clock synchronization command (C_CS_NA_1 typeID: 103).
 
void SendTestCommand (int ca)
 Sends a test command (C_TS_NA_1 typeID: 104).
 
void SendTestCommandWithCP56Time2a (int ca, ushort tsc, CP56Time2a time)
 Sends a test command with CP56Time2a time (C_TS_TA_1 typeID: 107).
 
void SendResetProcessCommand (CauseOfTransmission cot, int ca, byte qrp)
 Sends a reset process command (C_RP_NA_1 typeID: 105).
 
void SendDelayAcquisitionCommand (CauseOfTransmission cot, int ca, CP16Time2a delay)
 Sends a delay acquisition command (C_CD_NA_1 typeID: 106).
 
void SendControlCommand (CauseOfTransmission cot, int ca, InformationObject sc)
 Sends the control command.
 
void SendASDU (ASDU asdu)
 Sends an arbitrary ASDU to the connected slave.
 
void GetFile (int ca, int ioa, NameOfFile nof, IFileReceiver receiver)
 Read the file from slave (upload file)
 
void SendFile (int ca, int ioa, NameOfFile nof, IFileProvider fileProvider)
 Sends the file to slave (download file)
 
ApplicationLayerParameters GetApplicationLayerParameters ()
 Get the application layer parameters used by this master instance.
 
void SetReceivedRawMessageHandler (RawMessageHandler handler, object parameter)
 Sets the raw message handler for received messages.
 
void SetSentRawMessageHandler (RawMessageHandler handler, object parameter)
 Sets the sent message handler for sent messages.
 

Protected Attributes

bool debugOutput
 

Properties

bool DebugOutput [get, set]
 

Detailed Description

Common interface for CS104 and CS101 balanced and unbalanced master.

Member Function Documentation

◆ GetApplicationLayerParameters()

ApplicationLayerParameters lib60870.CS101.Master.GetApplicationLayerParameters ( )
abstract

Get the application layer parameters used by this master instance.

Returns
used application layer parameters

◆ GetFile()

void lib60870.CS101.Master.GetFile ( int ca,
int ioa,
NameOfFile nof,
IFileReceiver receiver )
abstract

Read the file from slave (upload file)

Parameters
caCA
ioaIOA
nofName of file (file type)
receiverfile receiver instance

◆ SendASDU()

void lib60870.CS101.Master.SendASDU ( ASDU asdu)
abstract

Sends an arbitrary ASDU to the connected slave.

Parameters
asduThe ASDU to send

◆ SendClockSyncCommand()

void lib60870.CS101.Master.SendClockSyncCommand ( int ca,
CP56Time2a time )
abstract

Sends a clock synchronization command (C_CS_NA_1 typeID: 103).

Parameters
caCommon address
timethe new time to set
Exceptions
ConnectionExceptiondescription

◆ SendControlCommand()

void lib60870.CS101.Master.SendControlCommand ( CauseOfTransmission cot,
int ca,
InformationObject sc )
abstract

Sends the control command.

The type ID has to match the type of the InformationObject!

C_SC_NA_1 -> SingleCommand C_DC_NA_1 -> DoubleCommand C_RC_NA_1 -> StepCommand C_SC_TA_1 -> SingleCommandWithCP56Time2a C_SE_NA_1 -> SetpointCommandNormalized C_SE_NB_1 -> SetpointCommandScaled C_SE_NC_1 -> SetpointCommandShort C_BO_NA_1 -> Bitstring32Command

Parameters
cotCause of transmission (use ACTIVATION to start a control sequence)
caCommon address
scInformation object of the command
Exceptions
ConnectionExceptiondescription

◆ SendCounterInterrogationCommand()

void lib60870.CS101.Master.SendCounterInterrogationCommand ( CauseOfTransmission cot,
int ca,
byte qcc )
abstract

Sends the counter interrogation command (C_CI_NA_1 typeID: 101)

Parameters
cotCause of transmission
caCommon address
qccQualifier of counter interrogation command
Exceptions
ConnectionExceptiondescription

◆ SendDelayAcquisitionCommand()

void lib60870.CS101.Master.SendDelayAcquisitionCommand ( CauseOfTransmission cot,
int ca,
CP16Time2a delay )
abstract

Sends a delay acquisition command (C_CD_NA_1 typeID: 106).

Parameters
cotCause of transmission
caCommon address
delaydelay for acquisition
Exceptions
ConnectionExceptiondescription

◆ SendFile()

void lib60870.CS101.Master.SendFile ( int ca,
int ioa,
NameOfFile nof,
IFileProvider fileProvider )
abstract

Sends the file to slave (download file)

Parameters
caCA
ioaIOA
nofName of file (file type)
fileProviderFile provider instance

◆ SendInterrogationCommand()

void lib60870.CS101.Master.SendInterrogationCommand ( CauseOfTransmission cot,
int ca,
byte qoi )
abstract

Sends the interrogation command.

Parameters
cotCause of transmission
caCommon address
qoiQualifier of interrogation (20 = station interrogation)
Exceptions
ConnectionExceptiondescription

◆ SendReadCommand()

void lib60870.CS101.Master.SendReadCommand ( int ca,
int ioa )
abstract

Sends a read command (C_RD_NA_1 typeID: 102).

This will send a read command C_RC_NA_1 (102) to the slave/outstation. The COT is always REQUEST (5). It is used to implement the cyclical polling of data application function.

Parameters
caCommon address
ioaInformation object address
Exceptions
ConnectionExceptiondescription

◆ SendResetProcessCommand()

void lib60870.CS101.Master.SendResetProcessCommand ( CauseOfTransmission cot,
int ca,
byte qrp )
abstract

Sends a reset process command (C_RP_NA_1 typeID: 105).

Parameters
cotCause of transmission
caCommon address
qrpQualifier of reset process command
Exceptions
ConnectionExceptiondescription

◆ SendTestCommand()

void lib60870.CS101.Master.SendTestCommand ( int ca)
abstract

Sends a test command (C_TS_NA_1 typeID: 104).

Not required and supported by IEC 60870-5-104.

Parameters
caCommon address
Exceptions
ConnectionExceptiondescription

◆ SendTestCommandWithCP56Time2a()

void lib60870.CS101.Master.SendTestCommandWithCP56Time2a ( int ca,
ushort tsc,
CP56Time2a time )
abstract

Sends a test command with CP56Time2a time (C_TS_TA_1 typeID: 107).

Parameters
caCommon address
tsctest sequence number
timetest timestamp
Exceptions
ConnectionExceptiondescription

◆ SetReceivedRawMessageHandler()

void lib60870.CS101.Master.SetReceivedRawMessageHandler ( RawMessageHandler handler,
object parameter )
abstract

Sets the raw message handler for received messages.

Parameters
handlerHandler/delegate that will be invoked when a message is received
parameterwill be passed to the delegate

◆ SetSentRawMessageHandler()

void lib60870.CS101.Master.SetSentRawMessageHandler ( RawMessageHandler handler,
object parameter )
abstract

Sets the sent message handler for sent messages.

Parameters
handlerHandler/delegate that will be invoked when a message is sent<
parameterwill be passed to the delegate

The documentation for this class was generated from the following file: