The document is the advanced programming guide for Siemens' Sinumerik 840D, 840DI, and 810D CNC controls, detailing topics such as flexible NC programming, subprograms, macros, file management, and machine commands. It serves as a comprehensive manual for users, covering technical aspects necessary for effective programming and operation of these CNC machines. This edition reflects updates and provides insights into advanced features, functionalities, and best practices.