Modules
A Module is a data container for code or data. The file representation of a Module is a *.br file.
Data Objects
A data object is a data container in the form of a B&R module. It can be used by other software objects on the target system as a data table (e.g. for configuration) or as data memory. Automation Studio provides functions for handling data objects in the DataObj library.
Data objects can be used for e.g. a simple recipe system
There are some system data objects available:
ANSL and INA2000 provide some functionality to translate modules.
Examples
find the following examples on GitHub github.com/hilch/Pvi.py
modules1.py (ANSL)
this simple example creates a module on CPU by downloading a bytestream and checks if it exists
modules2.py (ANSL)
this simple example creates a module on CPU by downloading a bytestream and afterwards uploads it again
modules3.py
in this example we search for BR files (*.br) in a folder and read the type of content