Download Print this page

Danfoss MCO 305 Design Manual page 58

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
Debugging
Single step processing (Tracing) is particularly
suitable for testing newly developed programs and
can be helpful when searching for errors.
Prepare Singlestep
Click on Development
the program opened is prepared for the debug
mode: It is compiled and a debug file is produced,
the program is loaded into the FC 300 and all exe-
cutable program lines are marked by blue dots.
Now, also the respective menu items are activated.
Set Breakpoints
By double-clicking you can set a breakpoint before every program line marked with a blue dot. This will be
highlighted in red. The program execution will then stop before this program line – being highlighted in
yellow – is executed.
By further double-clicking the red breakpoints are changed again into blue markings for the program lines
which shall be skipped while tracing, i.e. no break in debug mode.
NB!:
Depending on the speed of the program execution and communication the number of breakpoints
should be limited to a reasonable amount. A maximum of 10 breakpoints are allowed.
NB!:
ON PERIOD functions should be deactivated during debugging, since the internal timer doesn't
stop with Singlestep. The program tries to recover the ON PERIOD features later on and this could
be problematic.
Read Variables or Change Variables Online
In the debug mode the current value of the variab-
les after the program execution can be read. Click
on the variable with the
the value is displayed until you move the mouse
cursor again.
In the debug mode the variables can be changed during program execution. Please observe that such a
change should also be considered for the program. Click on the variable with the
set the desired value in the following field.
Go (Debug) and Singlestep
The program execution stops at the first breakpoint and waits for your input:
Click on Development
Or click on Development
By pressing [F9] the program will then stop before the next program line, by pressing [F5] before each
breakpoint.
Interrupt Program Execution in the Debug Mode
Click on Development
doing so, it is possible that active motion processes could be ended prematurely.
NB!:
Braking is done with the maximum deceleration permitted.
Then, the cursor is in the program line which should be executed next. You can continue with
Development
58
__ PC Software Interface __
Prepare Singlestep and
left mouse button and
Singlestep or press [F9] in order to execute the next program line.
Execute or press [F5] in order to process the program until the next breakpoint.
Break or press [Esc] in order to immediately abort the program execution. When
Execute [F5] or
Singlestep [F9].
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
right mouse button and

Advertisement

loading