Basic logic functions: PLC Basic program powerline (P3 pl)
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, FC, FB, DB, I/O) ..............................................................................16
2.3 Starting up hardware configuration of PLC CPUs .......................................................................17
2.4 Starting up the PLC program .......................................................................................................22
2.4.1 Installing the basic program for 810D, 840D ...............................................................................22
2.4.2 Application of basic program........................................................................................................24
2.4.3 Version codes ..............................................................................................................................25
2.4.4 Machine program .........................................................................................................................25
2.4.5 Data backup.................................................................................................................................26
2.4.6 PLC series startup, PLC archives:...............................................................................................26
2.4.7 Software upgrades.......................................................................................................................28
2.4.8 I/O modules (FM, CP modules) ...................................................................................................29
2.4.9 Troubleshooting ...........................................................................................................................30
2.5 Linking PLC CPUs to 810D, 840D...............................................................................................31
2.5.1 General ........................................................................................................................................31
2.5.2 Properties of PLC CPUs ..............................................................................................................31
2.5.3 Interface on 810D and 840D with integrated PLC .......................................................................32
2.5.4 Diagnostic buffer on PLC .............................................................................................................34
2.6 Interface structure ........................................................................................................................36
2.6.1 General ........................................................................................................................................36
2.6.2 PLC/NCK interface.......................................................................................................................36
2.6.3 Interface PLC/HMI .......................................................................................................................42
2.6.4 PLC/MCP/HHU interface .............................................................................................................45
2.7 Structure and functions of the basic program ..............................................................................49
2.7.1 General ........................................................................................................................................49
2.7.2 Startup and synchronization of NCK PLC....................................................................................51
2.7.3 Cyclic operation (OB1).................................................................................................................51
2.7.4 Time-alarm processing (OB 35)...................................................................................................54
2.7.5 Process interrupt processing (OB 40)..........................................................................................54
2.7.6 Response to NC failure................................................................................................................54
2.7.7 Functions of the basic program called from the user program ....................................................56
2.7.8 Symbolic programming of user program with interface DB .........................................................59
2.7.9 M decoding acc. to list .................................................................................................................60
2.7.10 PLC machine data .......................................................................................................................65
2.7.11 Configuration of machine control panel, handheld unit ...............................................................69
2.8 SPL for Safety Integrated.............................................................................................................78
2.9 Assignment overview ...................................................................................................................78
2.9.1 Assignment: NC/PLC interface ....................................................................................................78
2.9.2 Assignment: FB/FC......................................................................................................................78
2.9.3 Assignment: DB ...........................................................................................................................79