Running a Simulation

You can debug the program of the external controller by checking the behavior of the virtual cell.

The debugger main functionalities are:


  • Executing a simulation continuously or step by step.

  • Reading and writing the values and states of any port or signal.

  • Adding breakpoints to pause the simulation at a specific step or if a port or a signal is emitted.


Before you begin:
  • The System and Device Designer workbench should be opened.
  • A 3D cell must be built.
  1. Open an organizational resource (see a typical example below).



  2. Click the root SliderCell-Debug to edit its logic tree.



  3. Select the Main block in the tree and select Play in the PLM compass.

    The program is compiled and the simulation toolbar and window appear:

    The Signals Monitoring window displays the structure of the cell logic components.

  4. Click Resume in the compass control bar to launch the simulation.

  5. Expand the Main block to view the components.



  6. Click Show/Hide Logics Monitoring in the Simulation Tools toolbar. The Logics Monitoring window displays the connection between the sub-resource logics.



  7. Double-click the Push Button instance to display its behavior.



    In this example, the instance is an SFC+ block, so two new tabs are displayed: one to edit the block, one to edit the SFC+ graph.

    In the SFC+ tab, blue items have been processed (actions) or evaluated (transitions) the previous cycle. The yellow arrow points the next active step.

  8. In this example, to activate the slider, you must click the green button in the 3D view. The order is sent to the controller which forwards it to the slider. The slider starts moving.



    You can see in the Signals Monitoring window that the slider task Unload is being processed.



    The controller has correctly transmitted the order to the slider.

  9. Click in the S2 step to add a breakpoint.



    A red dot is added to the step. When the slider reaches the end, the simulation is set to pause.

  10. Expand the Slider instance in the Signals Monitoring window, you can see that the breakpoint is added to the step S2.



  11. Click the tab Breakpoint in the Signals Monitoring window, you can see the list of the current breakpoints.



  12. To remove the breakpoint, click the red dot in any view.

  13. You can use the watch lists to display a set of ports and/or signals. Right-click a port or a signal in the Simulation tab of the Signals Monitoring window and select Insert 'Start' in > WatchList1.



    The same commands are available in the Simulation and the Watchlist tab.

  14. Select Play in the PLM compass to stop the simulation.