61
Computing the Cycle Time
Section 2-7
2-7-2
Cycle Time Overview
The cycle time depends on the following conditions.
• Type and number of instructions in the user program (in all cyclic tasks
that are executed during a cycle, and within interrupt tasks for which the
execution conditions have been satisfied)
• Type and number of CP-series Expansion Units and Expansion I/O Units
• Use of protocol macros and the largest communications message
• Fixed cycle time setting in the PLC Setup
• Use of Ethernet and serial ports
• Fixed peripheral servicing time in the PLC Setup
Note
1.
The cycle time is not affected by the number of tasks that are used in the
user program. The tasks that affect the cycle time are those cyclic tasks
that are READY in the cycle.
2.
When the mode is switched from MONITOR mode to RUN mode, the cycle
time will be extended by 10 ms (this will not, however, take the cycle time
over its limit).
The cycle time is the total time required for the PLC to perform the five opera-
tions given in the following tables.
Cycle time = (1) + (2) + (3) + (4) + (5)
1: Overseeing
2: Program Execution
3: Cycle Time Calculation
4: I/O Refreshing
Details
Processing time and fluctuation cause
Checks the I/O bus and user program memory, checks for
battery errors, etc.
0.4 ms
Details
Processing time and fluctuation cause
Executes the user program, and calculates the total time
time taken for the instructions to execute the program.
Total instruction execution time
Details
Processing time and fluctuation cause
Waits for the specified cycle time to elapse when a minimum
(fixed) cycle time has been set in the PLC Setup.
Calculates the cycle time.
When the cycle time is not fixed, the time for step 3 is
approximately 0.
When the cycle time is fixed, the time for step 3 is the preset
fixed cycle time minus the actual cycle time ((1) + (2) + (4) +
(5)).
Details
Processing time and fluctuation cause
CPU Unit built-
in I/O and I/O
on CP-series
Expansion
Units and
Expansion I/O
Units
Outputs from the CPU Unit to the actual
outputs are refreshed first for each Unit,
and then inputs.
I/O refresh time for each Unit multiplied by the number of
Units used.
Summary of Contents for CP1L-EL20DR-D
Page 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Page 4: ...iv...
Page 10: ...x...
Page 22: ...xxii...
Page 34: ...xxxiv Software Licenses and Copyrights 7...
Page 192: ...158 Trial Operation and Debugging Section 5 3...
Page 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Page 666: ...632 Trouble Shooting Section 11 7...
Page 696: ...662 Standard Models Appendix A...
Page 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Page 836: ...802 PLC Setup Appendix G...
Page 838: ...804 TCP Status Transitions Appendix H...
Page 840: ...806 Ethernet Network Parameters Appendix I...
Page 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Page 844: ...810 Ethernet Specifications Appendix K...
Page 851: ...Index 817 work words 118 write protection 447...
Page 852: ...818 Index...
Page 854: ...820 Revision History...
Page 855: ......