You can execute script files (filename.py), containing a sequence of script commands, from the EcoStruxure Machine Expert user interface.
For further information on running scripts form the EcoStruxure Machine Expert user interface, refer to the chapter Script-Related Commands.
Frequently used commands
Command |
Description |
---|---|
|
The line is a comment and will be ignored. |
|
Changes to another directory. |
|
The commands will not be displayed.
In order to prevent single commands from being displayed, insert an |
|
Displays a string or a variable on the programming console. |
|
Declares a variable and assigns a value to this variable. |
|
Writes the output to a file. If the file already exists, it will be overwritten. |
|
Appends the output to a file. If the file does not already exist, it will be created. |
Application example:
@echo off
REM Go to the directory where EcoStruxure Machine Expert is installed
cd "<Replace this with the path to the LogicBuilderShell.exe, for example, C:\Program Files\Schneider Electric\EcoStruxure Machine Expert\V2.0>"
REM Run LogicBuilderShell.exe with no graphical user interface and the full path to the script
LogicBuilderShell.exe "<Replace this with the full file path where the script is stored, for example, D:\MyScripts\TestScript.py>"
pause