SETDEBUG Command

Purpose

Switches the block to debug mode. In debug mode, the block executes only one command per scan period. In general, SAC processes all commands in a single scan, except in the cases where Wait commands are used.

NOTE: When the Program block is in debug mode, you can create a Data link in a picture with the field F_TV1 and view which command the block is executing. If the block encounters an error, you can see the command that generated the message.

To place the block into debug mode, insert the SETDEBUG command where you want the debug mode to begin, and then place the CLRDEBUG command where you want the debug mode to end. While in debug mode, the Program block sends the current step number to the enabled alarm services in its alarm areas.

Syntax

SETDEBUG