Tutorials Fig. 18: Figure 1: Creation of a Simulation PLC Project via Context menu Fig. 19: Figure 2: Selection of the PLC target sytem A template PLC project can be created via the menu item 'Edit' --> 'Generate simulation PLC project'. This template is created from the currently integrated original PLC projects. The following components of the original project(s) are considered and possibly adopted in the simulation PLC project. Libraries that are in the standard PLC control library path ("[INSTALLATIONSPFAD_PATH]\Plc\Lib"] All allocated input and output symbols (%I, %Q) of the original PLC projects are adopted in the simulation project.
Inputs however are created as outputs and according to the rules defined in the table. Permanently allocated, universal variables and block variables as well as VAR_CONFIGs are used as symbols (also see ' Standard mappings [ } 35] '). TS1110 32 Version: 1.0 Original PLC symbol Device I/ O Signal direc- tion Simulation PLC symbol Description 1 VAR INPUT _ Allocation (%I) Input VAR OUTPUT (%O) _ A device delivers a signal to the PLC, e.g. an "On" switch. In the simulation mode, the simulation PLC delivers the switch position via an output symbol to the original PLC. 2 VAR OUTPUT _ Allocation %Q Output --> VAR INPUT (%I) _ A block output signal is transmitted to a device, e.g.
a 'bRunning' flag to a light 3 VAR INPUT _ Allocation %Q Output --> VAR OUTPUT (%I) _ The symbol specifies the interface to a device input. The block is not usually filled with code