1. Program Execution Mode Selection
To choose the program execution mode for the emulation PLC, the S7-PLCSIM application includes a "Program Execution Mode" shortcut button. This allows users to easily switch between different execution modes directly from the main interface. The layout of the program execution mode buttons is shown in Figure 14-5.1. From left to right, the buttons correspond to: single cycle scanning mode, continuous cycle scanning mode, PLC pause mode, and back to single cycle scanning mode. It also includes all timer reset modes. Clicking these buttons will activate the simulated object one by one.
DongGuan BoFan Technology Co.,Ltd. , https://www.ufriendcc.com
When the single cycle scan mode is selected, the CPU runs just one scan cycle. Users can repeat this by clicking the "Single Cycle Scan Mode" shortcut or by selecting "Execute > Next Scan" from the menu. In continuous cycle mode, the simulation behaves like a real PLC operating normally. Regardless of the mode, users can pause the PLC program by clicking the "PLC Pause Mode" button (Pause). Additionally, the execution mode can also be changed via the "Execute" menu.
2. Recording and Playback
To start recording or playback, click the “Record/Playback†shortcut button (as shown in Figure 14-5.2), or go to the "Tools" menu and select "Record/Playback". This opens the Record/Playback toolbar as displayed in Figure 14-5.2.
The "Record/Playback" toolbar functions similarly to a recorder. It allows users to record the simulation process and save it as a text file. You can then replay the recorded process at different speeds. During playback, you can step through events that occurred during the program execution, making it easier to analyze and debug.