Post Configuration File Management
The file Machine.cfg is located in the directory /usr/cfg.
Each parameter is specified by a variable type, variable ID, and value. The format is:
id[moduleType].pos[param1Id].id[param2Id].param[param3Id].paramField=value
where you have to modify only value.
Each parameter is defined on three lines in the Post Configuration file:
oThe first line describes the internal 'path' for this parameter.
oThe second line is a comment describing the parameter in a comprehensive way.
oThe third line is the definition of the parameter (as described above) with its value.
Post Configuration File Generation
The Post Configuration file (Machine.cfg) is generated by EcoStruxure Machine Expert.
To generate the file, proceed as follows:
Step |
Action |
---|---|
1 |
In the menu bar, choose Build > Post Configuration > Generate... Result: An explorer window is displayed. |
2 |
Select the destination folder of the Post Configuration file. |
3 |
Click OK. |
When you use EcoStruxure Machine Expert to create a Post Configuration file (Generate), it reads the value of each parameter assigned in your application program and then writes the values to the Machine.cfg Post Configuration file. After generating a Post Configuration file, review the file and remove any parameter assignments that you wish to remain under the control of your application. Keep only those parameter assignments that you wish changed by the Post Configuration function that are necessary to make your application portable and then modify those values appropriately.
Post Configuration File Transfer
After creating and modifying your Post Configuration file, transfer it to the /usr/cfg directory of the controller. The controller does not read the Machine.cfg file unless it is in this directory.
You can transfer the Post Configuration file by the following methods:
oSD card (with the proper script)
oDownload through the FTP server
oDownload with EcoStruxure Machine Expert controller device editor
Modifying a Post Configuration File
If the Post Configuration file is located in the PC, use a text editor to modify it.
NOTE: Do not change the text file encoding. The default encoding is ANSI.
To modify the Post Configuration file directly in the controller, use the Setup menu of the Web server.
Step |
Action |
---|---|
1 |
In the Devices tree, click the controller name. |
2 |
Click Build > Post Configuration > Edit... Result: The Post Configuration file opens in a text editor. |
3 |
Edit the file. |
4 |
If you want to apply the modifications after saving them, select Reset device after sending. |
5 |
Click Save as. |
6 |
Click Close. |
NOTE: If the parameters are invalid, they are ignored.
Deleting the Post Configuration File
You can delete the Post Configuration file by the following methods:
oSD card (with the delete script)
oThrough the FTP server
oOnline with EcoStruxure Machine Expert controller device editor, Files tab
For more information on Files tab of the Device Editor, refer to EcoStruxure Machine Expert Programming Guide.
NOTE:
The parameters defined in the application are used instead of the corresponding parameters defined in the Post Configuration file after:
oA reboot