Siemens SINUMERIK 840Di Function Manual page 931

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
Table of Contents

Advertisement

2.4.6
PLC series startup, PLC archives:
After the blocks have been loaded to the PLC CPU, a series archive can be generated via
the MMC operator interface to back up data on the machine. To ensure data consistency,
this backup must be created immediately after block loading when the PLC is in the Stop
state. It does not replace the SIMATIC project backup as the series archive saves binary
data only, and does not back up, e.g., symbolic information. In addition, no CPU DBs (SFC
22 DBs) or SDBs generated in the CPU are saved.
In Toolbox 06.03.03 and STEP 7 V5.1 and higher, the PLC series archive can be generated
directly from the corresponding SIMATIC project.
To do this, select the "Options" → "Settings" menu item and the "Archive" tab in STEP 7. This
contains an entry "SINUMERIK (*.arc)", which must be selected to create a series startup
file. After selection of the archive, select the "File" → "Archive" menu item. The relevant
series archive will then be generated. If the project contains several programs, the program
path can be selected. A series archive is set up for the selected program path. All blocks
contained in the program path are incorporated into the archive, except for CPU-DBs (SFC
22 DBs).
The process of generating a series archive can be automated (comparable to the command
interface in STEP 7, V5.1 and higher). In generating this series archive, the command
interface is expanded.
The following functions are available for this expansion:
The functions (shown here in VB script) are not available until server instantiations and
Magic have been called:
Const S7BlockContainer = 1138689, S7PlanContainer = 17829889
Const S7SourceContainer = 1122308
set S7 = CreateObject("Simatic.Simatic.1")
rem Instantiate command interface of STEP7
Set S7Ext = CreateObject("SimaticExt.S7ContainerExt")
Call S7Ext.Magic("")
Functions:
Function Magic(bstrVal As String) As Long
Function MakeSeriesStartUp(FileName As String, Option As Long, Container As
S7Container) As Long
Function Magic(bstrVal As String) As Long
Call gives access to certain functions. The function must be called once after server
instantiation. The value of bstrVal can be empty. This initiates a check of the correct Step7
version and path name in Autoexec. The functions are enabled with a return parameter of 0.
Return parameter (-1) = incorrect STEP 7 version
Return parameter (-2) = no entry in Autoexec.bat
Function MakeSeriesStartUp(FileName As String, Option As Long, Container As
S7Container) As Long
Power Line Basic PLC Program (P3)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Detailed description
2.4 Starting up the PLC program
2-19

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents