Building a program for simulation – Watlow LogicPro User Manual
Page 242
Chapter 14: Simulation
LogicPro User’s Guide
226
Watlow Anafaze
Doc.# 28002-00 Rev 3.00
Building a Program for Simulation
The LogicPro Simulation feature allows you to scan, step
through and view individual processes in several ways from
start to finish. LogicPro allows you to scan your program one
time, ten times, one hundred times or in a continuous (free
running) mode. You can also toggle all of your Boolean
variables, change constants and assign values to all variables.
This allow you to fully test your program and simulate various
operating conditions prior to downloading it to your resource.
When you are finished with your simulation you will need to
compile your program again before it is ready to download to
your target resource.
To start simulation:
1.
Select the
Simulation
menu.
2.
Select
Build All and Run
.
The
Compiler
dialog box will open, as LogicPro begins
to compile the program in the active window. See Figure
14.1 on page 227.
Next, a DOS window will open as your Borland C++
application compiles your code, see Figure 14.2 on page
227.
LogicPro returns you to the
Compiler
dialog box, if
there are no errors.
3.
Click
[OK]
. This will launch the simulation.
NOTE!
If an error occurred when you compiled LogicPro
still returns you to the Compiler dialog box, but
[OK]
will not be enabled. You must click cancel
and fix your program before proceeding.