
The Function Block MEM_GLOBAL is a simple global memory function.
This Function Block can be used to store simple data in the application and make it available globally.
Tip: To list all elements used, you can right-click on the Function Block. If the database was used in another element, these will be displayed under
Used By. The list is divided by NS namespaces.
The database DB is used to define the global namespace. For example: Licht.EIN or Lüftung.Störung etc.
This stores the data in the background. If the name is changed later in the program, data may be lost.
Defines the data to be stored. The format does not matter.
On a positive edge, the value at input IN is copied into memory and output at Q. In addition, the value is synchronized with all other MEM_GLOBAL Function Blocks.
On a positive edge, the memory is reset. The value NULL is again present at output Q.
The input NS can be used to add a dynamic namespace. This corresponds to a subordinate variable. This simplifies handling with the Range Templates considerably. For the value to be synchronized, this must be identical to the input NS.
Note: Since the name is extended with DB.NS, a conflict with other MEM_GLOBAL Function Blocks may occur. If NS is not defined, the internal variable has a dot at the end.
Returns the memory of the database. This value is NULL during initialization.