lib60870.NET
2.2.0
IEC 60870-5-101/104 Protocol Source Code Library for C#/.NET
|
Common interface for CS104 and CS101 balanced and unbalanced master More...
Public Member Functions | |
abstract void | SendInterrogationCommand (CauseOfTransmission cot, int ca, byte qoi) |
Sends the interrogation command. More... | |
abstract void | SendCounterInterrogationCommand (CauseOfTransmission cot, int ca, byte qcc) |
Sends the counter interrogation command (C_CI_NA_1 typeID: 101) More... | |
abstract void | SendReadCommand (int ca, int ioa) |
Sends a read command (C_RD_NA_1 typeID: 102). More... | |
abstract void | SendClockSyncCommand (int ca, CP56Time2a time) |
Sends a clock synchronization command (C_CS_NA_1 typeID: 103). More... | |
abstract void | SendTestCommand (int ca) |
Sends a test command (C_TS_NA_1 typeID: 104). More... | |
abstract void | SendTestCommandWithCP56Time2a (int ca, ushort tsc, CP56Time2a time) |
Sends a test command with CP56Time2a time (C_TS_TA_1 typeID: 107). More... | |
abstract void | SendResetProcessCommand (CauseOfTransmission cot, int ca, byte qrp) |
Sends a reset process command (C_RP_NA_1 typeID: 105). More... | |
abstract void | SendDelayAcquisitionCommand (CauseOfTransmission cot, int ca, CP16Time2a delay) |
Sends a delay acquisition command (C_CD_NA_1 typeID: 106). More... | |
abstract void | SendControlCommand (CauseOfTransmission cot, int ca, InformationObject sc) |
Sends the control command. More... | |
abstract void | SendASDU (ASDU asdu) |
Sends an arbitrary ASDU to the connected slave More... | |
abstract void | GetFile (int ca, int ioa, NameOfFile nof, IFileReceiver receiver) |
Gets the file. More... | |
abstract ApplicationLayerParameters | GetApplicationLayerParameters () |
Get the application layer parameters used by this master instance More... | |
abstract void | SetReceivedRawMessageHandler (RawMessageHandler handler, object parameter) |
Sets the raw message handler for receoved messages More... | |
abstract void | SetSentRawMessageHandler (RawMessageHandler handler, object parameter) |
Sets the sent message handler for sent messages. More... | |
Protected Attributes | |
bool | debugOutput |
Properties | |
bool | DebugOutput [get, set] |
|
pure virtual |
Get the application layer parameters used by this master instance
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
Gets the file.
ca | Ca. |
ioa | Ioa. |
nof | Nof. |
receiver | Receiver. |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
Sends an arbitrary ASDU to the connected slave
asdu | The ASDU to send |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
Sends a clock synchronization command (C_CS_NA_1 typeID: 103).
ca | Common address |
time | the new time to set |
ConnectionException | description |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
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
cot | Cause of transmission (use ACTIVATION to start a control sequence) |
ca | Common address |
sc | Information object of the command |
ConnectionException | description |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
Sends the counter interrogation command (C_CI_NA_1 typeID: 101)
cot | Cause of transmission |
ca | Common address |
qcc | Qualifier of counter interrogation command |
ConnectionException | description |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
Sends a delay acquisition command (C_CD_NA_1 typeID: 106).
cot | Cause of transmission |
ca | Common address |
delay | delay for acquisition |
ConnectionException | description |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
Sends the interrogation command.
cot | Cause of transmission |
ca | Common address |
qoi | Qualifier of interrogation (20 = station interrogation) |
ConnectionException | description |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
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.
ca | Common address |
ioa | Information object address |
ConnectionException | description |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
Sends a reset process command (C_RP_NA_1 typeID: 105).
cot | Cause of transmission |
ca | Common address |
qrp | Qualifier of reset process command |
ConnectionException | description |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
Sends a test command (C_TS_NA_1 typeID: 104).
Not required and supported by IEC 60870-5-104.
ca | Common address |
ConnectionException | description |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
Sends a test command with CP56Time2a time (C_TS_TA_1 typeID: 107).
ca | Common address |
tsc | test sequence number |
time | test timestamp |
ConnectionException | description |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
Sets the raw message handler for receoved messages
handler | Handler/delegate that will be invoked when a message is received |
parameter | will be passed to the delegate |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.
|
pure virtual |
Sets the sent message handler for sent messages.
handler | Handler/delegate that will be invoked when a message is sent< |
parameter | will be passed to the delegate |
Implemented in lib60870.CS104.Connection, and lib60870.CS101.CS101Master.