Siemens SINUMERIK 840Di Function Manual page 932

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

Advertisement

Detailed description
2.4 Starting up the PLC program
"Option" parameter:
0:
Bit 0 = 1:
Bit 1 = 1:
Return parameter value:
0
-1
-2
-4
-5
-6
-7
If S7Ext.Magic("") < 0 Then
End If
Set s7prog = Proj1.Programs.Item(1) 'if there is only one program'
For i = 1 to S7Prog.Next.Count
Next
Error = S7Ext.MakeSerienIB("f:\dh\arc.dir\PLC.arc", 0, Cont)'Error analysis now'
2-20
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 (supported in MMC SW 6.2 and higher)
= 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)
Wscript.Quit(1)
Set Proj1 = s7.Projects("new")
set S7Prog = Nothing
Set Cont = S7Prog.Next.Item(i)
Check block container
If (Cont.ConcreteType = S7BlockContainer) Then
Exit For
End if
Power Line Basic PLC Program (P3)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents