13.16.2.3 Startup, installationThe Windows application "NC Var selector" is installed using the SETUP program suppliedwith the package.13.17 Block descriptions13.17.1 FB1: RUN_UP - basic program, start sectionFunctionThe synchronization of NC and PLC is performed during startup. The data blocks for the NC/PLC user interface are created based on the NC configuration defined via machine data andthe basic program parameters are verified for plausibility. In the event of an error, FB1 passesan error identifier to the diagnostic buffer and switches the PLC to the stop state."Restart" start-up modeThe integrated PLC only supports the start-up mode "Restart". After the basic systeminitialization, the organization block OB100 "Restart" is always run through first, followed byOB1 "Cyclic mode".Input parametersFor parameterizing the basic program, only the respective relevant parameters of the functionblock FB1 must be written with user-specific values. The preset values in the instance datablock DB7 of the FB1 do not need to be assigned. The function block FB1 must only be calledin the organization block OB100.Output parametersThe output parameters of function block FB1 can also be read from the cyclical part of thebasic program. Two options are available for this purpose:1. Direct access to the instance data block DB7 of FB1 in symbolic form.Example: "L gp_par.MaxChan", with "gp_par" as the symbolic name of DB72. A bit memory is assigned to an output parameter when FB1 is parameterized. The bitmemory is then read in the basic program in order to determine the value of the outputparameter.Example: "MaxChan":= MW 20NoteFor assigning the FB1 parameters for MCP and BHG, see "Configuration machine controlpanel, handheld unit, direct keys (Page 867) ".P3: Basic PLC program for SINUMERIK 840D sl13.17 Block descriptionsBasic Functions914 Function Manual, 01/2015, 6FC5397-0BP40-5BA2