PLC Basic Program Solution Line (P3 sl)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
iii
Contents
1 Brief Description ..................................................................................................................................... 1-1
2 Detailed Description................................................................................................................................ 2-1
2.1 Key PLC CPU data for 810D, 840D and 840Di ......................................................................... 2-1
2.2 Reserve resources (timers, counters, FC, FB, DB, I/O) ............................................................ 2-6
2.3 Starting up hardware configuration of PLC CPUs ..................................................................... 2-7
2.4 Starting up the PLC program ................................................................................................... 2-11
2.4.1 Installing the basic program for 840D ...................................................................................... 2-11
2.4.2 Application of basic program.................................................................................................... 2-11
2.4.3 Version codes .......................................................................................................................... 2-12
2.4.4 Machine program ..................................................................................................................... 2-13
2.4.5 Data backup............................................................................................................................. 2-13
2.4.6 PLC series start-up, PLC archives........................................................................................... 2-14
2.4.7 Software upgrades................................................................................................................... 2-16
2.4.8 I/O modules (FM, CP modules) ............................................................................................... 2-17
2.4.9 Troubleshooting ....................................................................................................................... 2-18
2.5 Linking PLC CPUs to 840D...................................................................................................... 2-19
2.5.1 General .................................................................................................................................... 2-19
2.5.2 Properties of PLC CPUs .......................................................................................................... 2-19
2.5.3 Interface on 840D with integrated PLC.................................................................................... 2-19
2.5.4 Diagnostic buffer on PLC ......................................................................................................... 2-22
2.6 Interface structure .................................................................................................................... 2-23
2.6.1 PLC/NCK interface................................................................................................................... 2-23
2.6.2 Interface PLC/HMI ................................................................................................................... 2-30
2.6.3 PLC/MCP/HHU interface ......................................................................................................... 2-33
2.7 Structure and functions of the basic program .......................................................................... 2-35
2.7.1 Start-up and synchronization of NCK PLC .............................................................................. 2-37
2.7.2 Cyclic operation (OB1)............................................................................................................. 2-37
2.7.3 Time-interrupt processing (OB 35)........................................................................................... 2-40
2.7.4 Process-interrupt processing (OB 40) ..................................................................................... 2-40
2.7.5 Diagnostic interrupt, module failure processing (OB 82, OB 86)............................................. 2-40
2.7.6 Response to NCK failure ......................................................................................................... 2-41
2.7.7 Functions of the basic program called from the user program ................................................ 2-42
2.7.8 Symbolic programming of user program with interface DB ..................................................... 2-45
2.7.9 M decoding acc. to list ............................................................................................................. 2-46
2.7.10 PLC machine data ................................................................................................................... 2-50
2.7.11 Configuring machine control panel, handheld unit................................................................... 2-54
2.7.12 Switchover of machine control panel, handheld unit ............................................................... 2-61
2.7.13 Special functions of the machine control panel ....................................................................... 2-63
2.8 SPL for Safety Integrated......................................................................................................... 2-63
2.9 Assignment overview ............................................................................................................... 2-64
2.9.1 Assignment: NCK/PLC interface.............................................................................................. 2-64
2.9.2 Assignment: FB/FC.................................................................................................................. 2-64