omron — Parameters

WATCH monitor command WATCH monitor command Syntax WATCH @task:program expression Function Enable or disable the process of having a program task watch for an expression to change value during program execution. If monitoring is enabled, the program task immediately stops executing if the expression changes value. Usage Considerations Having a watchpoint enabled substantially slows execution of the program task. Thus, watchpoints should be used only during debugging sessions for programs that are time- critical. Automatic variables and subroutine arguments cannot be used in the expression parameter.

Parameters task Optional integer that specifies the program task that is to monitor (or stop monitoring) an expression value. If monitoring is enabled, this task will stop immediately if the expression changes value. NOTE: The number of program tasks available with a particular system depends on the system type and configuration. See the eV+ Language User's Guide for details. This parameter is also used to determine the context for variables in the expression. If "task" is omitted, the colon (":") must also be omitted. Then, the main program task 0 is used. program Optional program name that specifies the context for any variables in the expression.

If "program" is omitted, the colon (":") must also be omitted. Then, the program on top of the stack specified by "task>" is used. See Variable Context for details on specifying context. expression Optional real-valued expression. If this parameter is omitted, the monitoring of watchpoints by the specified task is canceled. If an expression is specified, it is the expression evaluated by the watchpoint. All the variables in the expression are assumed to be in the context eV+Operating System Reference Guide, 2.x,18321-000 Rev A Page 188