dnp3 (C++ API) 1.6.0
Loading...
Searching...
No Matches
dnp3::BinaryOutputCommandEvent Struct Reference

Event transferred from master to outstation when the outstation receives a corresponding command. More...

#include <dnp3.hpp>

Public Member Functions

 BinaryOutputCommandEvent (uint16_t index, CommandStatus status, bool commanded_state, const Timestamp &time)
 Fully construct BinaryOutputCommandEvent specifying the value of each field. More...
 

Public Attributes

uint16_t index
 Index of the binary command event. More...
 
CommandStatus status
 Status from processing the command that triggered this event. More...
 
bool commanded_state
 Commanded state of the binary output. More...
 
Timestamp time
 Associated timestamp. More...
 

Friends

class CppBinaryOutputCommandEventFriend
 

Detailed Description

Event transferred from master to outstation when the outstation receives a corresponding command.

Maps to group 13 variations 1 and 2.

These objects are part of subset level 4 and are not commonly used.

Constructor & Destructor Documentation

◆ BinaryOutputCommandEvent()

dnp3::BinaryOutputCommandEvent::BinaryOutputCommandEvent ( uint16_t  index,
CommandStatus  status,
bool  commanded_state,
const Timestamp time 
)

Fully construct BinaryOutputCommandEvent specifying the value of each field.

Parameters
indexIndex of the binary command event
statusStatus from processing the command that triggered this event
commanded_stateCommanded state of the binary output
timeAssociated timestamp
Returns
New instance of BinaryOutputCommandEvent

Member Data Documentation

◆ commanded_state

bool dnp3::BinaryOutputCommandEvent::commanded_state

Commanded state of the binary output.

From the spec: 0 = Latch Off / Trip / NULL, 1 = Latch On / Close. Where the commanded state is unknown, the commanded state flag shall be 0.

◆ index

uint16_t dnp3::BinaryOutputCommandEvent::index

Index of the binary command event.

◆ status

CommandStatus dnp3::BinaryOutputCommandEvent::status

Status from processing the command that triggered this event.

◆ time

Timestamp dnp3::BinaryOutputCommandEvent::time

Associated timestamp.


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