Dynamic Changes - Storage
Since IDE 2.5.0.x.
Block Name
Storage
Description
Using this function block, we can dynamically change the SD card storage settings. Dynamic parameters include permission to save the history to the SD card or the maximum size of the recorded history.
For the current reading of the values at the output of the function block, it is necessary to set the "Enable" parameter at the input of the function block to "True".
For the subsequent commit of the changes we made at the input of the function block, it is necessary to set the "Commit" input parameter to "True" and then a PLC restart is required, which can be invoked using the "RestartRequest" input parameter. To select the PLC restart type, there is an input parameter "RestartFlag" with which we can choose between warm, cold and system restart.
Inputs
Input | Type | Description |
---|---|---|
UseForHistory | bool | Use for History (default value "False") |
HistorySize | dint | History Size |
Enable | bool | Enable Function Block |
Commit | bool | Used to write values (necessary restart) |
RestartFlag | RestartFlag | Selecting the type of restart (Warm, Cold, System) |
RestartRequest | bool | PLC restart request according to selected restart type |
Outputs
Output | Type | Description |
---|---|---|
UseForHistoryOut | bool | Actual Use for History setting |
HistorySizeOut | dint | Actual History Size |
CommitResult | bool | Commit Result |
RestartResult | dint | Restart Result |