EcoStruxure Machine Expert version 1.1 does not support the M258, LMC058 and LMC078 controllers.

Script-Related Commands

 

Script

Execute Script File

To start a script, execute the command Tools > Scripting. A dialog box opens allowing you to select the script (extension *.py) and executing it by clicking the Open button.

You can also start script files from the Windows command line (--runscript).

For general information about script commands in EcoStruxure Machine Expert, refer to the Script Languages chapter.

Enable Script Tracing

Execute the command Tools > Scripting > Enable Script Tracing to enable script tracing. A blue frame around the icon indicates that the option is activated.

If script tracing is enabled, all script command lines will be displayed in the Messages view. This option serves to observe and debug scripts.

Script tracing in Messages view

G-SE-0030799.2.gif-high.gif

 

 

Scripts

Execute the command Tools > Scripting > Scripts to display a list of the Python scripts (*.py files) that you saved to the ScriptDir folder. You have to create this folder manually as a subfolder of the EcoStruxure Machine Expert installation directory. Select a file to execute the script.