[r800]: / trunk / mqttsparkplug / mqttsparkplug / SparkplugB / Function Blocks / FB_Edge / FB_NodeControl / svnobj  Maximize  Restore  History

Download this file

20 lines (19 with data), 3.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
(*
    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.Value := SupportsReboot;
AllMetricsList.AppendElem( NodeControl_Reboot );
NodeControl_NextServer.Name := "Node Control/Next Server";
NodeControl_NextServer.Value := SupportsReBirth;
AllMetricsList.AppendElem( NodeControl_NextServer );
NodeControl_Rebirth.Name := "Node Control/Rebirth";
NodeControl_Rebirth.Value := SupportsReBirth;
AllMetricsList.AppendElem( NodeControl_Rebirth );