Siemens SINUMERIK 840D sl Function Manual page 829

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Automation
The process of generating a series archive can be automated (comparable to the command
interface in STEP 7). 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")
instantiate rem command interface of STEP 7
Set S7Ext = CreateObject("SimaticExt.S7ContainerExt")
Call S7Ext.Magic("")
Functions:
● Function Magic(bstrVal As String) As Long
● Function MakeSerienIB (FileName As String, Option As Long,
Container As S7Container) As Long
Description
Function Magic(bstrVal As String) As Long
The call provides 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 STEP 7
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 MakeSeriesstart-up(FileName As String, Option As Long, Container As S7Container)
As Long
"Option" parameter:
0:
Bit 0 = 1:
Bit 1 = 1:
Return parameter value:
0
-1
-2
-4
-5
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Normal series startup file with general reset
Series startup file without general reset. When project contains SDBs, this option is
inoperative.
A general reset is then always executed
Series startup file with PLC restart
= OK
= Function unavailable, call Magic function beforehand
= File name cannot be generated
= Container parameter invalid or container block empty
= Internal error (memory request rejected by Windows)
P3: Basic PLC program for SINUMERIK 840D sl
13.7 Starting up the PLC program
829

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents