Extensions.Persistence.Load
Jump to navigation
Jump to search
Classification
Name | Load |
Short Description | Loads the value of a previously stored OTX variable |
Class | Action |
Extension | OTX Persistence extension |
Group | Persistence Relates Actions |
Exceptions | - |
Checker Rules | Persistence_Chk001 |
Standard Compliant | Yes |
OTL Syntax
Persistence.Load(BooleanVariable isLoaded, Variable value);
Description
The Load activity is used for loading the value of a previously stored OTX variable from persistent storage. If the variable cannot be retrieved, the value of the variable will be unchanged.
Properties
Name | Data Type | Class | Default | Cardinality | Description |
IsLoaded | Boolean | Variable | - | [0..1] | Optional return value, if the OTX variable was previously stored and can be loaded (true) or not (false). |
Value | - | Variable | - | [1..1] | The Variable to be retrieved from the storage. |
OTL Examples
/// Local Declarations
Float Float1;
Boolean IsLoaded1 = true;
/// Flow
Persistence.Load(IsLoaded1, Float1);