Table of Contents

MP STUDIO 2 Phase 8 · Simulation

한국어 | English

Simulation runs the ladder on a virtual device on your PC, without real hardware. You can turn inputs on and off yourself and watch the outputs, timers and counters, which makes it a good way to check a program before downloading it to the device.

Figure 1. The screen during simulation

① The simulation bar, ② a purple dashed frame and ③ the current values in the Inspector are shown. The device pill shows Monitoring · SIM.

Starting and Stopping

  1. Click Simulate in the top band or select Run → Simulation.
  2. The simulation bar appears above the canvas, and a purple dashed frame is shown around the canvas.
  3. To stop, click Stop simulation at the right end of the bar, or click Simulate again.

Simulation and device monitoring cannot run at the same time. Turning on simulation while monitoring turns monitoring off.

Simulation Bar

Figure 2. The simulation bar

If the program has such cells, a virtual sensor cell(s) button and a cell(s) not simulated button, each with the number of cells, appear at the right end of the bar. Click one to go to those cells in turn.

Changing Inputs

Figure 3. Input P0 turned on, switching output P32 on

In Figure 3, ① the P0 chip was turned on, so ② the P0 contact carries power, and output P32 turned on, so ③ the P32 self-holding contact has also changed to the power-flow color. Output coils and wires are shown in the same power-flow color as in monitoring, and the Current value in the Inspector shows the value. Input chips that are forced also show a force mark.

Virtual Sensors

Function cells that read signals from outside the device, such as ADC and NTEMP, work as virtual sensors and are shown with a dotted pattern. Click the virtual sensor cell(s) button on the bar to go to those cells in turn. Click a virtual sensor cell, or put the cursor on it in the canvas and press Enter, to open the Write Value to Memory window for the OUT address of that function. The value you enter is reflected in the ladder from the next scan.

Figure 4. Virtual sensor cells (ADC and NTEMP) with a dotted pattern, and the virtual sensor button at the right end of the bar

The value write window works as described in Phase 7 · Write Value to Memory.

What Simulation Cannot Check

The simulator calculates the behavior of the device on your PC. Check the following on the real device:

Figure 5. A cell marked as not simulated (FDPWM), and the not-simulated button at the right end of the bar

If JMP repeats endlessly and a scan never finishes, the simulation halts and the reason is shown.

← Back to the MP STUDIO 2 User Manual