PLC Scan Time Calculator
t_total = t_io + t_logic + t_comms
Quick answer: This calculator solves t_total = t_io + t_logic + t_comms for Total Scan Time. With I/O Scan Time 44 ms, Logic Execution Time 94 ms, Communications Time 9.4 ms, the result is 147.4 ms. It solves in 4 directions, so you can enter the values you have and get the one you need.
Calculator
Loading calculator…
Formula
t_total = t_io + t_logic + t_comms
Description
A PLC (Programmable Logic Controller) executes its program in a cyclic scan consisting of three main phases: reading all inputs, executing the user logic program, and updating outputs and handling communications. The total scan time determines the worst-case response latency of the control system. An input change occurring just after the input scan phase will not be processed until the next cycle, resulting in a maximum response time of nearly two full scan cycles. Fast processes like high-speed counting or motion control may require dedicated hardware interrupts rather than relying on the normal scan cycle.
Variables
| Symbol | Meaning |
|---|---|
| t_total | Total scan cycle time (s) |
| t_io | Time to read inputs and write outputs (s) |
| t_logic | Time to execute the user program (s) |
| t_comms | Time for network communication and housekeeping (s) |
Practical Notes
Typical PLC scan times range from 1-50 ms depending on program size and I/O count. Modern PLCs offer periodic tasks with fixed execution rates for time-critical control loops, event-driven tasks triggered by interrupts, and background tasks for non-critical housekeeping. Watchdog timers detect scan time overruns that indicate program errors or excessive load.
Symbols and units
| Symbol | Default unit | Accepted units |
|---|---|---|
| Total Scan Time | ms | ps, ns, µs, ms, s, min, h |
| I/O Scan Time | ms | ps, ns, µs, ms, s, min, h |
| Logic Execution Time | ms | ps, ns, µs, ms, s, min, h |
| Communications Time | ms | ps, ns, µs, ms, s, min, h |
Worked examples
| Given | Result | |
|---|---|---|
| Minimum range | I/O Scan Time 0.22 ms, Logic Execution Time 0.47 ms, Communications Time 47 µs | Total Scan Time = 0.737 ms |
| Low range | I/O Scan Time 2.2 ms, Logic Execution Time 4.7 ms, Communications Time 0.47 ms | Total Scan Time = 7.37 ms |
| Typical | I/O Scan Time 44 ms, Logic Execution Time 94 ms, Communications Time 9.4 ms | Total Scan Time = 147.4 ms |
| High range | I/O Scan Time 1.1 s, Logic Execution Time 2.35 s, Communications Time 0.235 s | Total Scan Time = 3.685 s |
| Maximum range | I/O Scan Time 11 s, Logic Execution Time 23.5 s, Communications Time 2.35 s | Total Scan Time = 36.85 s |
Solving for each variable
| Solve for | Given | Result |
|---|---|---|
| Total Scan Time | I/O Scan Time 0.22 ms, Logic Execution Time 0.47 ms, Communications Time 47 µs | 0.737 ms |
| I/O Scan Time | Total Scan Time 1 ms, Logic Execution Time 0.22 ms, Communications Time 100 µs | 0.68 ms |
| Logic Execution Time | Total Scan Time 1 ms, I/O Scan Time 0.47 ms, Communications Time 100 µs | 0.43 ms |
| Communications Time | Total Scan Time 1 ms, I/O Scan Time 0.47 ms, Logic Execution Time 0.22 ms | 0.31 ms |
How Total Scan Time changes with I/O Scan Time
| I/O Scan Time (input) | Total Scan Time (result) |
|---|---|
| 4.4 ms | 107.8 ms |
| 11 ms | 114.4 ms |
| 22 ms | 125.4 ms |
| 33 ms | 136.4 ms |
| 44 ms | 147.4 ms |
| 66 ms | 0.1694 s |
| 88 ms | 0.1914 s |
| 0.176 s | 0.2794 s |
| 0.308 s | 0.4114 s |
| 0.44 s | 0.5434 s |
The same result in other units
| Unit | Value |
|---|---|
| µs | 147400 |
| ms | 147.4 |
| s | 0.1474 |
| min | 0.002457 |
Embed this calculator
Paste this into any page. It keeps working when this page updates, and credits the source.
Frequently asked questions
How do you calculate PLC Scan Time?
Use t_total = t_io + t_logic + t_comms. With I/O Scan Time 44 ms, Logic Execution Time 94 ms, Communications Time 9.4 ms, Total Scan Time works out to 147.4 ms.
What is the formula for PLC Scan Time?
The formula is t_total = t_io + t_logic + t_comms. A PLC (Programmable Logic Controller) executes its program in a cyclic scan consisting of three main phases: reading all inputs, executing the user logic program, and updating outputs and handling communications.
How do you find I/O Scan Time when you know the other values?
Rearrange for I/O Scan Time: with Total Scan Time 1 ms, Logic Execution Time 0.22 ms, Communications Time 100 µs, I/O Scan Time is 0.68 ms.
How do you find Logic Execution Time when you know the other values?
Rearrange for Logic Execution Time: with Total Scan Time 1 ms, I/O Scan Time 0.47 ms, Communications Time 100 µs, Logic Execution Time is 0.43 ms.
What units does PLC Scan Time use?
Total Scan Time is shown in µs, ms, s, min. Values are held in SI base units internally, so you can mix prefixes without converting by hand.
What does t_total mean in the PLC Scan Time formula?
t_total is Total scan cycle time (s).
What should I watch out for when using PLC Scan Time?
Typical PLC scan times range from 1-50 ms depending on program size and I/O count. Modern PLCs offer periodic tasks with fixed execution rates for time-critical control loops, event-driven tasks triggered by interrupts, and background tasks for non-critical housekeeping. Watchdog timers detect scan time overruns that indicate program errors or excessive load.