Topic: DMD0211 Using the Debug View |
|
The Debug View is used to manage the debug operations in the Do-more controller. Debug operations only affect the ladder logic processing, the other activities of the controller such as handling external communications, reading and writing the I/O, etc. are unaffected.
Warning: because the Debug mode operations interrupt the normal ladder logic processing in the Do-more controller it is imperative that the programmer understands all of the risks and responsibilities inherent in manually taking control of the scan process.
The Debug View is opened by clicking the Debug button on the Online toolbar or selecting the Debug-> Debug View menu selection.
The Debug operations will have no effect unless the controller is in
RUN mode. Click the Debug button
to enable and disable the debug mode and the availability of the debug
operations. The status bar will change from 'Debug
Disabled' to
|
|
Manually Control the Scan (Pause, Single Scan, N-Scans)Placing the Do-more controller into Debug mode allows the programmer to take manual control of the scan using the following four operations:
|
|
Manually Enable and Disable StagesClick the Stages... button to invoke the Enable / Disable Stage dialog to manually enable and/or disable a Stage contained in a Program code-block of a project. The Enable Stage and Disable Stage operations here work like the Enable Stage (SGSET) and Disable Stage (SGRST) instructions respectively.
Stage Name: - Debug View operates at a Project level so the programmer must enter the fully qualified name of the Stage to Enable or Disable. A fully qualified name consist of the <Program Name>.<Stage Number>. Entering just the Stage number is not valid.
Nickname: - will display the nickname of the Stage if one exists.
The Status group displays the latest scan status of the Program and the Stage to be enabled or disabled.
Program Status: - indicates whether or not the Program was running on the last controller scan.
Stage Status: - indicates the current state (Enabled / Disabled) of the specified Stage.
Click the Enable button to Enable the specified Stage.
Click the Disable button to Disable the specified Stage.
Click the Close button to Exit the dialog.
|
|
Enable Debug Message LoggingClick the Message Dump button to enable the logging of the debug messages to the Network Message Viewer (Do-more Logger) application. The predefined system status bit $EnableMsgDump (ST36) is set ON, and from that time forward, whenever the Do-more controller generates a new ERR (system error message) or a new MSG (system notification) the controller will echo them to the Do-more Logger.
Disabling the Message dump will reset $EnableMsgDump.
If the Do-more Logger isn't running when the Message Dump button is clicked, the programmer will be prompted to launch it. Click the 'Remember my choice' option to skip this confirmation dialog the next time the Message Dump button is clicked.
|
|
Manually Force a Watchdog Error
Click the Watchdog... button to invoke a dialog that allows the programmer to test the Hardware Watchdog Timer and the Software Watchdog Timer functions.
Note: it is imperative that the programmer be fully aware of the implications of testing either of these Watchdog Timer before performing the test.
Click the OK button to generate the selected watchdog timeout error.
Click the Cancel button to exit.
As a safety precaution this confirmation dialog will be presented before the Software Watchdog Timeout is generated:
Click the Yes button to generate the Software Watchdog Timeout
Click the No button to exit..
As a safety precaution this confirmation dialog will be presented before the Hardware Watchdog Timeout is generated:
Click the Yes button to generate the Hardware Watchdog Timeout.
Click the No button to exit.
|
|
Manually Suspend and Unsuspend Tasks and ProgramsThe Suspended Tasks / Programs group is used to override programmatic control of whether a Program or Task will run as part of the current controller scan. Program or Task code-blocks that are suspended through this debug mode operation or by the Suspend Program or Task (SUSPEND) instruction will be displayed with a yellow background in the Project Browser.
Code blocks with an 'I' to the left of their name indicates it has been suspended by a SUSPEND instruction.
Code blocks with an 'D' to the left of their name indicates it has been suspended by the Debug View.
Code blocks with both a 'D' and an 'I' to the left of their name indicates it has been suspended by a SUSPEND instruction and the Debug View.
|
|
See Also:Making
Effective Use of Programs and Tasks
|
|