Contents   
  PLC Basic Program Solution Line (P3 sl) 
iv  Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0 
2.9.3  Assignment: DB ....................................................................................................................... 2-64 
2.9.4  Assignment: Timers ................................................................................................................. 2-66 
2.10  Memory requirements of basic PLC program for 810D, 840D................................................. 2-66 
2.11  General conditions and NC-VAR_Selector .............................................................................. 2-69 
2.11.1  Supplementary conditions........................................................................................................ 2-69 
2.11.1.1  Programming and parameterizing tools................................................................................... 2-69 
2.11.1.2  SIMATIC documentation required............................................................................................ 2-71 
2.11.1.3  Relevant SINUMERIK documents ........................................................................................... 2-71 
2.11.2  NC VAR selector ...................................................................................................................... 2-72 
2.11.2.1  Overview .................................................................................................................................. 2-72 
2.11.2.2  Description of functions............................................................................................................ 2-74 
2.11.2.3  Start-up, installation ................................................................................................................. 2-84 
2.12  Block descriptions .................................................................................................................... 2-84 
2.12.1  FB 1: RUN_UP Basic program, start-up section...................................................................... 2-84 
2.12.2  FB 2: Read GET NC variable................................................................................................... 2-92 
2.12.3  FB 3: PUT write NC variables .................................................................................................. 2-99 
2.12.4  FB 4: PI_SERV General PI services ...................................................................................... 2-106 
2.12.5  FB 5: GETGUD read GUD variable ....................................................................................... 2-129 
2.12.6  FB 7: PI_SERV2 General PI services .................................................................................... 2-134 
2.12.7  FB 9: M : N operating-unit switchover.................................................................................... 2-138 
2.12.8  FB 10: Safety relay (SI relay)................................................................................................. 2-143 
2.12.9  FB 11: Brake test ................................................................................................................... 2-146 
2.12.10  FB 29: Signal recorder and data trigger diagnostics.............................................................. 2-151 
2.12.11  FC 2: GP_HP Basic program, cyclic section.......................................................................... 2-154 
2.12.12  FC 3: GP_PRAL Basic program, interrupt-driven section...................................................... 2-156 
2.12.13  FC 5: GP_DIAG Basic program, diagnostic alarm, and module failure ................................. 2-158 
2.12.14  FC 7: TM_REV Transfer block for tool change with revolver................................................. 2-160 
2.12.15  FC 8: TM_TRANS transfer block for tool management ......................................................... 2-164 
2.12.16  FC 9: ASUB start-up of asynchronous subprograms............................................................. 2-171 
2.12.17  FC 10: AL_MSG error and operating messages.................................................................... 2-174 
2.12.18  FC 12: AUXFU call interface for user with auxiliary functions ............................................... 2-176 
2.12.19  FC 13: BHGDisp Display control for handheld unit................................................................ 2-177 
2.12.20  FC 17: YDelta star/delta changeover..................................................................................... 2-180 
2.12.21  FC 18: SpinCtrl spindle control .............................................................................................. 2-183 
2.12.22  FC 19: MCP_IFM transmission of MCP signals to interface.................................................. 2-194 
2.12.23  FC 21: transfer PLC NCK data exchange.............................................................................. 2-201 
2.12.24  FC 22: TM_DIR Direction selection for tool management ..................................................... 2-208 
2.12.25  FC 24: MCP_IFM2 transmission of MCP signals to interface................................................ 2-210 
2.12.26  FC 25: MCP_IFT transfer of MCP/OP signals to interface .................................................... 2-214 
2.12.27  FC 26: HPU_MCP Transfer of HPU/HT6 signals to the interface.......................................... 2-217 
2.12.27.1 MCP selection signals to the user interface........................................................................... 2-219 
2.12.27.2 Checkback signals from user interface for controlling displays ............................................. 2-221 
2.12.28  FC 19, FC 24, FC 25, FC 26 source code description........................................................... 2-221 
2.12.29  Signal/data descriptions ......................................................................................................... 2-223 
2.12.29.1 Interface signals NCK/PLC, MMC/PLC, MCP/PLC ............................................................... 2-223 
2.12.29.2 Decoded M signals................................................................................................................. 2-223 
2.12.29.3 G Functions............................................................................................................................ 2-225 
2.12.29.4 Message signals in DB 2........................................................................................................ 2-226 
2.12.30  Useful Tips on Programming with STEP 7............................................................................. 2-229 
2.12.30.1 General................................................................................................................................... 2-229 
2.12.30.2 Copying data .......................................................................................................................... 2-229 
2.12.30.3 ANY and POINTER................................................................................................................ 2-229