13.7.3 Version codesBasic programThe version of the basic program is displayed on the Version screen of the user interface alongwith the controller type.The controller type is encoded as follows:Leftjustified decade of DB17.DBD0 (byte 0) Controller type03 SINUMERIK 840D sl (NCU 7x0)User programUsers can also display their own PLC version codes in the Version screen. For this purpose,a data of type STRING containing a maximum of 54 characters must be defined in any datablock. The data can contain a text of the user's choice. The parameterization on this string isdone via a pointer on FB1. For this, the data block must be defined symbolically.See also section "block descriptions" > "FB1: RUN_UP - basic program, start section(Page 914) ".13.7.4 Machine programThe machine manufacturer creates the machine program using the library routines suppliedwith the basic program. The machine program contains the logic operations and sequenceson the machine. The interface signals to the NC are also controlled in this program. Morecomplex communication functions with the NCK, e.g. read/write NC data, tool-managementacknowledgments, etc., are activated and executed via blocks FCs and FBs of the basic-program).The machine program can be created in various STEP 7 creation languages, e.g. AWL, KOP,FUP, S7-HIGRAPH, S7GRAPH, SCL. The complete machine program must be generated andcompiled in the correct sequence.This means that blocks that are called by other blocks must generally be compiled beforethese blocks.If blocks that are called by other blocks are subsequently modified in the interface(VAR_INPUT, VAR_OUTPUT, VAR_IN_OUT, VAR) as the program is developed, then the callblock and all blocks associated with it must be compiled again. This general procedure appliesanalogously to instance data blocks for FBs. If these sequence of operations is not maintained,time-stamp conflicts occur when the data retranslated into STEP 7. As such, the recompilabilityof the blocks is not ensured and with the function "Status of block" unnecesary conflicts canalso appear. It is, moreover, advisable to generate blocks in ASCIISTL by means of the STEP7 editor when they have been created in Ladder Diagram or in single statements (incrementalmode).P3: Basic PLC program for SINUMERIK 840D sl13.7 Starting up the PLC programBasic FunctionsFunction Manual, 01/2015, 6FC5397-0BP40-5BA2 827