Script To Call Up The Individual Scripts To Create The Card Image; Loading The Card Image To The Target Device By Means Of Scout Scripting - Siemens SIMOTION Function Manual

Motion control basic functions for modular machines
Hide thumbs Also See for SIMOTION:
Table of Contents

Advertisement

Appendix
A.3 Loading the card image to the target device by means of SCOUT scripting
A.2.6

Script to call up the individual scripts to create the card image

The individual scripts mentioned above are executed by a central script. In this, only the actions
that run in the engineering system are summarized (no target required). This is possible by
means of the syntax listed below:
'
WBScript.addCode(Scripts("createFoldersModMach").code)
WBScript.addCode(Scripts("downl").code)
WBScript.addCode(Scripts("makezip").code)
WBScript.addCode(Scripts("makestore").code)
A.3
Loading the card image to the target device by means of SCOUT
scripting
This function is available in SIMOTION Kernel as of version V4.1.
The following scripts show examples of how an archived card image stored in the subfolder
of the d:\modular_machine\cfes directory can be transferred to the corresponding target
device.
For other target devices, the scripts are to be changed accordingly.
After loading the card images, the SIMOTION devices must be restarted in order for the card
images to become effective as the active configuration.
Setting up an online connection to the target device
The following script "online" sets up an online connection to the SIMOTION device with the
identifier "D435_1."
' online
' connection to device "D435_1"
App.LogActive = True
PROJ.Devices("D435_1").EnableOnline = TRUE
PROJ.Online = true
Loading the card image to the target device
The following script "dwldtarg" loads the archived card image of the configuration into the
SIMOTION device with the identifier "D435_1."
' dwldtarg
128
allToDo
Basic Functions for Modular Machines
Function Manual, 04/2014

Advertisement

Table of Contents
loading

Table of Contents