Basic logic functions: PLC basic program solution line (P3 sl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
3
Table of contents
1 Brief description......................................................................................................................................... 7
2 Detailed description ................................................................................................................................... 9
2.1 Key PLC CPU data for 810D, 840D and 840Di .............................................................................9
2.2 Reserve resources (timers, counters, FC, FB, DB, I/O) ..............................................................13
2.3 Starting up hardware configuration of PLC CPUs .......................................................................14
2.4 Starting up the PLC program .......................................................................................................18
2.4.1 Installing the basic program for 840D ..........................................................................................18
2.4.2 Application of basic program........................................................................................................19
2.4.3 Version codes ..............................................................................................................................20
2.4.4 Machine program .........................................................................................................................20
2.4.5 Data backup.................................................................................................................................21
2.4.6 PLC series start-up, PLC archives...............................................................................................21
2.4.7 Software upgrades.......................................................................................................................24
2.4.8 I/O modules (FM, CP modules) ...................................................................................................25
2.4.9 Troubleshooting ...........................................................................................................................26
2.5 Linking PLC CPUs to 840D..........................................................................................................27
2.5.1 General ........................................................................................................................................27
2.5.2 Properties of PLC CPUs ..............................................................................................................27
2.5.3 Interface on 840D with integrated PLC........................................................................................27
2.5.4 Diagnostic buffer on PLC .............................................................................................................30
2.6 Interface structure ........................................................................................................................31
2.6.1 PLC/NCK interface.......................................................................................................................31
2.6.2 Interface PLC/HMI .......................................................................................................................38
2.6.3 PLC/MCP/HHU interface .............................................................................................................43
2.7 Structure and functions of the basic program ..............................................................................46
2.7.1 Startup and synchronization of NCK PLC....................................................................................48
2.7.2 Cyclical mode (OB 1) ...................................................................................................................48
2.7.3 Time-interrupt processing (OB 35)...............................................................................................51
2.7.4 Process interrupt processing (OB 40)..........................................................................................51
2.7.5 Diagnostic interrupt, module failure processing (OB 82, OB 86).................................................51
2.7.6 Response to NCK failure .............................................................................................................52
2.7.7 Functions of the basic program called from the user program ....................................................54
2.7.8 Symbolic programming of user program with interface DB .........................................................58
2.7.9 M decoding acc. to list .................................................................................................................59
2.7.10 PLC machine data .......................................................................................................................63
2.7.11 Configuration machine control panel, handheld unit, direct keys ................................................68
2.7.12 Switchover of handheld device ....................................................................................................75
2.8 SPL for Safety Integrated.............................................................................................................76
2.9 Assignment overview ...................................................................................................................76
2.9.1 Assignment: NCK/PLC interface..................................................................................................76
2.9.2 Assignment: FB/FC......................................................................................................................76
2.9.3 Assignment: DB ...........................................................................................................................77