PLC Basics MCQs — Set 4
10 practice questions on the PLC scan cycle — input scan, program execution, output update and scan-time calculations — with answers and explanations.
Q1. What is the correct order of the PLC scan cycle?
- (a) Update outputs, execute program, read inputs
- (b) Read inputs, execute program, update outputs, housekeeping
- (c) Execute program, read inputs, update outputs
- (d) Housekeeping, update outputs, read inputs
Answer: (b) Read inputs, execute program, update outputs, housekeeping — the PLC repeats this cycle continuously while it is in run mode.
Q2. What is meant by scan time?
- (a) The time taken to switch the PLC on
- (b) The time taken for one complete scan cycle
- (c) The time a timer takes to finish
- (d) The time taken to download the program
Answer: (b) The time taken for one complete scan cycle — typically a few milliseconds; shorter scan times mean faster response to inputs.
Q3. A program has 1,000 instructions and each takes 1 µs to execute. What is the program execution time?
- (a) 0.1 ms
- (b) 1 ms
- (c) 10 ms
- (d) 100 ms
Answer: (b) 1 ms — 1,000 × 1 µs = 1,000 µs = 1 ms.
Q4. A program has 2,000 instructions and each takes 0.5 µs to execute. What is the program execution time?
- (a) 0.5 ms
- (b) 1 ms
- (c) 2 ms
- (d) 4 ms
Answer: (b) 1 ms — 2,000 × 0.5 µs = 1,000 µs = 1 ms.
Q5. Program execution takes 4 ms and the I/O update takes 2 ms. What is the total scan time?
- (a) 2 ms
- (b) 4 ms
- (c) 6 ms
- (d) 8 ms
Answer: (c) 6 ms — total scan time = program execution + I/O update = 4 ms + 2 ms = 6 ms.
Q6. A program has 500 instructions and each takes 2 µs to execute. What is the program execution time?
- (a) 0.5 ms
- (b) 1 ms
- (c) 2 ms
- (d) 10 ms
Answer: (b) 1 ms — 500 × 2 µs = 1,000 µs = 1 ms.
Q7. A program has 2,500 instructions and each takes 2 µs to execute. What is the program execution time?
- (a) 1 ms
- (b) 2.5 ms
- (c) 5 ms
- (d) 10 ms
Answer: (c) 5 ms — 2,500 × 2 µs = 5,000 µs = 5 ms.
Q8. What is the job of the watchdog timer in a PLC?
- (a) To delay the outputs by a fixed time
- (b) To monitor the scan time and fault the PLC if the program takes too long to finish one scan
- (c) To count the products on a conveyor
- (d) To switch the PLC off at night
Answer: (b) To monitor the scan time and fault the PLC if the program takes too long to finish one scan — it catches a program stuck in a loop.
Q9. Why does a PLC output not change in the middle of a scan?
- (a) The output module is switched off during the scan
- (b) Outputs are written to the output image table during the program scan and transferred to the real outputs only at the end of the scan
- (c) The CPU is too slow
- (d) The program is not running yet
Answer: (b) Outputs are written to the output image table during the program scan and transferred to the real outputs only at the end of the scan — so all outputs change together, once per scan.
Q10. What happens to the scan time if the user program is made much longer?
- (a) Scan time stays the same
- (b) Scan time decreases
- (c) Scan time increases, so the PLC responds more slowly to inputs
- (d) The PLC stops scanning
Answer: (c) Scan time increases, so the PLC responds more slowly to inputs — more instructions take more time to execute in every scan.
Also read: Logic Gates Explained | Digital Electronics MCQs | All MCQ Topics