[r825]: / branches / FeatureBranches / refactorpayload / SparkplugB / Function Blocks / FB_Edge / FB_NodeControl / svnobj  Maximize  Restore  History

Download this file

23 lines (22 with data), 4.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
(*
    This list can be extended/altered once various conrols have been implemented.
*)
FUNCTION_BLOCK FB_NodeControl
VAR_IN_OUT
    AllMetricsList : LIST;
END_VAR
VAR
    SupportsReBirth : BOOL := TRUE; // Supported
    SuppportNextServer : BOOL := FALSE; // Not implemented yet
NodeControl_Reboot.Name := "Node Control/Reboot";
NodeControl_Reboot.DataType := MetricDataType.Boolean;
NodeControl_Reboot.Boolean := SupportsReboot;
AllMetricsList.AppendElem( NodeControl_Reboot );
NodeControl_NextServer.Name := "Node Control/Next Server";
NodeControl_NextServer.DataType := MetricDataType.Boolean;
NodeControl_NextServer.Boolean := SupportsReBirth;
AllMetricsList.AppendElem( NodeControl_NextServer );
NodeControl_Rebirth.Name := "Node Control/Rebirth";
NodeControl_Rebirth.DataType := MetricDataType.Boolean;
NodeControl_Rebirth.Boolean := SupportsReBirth;
AllMetricsList.AppendElem( NodeControl_Rebirth );