94
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
• Type and number of CJ-series Special I/O Units and CJ-series CPU Bus
Units
• Specific servicing for the following Special I/O Units
• Data link refreshing and the number of data link words for Controller
Link Units
• Remote I/O for DeviceNet and the number of remote I/O words
• Use of protocol macros and the largest communications message
• Socket services for specific control bits for Ethernet Units and the num-
ber of send/receive words
• Fixed cycle time setting in the PLC Setup
• Event servicing for CJ-series Special I/O Units, CJ-series CPU Bus Units,
and communications ports
• Use of USB 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
Details
Processing time and fluctuation cause
Checks the I/O bus and user program memory, checks for
battery errors, etc.
0.7 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)).
Summary of Contents for Sysmac CP1H
Page 2: ......
Page 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised October 2014...
Page 4: ...iv...
Page 10: ...x...
Page 18: ...xviii...
Page 22: ...xxii...
Page 34: ...xxxiv Conformance to EC Directives 6...
Page 76: ...42 Function Blocks Section 1 5...
Page 176: ...142 CP series Expansion I O Unit Wiring Section 3 6...
Page 372: ...338 Analog I O XA CPU Units Section 5 5...
Page 578: ...544 Trouble Shooting Section 8 7...
Page 622: ...588 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Page 668: ...634 Standard Models Appendix A...
Page 744: ...710 Auxiliary Area Allocations by Address Appendix D...
Page 771: ...737 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 772: ...738 Connections to Serial Communications Option Boards Appendix F...
Page 800: ...766 Specifications for External Power Supply Expansion Appendix H...
Page 806: ...772 Index W Work Area 165 work bits 165 work words 165 write protection 379...
Page 808: ...774 Revision History...
Page 809: ......