pub enum ControlModel {
StatusOnly,
DirectNormal,
SboNormal,
DirectEnhanced,
SboEnhanced,
}Expand description
The control model of a controllable object (ctlModel, IEC 61850-7-3).
It decides which services are legal: whether a select is required first, and whether the server answers the operate immediately or only after the switchgear has actually moved.
Variants§
StatusOnly
0 — the object reports a status and cannot be operated.
DirectNormal
1 — write Oper; the response is the answer.
SboNormal
2 — read SBO to reserve, then write Oper.
DirectEnhanced
3 — write Oper; the final answer is a CommandTermination.
SboEnhanced
4 — write SBOw to reserve with the value, then Oper, then CommandTermination.
Implementations§
Source§impl ControlModel
impl ControlModel
Sourcepub const fn from_code(code: i64) -> Option<ControlModel>
pub const fn from_code(code: i64) -> Option<ControlModel>
From the ctlModel enumeration value.
Sourcepub const fn needs_select(self) -> bool
pub const fn needs_select(self) -> bool
True when the object must be selected before it may be operated.
Sourcepub const fn select_carries_value(self) -> bool
pub const fn select_carries_value(self) -> bool
True when the select carries the value (SBOw) rather than being a bare reservation
(SBO).
Sourcepub const fn enhanced_security(self) -> bool
pub const fn enhanced_security(self) -> bool
True when the server owes a CommandTermination after the operate response.