13.7.7 Software upgradeA general PLC reset should be performed to achieve a defined initial state before the PLCsoftware is upgraded. In this case, among other things, all user data (program and data blocks)will be deleted. The PLC general reset is described in:References:Commissioning Manual CNC: NCK, PLC, Drive, General Tips,Section: PLC general resetGenerating a new SIMATIC S7 projectIn normal cases, the new PLC basic program is to be linked-in for a new NCU software version.The basic programs blocks must be loaded into the user project for this purpose. If the followingprogram and data blocks are already in the user project, then these should not be transferredwith the blocks of the basic PLC program: OB1, OB40, OB82, OB86, OB100, FC12 and DB4.These have been possibly changed by the user, and should not be overwritten. The new basicprogram must be linked with the user program. The following procedure must be taken intoaccount:1. Generate the text or source file of all user blocks before copying the basic PLC program.2. Copy the new basic program blocks into the SIMATIC S7 project (for a description, seeSection "Application of the basic program (Page 826)")3. All user programs "*.awl" must be recompiled in the correct order! (see also: " Machineprogram (Page 827)"):4. This newly compiled SIMATIC S7 project should then be downloaded with STEP 7 into thePLC.However, it is normally sufficient to recompile the organization blocks (OBs) and the instancedata blocks of the S7 project. This means before upgrading, only the sources for theorganization blocks and the instance data blocks have to be generated.NC variablesThe latest NC VAR selector can be used for each NC software version (even earlier versions).The variables can also be selected from the latest list for earlier NC software versions. Thedata content in DB120 (default DB for variables) does not depend on the software status. Thatis, variables selected in an older software version need not be reselected when the softwareis upgraded.13.7.8 I/O modules (FM, CP modules)Additional packages for STEP 7 are generally required for more complex I/O modules (FM,CP modules). Support blocks (FC/FB) are provided in these additional packets. The blockscontain specific functions for operating the relevant module. These functions can beparameterized and called in the user program.P3: Basic PLC program for SINUMERIK 840D sl13.7 Starting up the PLC programBasic FunctionsFunction Manual, 01/2015, 6FC5397-0BP40-5BA2 831