NX CAM Simulation Program Manager Realize innovation.
Program Manager - What is it? NX CAM Simulation now provides an integrated NC Code editor and Program Manager NX CAM integrated tool Program Manager (PM) can be used for Program file handling NC Code editing No longer need to switch between NX, Windows explorer or external Editor Get away from file handling on disk Saving the part file includes saving the current programs structure within the Program Manager* Included file extension filter mechanism can be used to avoid problems with invalid files on the disk Page 2 *With NX12.0.1 the content of main programs will be saved with the part file
Program Manager - Features and Functions Overview NC Code editor Breakpoint management Display all breakpoints Enable/Disable Set conditional and matching breakpoints Global Search File handling via: Context menu Drag and drop (inside PM and from file explorer) Syntax Check with detailed report Display all registered programs with their locations Page 3
Program Manager Another File Explorer? Program Manager is not another File Explorer, it s an NX integrated tool to manage all programs related to a CAM CSE Simulation setup IMPORTANT: Only the files which are registered in the Program Manager are used by ISV/CSE Saving the part includes saving the program structure in Program Manager (also when the PM was not used) Program Manager needs to be refreshed when doing manual file handling (add, move, rename, edit, etc.) on the disk Local files on disk are not touched when deleting files in Program Manager Page 4
Program Manager - How to start NX11/11.0.1? Start the Program Manager from within the Simulation Control Panel Page 5
Program Manager - How to start in NX11.0.2/NX12? The Program Manager can be started independently of ISV as a separate application: 1 Menu Tools Program Manager or 2 - Tools in Ribbon Menu 2 1 Page 6
Program Manager Register Programs How can I bring the Program Manager up to date for registered files? A Replace Machine causes a re-initialization of the Program Manager Available files on disk are reloaded New files on disk are added Missing files on disk are removed in PM structure Add, modify or delete the required files manually Important: ini files cannot be added but created or content can be imported A Reload from disk refreshes the file content only Post processed programs in program tree are displayed dynamically during execution Page 7
Program Manager Main Program Sources Sections Postprocessor/External Source The name of the first nodes (Postprocessor or External Source) depends on if the simulation is started internal (post processed) or with external machine code file Main-Programs node shows the available channels with its channel names of the machine External Source shows always all available channels to assign a program at any time (with NX12.0.1) Postprocessor Source shows only this channel where the NC code is created If the Postprocessor creates subprograms they will also be displayed in the Postprocessor section Page 8
Program Manager UGII_CAM_CSE_USER_DIR Node Sections extra location by env. 3 1 2 The UGII_CAM_CSE_USER_DIR node represents the folder on disk where the ENV points to This node is only available when the ENV is set The files which are registered and displayed can be used in ISV Ini Programs node displays the name of the channel where the available ini files are loaded Subprogram node contains the subprograms from subprog folder Cyc Archives node contains the cyc files from subprog folder 1 2 + 3 Page 9
Program Manager CAM Setup Node Sections CAM Setup The CAM Setup node represents the folder on disk where the CAM part file is located The files which are registered and displayed can be used in ISV Ini Programs node displays the names of the channels where the available ini files are loaded Context menu on nodes and program display can be used for file handling Subprograms node contains the subprograms from subprog folder Cyc Archives node contains the cyc files from subprog folder 1 2 3 1 2 + 3 Page 10
Program Manager Machine Node Sections Library Machine The Machine node represents the folder on disk where the cse driver files are located The files which are registered and displayed can be used in ISV Ini Programs node displays the name of the channel where the available ini files are loaded Subprograms node contains the subprograms from subprog folder Cyc Archives node contains the cyc files from subprog folder 1 2 3 Page 11 1 2 + 3
Program Manager Location order Who wins if same subprogram locates in different folders? 4 5 6 1 2 3 ENV folder (1) wins over CAM-Setup (2) CAM-Setup (2) wins over Machine (3) If a program is available in Subprograms (5) and Cyc Archives (6), then the file with the newest time stamp wins Page 12
Program Manager - Information Section Program Manager gives also an overview about breakpoints and their current state as well as the ability to search globally through all available programs Page 13
Program Manager Post Processor creates subprograms Use case: The post creates subprograms when starting CSE simulate from operation or program group (known as internal simulation). The Program Manager will show these subprograms under the node Postprocessor - Subprograms: Important rule: Post Processor must use the TCL routine MOM_start_subroutine <name_of_subprogram> with the subprogram name as parameter, as it will be called from the NC Code. Why?: To ensure a proper file refresh in Program Manager, the post needs to let CSE know, which NC Code belongs to the subprogram. CSE will use these data on the fly and will no longer rely on file on the disk (files on disk could be out of date). Page 14
Program Manager File/Program registration (1) Use case: Calling a subprogram in NC Code Important rule: A subprogram can be called from NC Code when: this subprogram is displayed in Program Manager or when it exists in one of the three locations (CAM-Setup, Machine, ENV folder) on disk Why?: Only the files which are registered in the Program Manager are used by ISV/CSE Program Manager knows the following three locations for calling subprograms: CAM-Setup Machine ENV folder PM registers available program files automatically, from these locations, when they are called from NC code Page 15
Program Manager File/Program registration (2) Use case: Adding a subprogram to Program Manager manually Important rule: It is sufficient to add the program file in PM to use it in ISV/CSE wherever this file comes from This file will be marked as modified as long as it is not saved This file will be copied to the associated folder (CAM Setup, Machine or ENV) on disk when the program gets saved Why?: Program Manager knows the following three locations for calling call subprograms: CAM-Setup Machine ENV folder Page 16