![background image](http://html1.mh-extra.com/html/omron/cx-simulator-1-9/cx-simulator-1-9_operation-manual_744207154.webp)
Task Debugging
Section 4-4
115
4-4 Task Debugging
One of the functions added in CS/CJ/CP-series PLCs is a concept of "task."
This section explains debugging a task using the CX-Simulator.
4-4-1 Execution Time and Count of Task
Execution Time and Count of Task
The [Task Control] window monitors execution time and count of each task.
The time and count are cleared in the Stop/Program mode.
This function is effective when redesigning so as to reduce the overall cycle
time by dividing a time-consuming task by the execute/non-execute condition
and controlling execute/wait of the task.
Confirming Upper Limit of Execution Time of Interrupt Task
When using the C200H Special I/O Unit or the SYSMAC BUS Remote I/O Unit,
the execution time of the interrupt task must not exceed 10 ms. If an interrupt
task is executed for more than 10 ms during refreshing, an interrupt task error
will occur ("Executed for more than 10 ms" error). Also, the execution time of
the power interruption task must be less than 10 ms (Power OFF Detection
Delay Time) regardless of units mounted.
Execution time of an interrupt task can be monitored with the task execution
time in the [Task Control].
Starting interrupt tasks successively during the program execution in [Task
Control] enables to monitor the execution time of interrupt tasks individually.
4-4-2 Task Execution Status
[Task Control] displays the execution status of each task (cyclic tasks and
interrupt tasks).
For a cyclic task, show four statuses of a cyclic task: Initial status, READY
status, RUN status, and WAIT status.
For an interrupt task, display “each interrupt task is enabled or disabled.” The
status of interrupt tasks are changed by the following instructions.
Name Instruction
word
Target Function
Interrupt task
Execution prohibit
DI
(693)
All interrupt tasks other than
Power OFF interrupt task
Used within a cyclic task and
prohibit all interrupt tasks other
than Power OFF interrupt task.
Interrupt task
Clear interrupt
mask
EI
(694)
All interrupt tasks other than
Power OFF interrupt task
Clear the interrupt mask for an
interrupt task masked by DI
instruction.
Masking set
MSKS
(690)
I/O interrupt task and sched-
uled interrupt task
Apply masking of initial setting
to an I/O interrupt task and a
scheduled interrupt task.
Note
Trying to start a masked interrupt task in the [Task Control] will not execute
the task.
Summary of Contents for CX-Simulator 1.9
Page 1: ...Cat No W366 E1 10 CX Simulator Ver 1 9 SYSMAC WS02 SIMC1 E OPERATION MANUAL...
Page 2: ......
Page 3: ...SYSMAC WS02 SIMC1 E CX Simulator Ver 1 9 Operation Manual Revised December 2009...
Page 24: ...xxv...
Page 30: ...xxxi...
Page 35: ...xxxvi...
Page 39: ......
Page 63: ...Comparison of the CX Simulator and SYSMAC CS CJ series PLCs Section 1 6 24...
Page 75: ...Installing and Uninstalling the Software Section 2 1 36...
Page 157: ...Task Debugging Section 4 4 118...
Page 195: ...Connection with Application Programs Section 7 2 156...
Page 225: ...Checking the Result Section 8 5 186...
Page 277: ...Other Functions Section 9 4 238...
Page 289: ...Other Tips for Troubleshooting Section 10 3 250...
Page 304: ......
Page 305: ......