# Use of a Software Application to Generate a Sequence for Simulation Model Creation
## 3 Results and Discussion
### Console Application  
The first form of the software solution sought, validated for generating a program sequence for additional programming, was a console application. A console application is a computer program that does not use a graphical interface but a computer console, system console, terminal, or emulator. The console application uses the computer keyboard for control. The disadvantage of a console application is that it is intended primarily for the execution of automated tasks that do not require direct interaction with the user. The aim of this step was to verify the possibility of generating the code itself in the SimTalk program and applying it to the needs of the simulation model in the Technomatix Plant Simulation program. The console application was based on a simple flow diagram (Figure 5). Figure 5: Console application flow chart. The application thus created was designed to gradually guide the user through the input of the required data to the final generation of the sequence for the needs of additional programming in the form of a text file, which will consist of a program sequence in the SimTalk language. At the same time, the main advantage of the console application was exploited here, namely the creation of a large number of variables compared to the graphical solution. The whole application was built on a loop where the control variables (number of AGV sets, number of peripherals, and material transported) were set at the beginning. Subsequently, their unique names and other critical information had to be defined. As this was a console application, the resulting solution was not limited by space, but on the other hand, this solution offers less clarity. The console application was designed so that as soon as the application is launched. The codes are continuously written to these text files based on the defined requirements. The text files are continuously updated with the required sequences throughout the console application's runtime and are only finalized when the console application exits. In that way, the required program sequence was generated sequentially based on the user's requirements while maintaining the required structure and transcription of the SimTalk language. The application was developed in the Eclipse IDE for Java developers. The console application was created to allow a simple sequence to generate a certain number of AGV sets with a defined number of peripherals. Specifically, an enterprise virtual plant model was used to demonstrate the use of the console application to create a programming sequence for the purposes of additive programming. The model was created in part using the built-in functions of the individual blocks of Tecnotax Plant Simulation ver. 16.1 and partly by additional programming in the SimTalk programming language. The simulation model consisted of a garage where the logistic trains are located, a warehouse where the material load for production takes place, and a production area where the material is unloaded either on a conveyor truck or to the production equipment. A 3D view of the virtual enterprise operation model is shown in (Figure 6). From Figure 5, it can be seen that the simulation process starts by generating the mobile units, namely one tractor, three trolleys, and two types of material (red and blue) in the quantity of two, through a sequence written in the method block named Init (Figure 7). For this operation, the sequence was generated through the console application. After running the simulation, the logistics train dispatched to the warehouse loaded one unit of the material \"red\" on the 2 nd cart and one \"blue\" on the 3 rd cart. Such a simple model is difficult to create using only the blocks and functions that Tecnotax offers by default, such that all the specific requirements are met. Therefore, it was necessary to  
Figure 6: 3D model of virtual enterprise operation. apply additional programming activities via the object method, the container for miniature programs inserted into the model.