EasyManuals Logo

Siemens MCP 398C Function Manual

Siemens MCP 398C
2184 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1012 background imageLoading...
Page #1012 background image
Detailed description
2.4 Starting up the PLC program
Basic logic functions: PLC Basic program powerline (P3 pl)
28 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
Use in script
If S7Ext.Magic("") < 0 Then
Wscript.Quit(1)
End If
Set Proj1 = s7.Projects("new")
set S7Prog = Nothing
Set s7prog = Proj1.Programs.Item(1) 'if there is only one program'
For i = 1 to S7Prog.Next.Count
Set Cont = S7Prog.Next.Item(i)
Check block container
If (Cont.ConcreteType = S7BlockContainer) Then
Exit For
End if
Next
Error = S7Ext.MakeSerienIB("f:\dh\arc.dir\PLC.arc", 0, Cont)'Error analysis now'
2.4.7 Software upgrades
Software upgrade
Whenever you update the PLC or NCK software, always reset the PLC to its initial state first.
This initial clear state can be achieved by means of a general PLC reset. All existing blocks
are cleared when the PLC is reset.
It is usually necessary to include the new basic program when a new NC software version is
installed. The basic programs blocks must be loaded into the user project for this purpose.
OB 1, OB 40, OB 100, FC 12 and DB 4 should not be loaded if these blocks are already
included in the user project. These blocks may have been modified by the user. The new
basic program must be linked with the user program.
To do this, proceed as follows:
1. Generate the text or source file of all user blocks before copying the basic program.
2. Then copy the new basic program blocks to this machine project (for a description, see
Subsection "Application of basic program")
3. All user programs *.awl must then be recompiled in the correct order! (See also the
"Machine program" section.)
This newly compiled machine program must then be loaded to the PLC CPU using STEP
7.
However, it is normally sufficient to recompile the organization blocks (OB) and the instance
data blocks of the machine program. This means you only need to generate sources for the
organization blocks and the instance data blocks (before upgrading).

Table of Contents

Other manuals for Siemens MCP 398C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens MCP 398C and is the answer not in the manual?

Siemens MCP 398C Specifications

General IconGeneral
BrandSiemens
ModelMCP 398C
CategoryControl Systems
LanguageEnglish

Related product manuals