Siemens SINUMERIK 840D sl Function Manual page 1011

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

Advertisement

Functions
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:
Functions:
Const S7BlockContainer = 1138689, S7PlanContainer = 17829889
Const S7SourceContainer = 1122308
set S7 = CreateObject("Simatic.Simatic.1")
rem Instance command interface of STEP7
Set S7Ext = CreateObject("SimaticExt.S7ContainerExt")
Call S7Ext.Magic("")
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 Magic(bstrVal As String) As Long
Function MakeSeriesStartUp(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
-6
-7
Basic logic functions: PLC Basic program powerline (P3 pl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
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 start-up 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)
= Internal error (problem in STEP 7 project)
= Write error when generating series startup files (e.g., diskette full)
Detailed description
2.4 Starting up the PLC program
27

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840di slSinumerik 840dSinumerik 840diSinumerik 810dSinumerik 840d powerlineSinumerik 840de powerline ... Show all

Table of Contents