Testing your Project without Connecting the Hardware

You can test your program in simulation mode. No hardware is required for simulation mode.

  1. From the Online menu, select Simulation Mode.

    ../_images/3242c285a765ff8f0a33139000f5bd35
  2. From the Online menu, select Login.

    You can see that Simulation Mode is checked.

    ../_images/1c3a9040a777896f0a33139001780cf6

    In the status bar ONLINE and SIM are highlighted in black color.

    ../_images/d952847bb6d5b63b0a331390015cfea5
  3. From the Resources register card, double-click Global Variables ‣ OBIO_Module_Mapping <R>.

    In work space a window opens. The window shows all declared inputs and outputs.

    ../_images/9649856ab5d44e790a33139001fc6e95

    You see the status of every input and output. FALSE is highlighted on black background. TRUE is highlighted on blue background.

  4. Simulate the Starting of the CPU

    From the Online menu, select Run.

    ../_images/e24cfc13a779db740a331390002e10b4

    The status of DO01 changes from FALSE to TRUE.

    ../_images/3b350a76b5f632820a33139000c4a3c3
  5. Change the Status of an Input

    Double-click FALSE of input DI04 and input DI05.

    The change value is shown in green color behind FALSE.

    ../_images/9424dd6db5fb50fa0a33139000b07880
  6. From the Online menu, select Write Values or Force Values.

    Write Values: One time effect.

    Force Values: Writes the value in every program cycle.

    ../_images/233859bdb602eab90a33139001210d6b

    The status of the inputs and outputs is changed.

    ../_images/7cb7ae43b609edc50a33139000510dba

Stop Simulation Mode

  1. From the Online menu, select Logout.

  2. From the Online menu, select Simulation Mode.

    Simulation Mode is unchecked.