Sepasoft MES Module Suite
Export and Import Functions
Scope: Gateway
If you don't pass a string for a file path to these functions, the system creates the export file as MESConfig.json in the data directory for ignition, as shown below.
These functions export to a default directory:
/usr/local/share/ignition/data/MESConfig.json
You can also pass a file path to the function, absolute path or relative paths work - with the base directory being where IgnitionGateway.exe is
<ignition exe file location>/<your directory path>/MESConfig.json
Script Functions
truncateConfiguration()
Truncates all configuration tables (target system) to ready them for an import
Parameters
String - Filename to export to.
Returns
void
exportConfiguration()
Exports all configuration objects to a json file.
Parameters
String - Filename to export to.
Returns
void
Parameters
importConfiguration()
Imports all configuration objects from a json file.
Parameters
String - Filename to export from.
Returns
void
|
Version Specific: 3.81.11 RC 3 and later |
Script Example set on a Perspective button
Added to buttons on a Perspective View:
Sepasoft MES Module Suite