94
Computing the Cycle Time Section 2-7
Conditions
Calculation Example
2-7-6 Online Editing Cycle Time Extension
When online editing is executed to change the program from the CX-Program-
mer while the CPU Unit is operating in MONITOR mode, the CPU Unit will
momentarily suspend operation while the program is being changed. The
period of time that the cycle time is extended is determined by the following
conditions.
• Number of steps changed
• Editing operations (insert/delete/overwrite)
• Types of instructions
The cycle time extension for online editing is negligibly affected by the size of
task programs. If the maximum program size for a task is 10 Ksteps, the
online editing cycle time extension will be as follows:
When editing online, the cycle time will be extended by according to the edit-
ing that is performed. Be sure that the additional time will not adversely affect
system operation.
Note When there is one task, online editing is processed all in the cycle time follow-
ing the cycle in which online editing is executed (written). When there are mul-
tiple tasks (cyclic tasks and interrupt tasks), online editing is separated, so
that for n tasks, processing is executed over n to n ×2 cycles max.
Item Details
CP1L CP1W-40EDR
40-pt I/O Unit
1 Unit
User program 5 K steps LD instructions: 2.5 Ksteps,
OUT instructions: 2.5 Ksteps
USB port connection Yes and no
Fixed cycle time processing No
Serial port connection No
Other peripheral servicing No
Process name Calculation Processing time
USB port
connected
USB port not
connected
(1) Overseeing --- 0.4 ms 0.4 ms
(2) Program execution 0.55 µs × 2,500 + 1.1 µs
× 2,500
4.1 ms 4.1 ms
(3) Cycle time calculation (Minimum cycle time not
set)
0 ms 0 ms
(4) I/O refreshing 0.39 ms 0.39 ms 0.39 ms
(5) Peripheral servicing (Only USB port con-
nected)
0.1 ms 0 ms
Cycle time (1) + (2) + (3) + (4) + (5) 4.99 ms 4.89 ms
CPU Unit Increase in cycle time for online editing
CP1L CPU Unit Maximum: 16 ms, Normal: 12 ms
(for a program size of 10 Ksteps)