Scan Time
Sets error flags and
lights indicator
1, 2, 3...
NO
ERROR or ALARM
ALARM
ERROR
The first three operations immediately after power application are performed
once each time the PC is turned on. The then on the operations shown
above are performed in cyclic fashion, with each cycle forming one scan. The
scan time is the time that is required for the CPU to complete one of these
cycles. This cycle includes four types of operation.
1.
Overseeing
2.
Input/Output refreshing
3.
Peripheral Device servicing
4.
Instruction execution
Scan time = Overseeing time + Input/output refreshing + Peripheral
Device servicing time + Instruction execution time
Power application
Clears IR area and
resets all timers
Checks I/O Unit
connections
Resets watchdog
timer
Checks hardware and
Program Memory
Check OK?
YES
Services Peripheral
Devices
Resets watchdog timer
Executes program
Resets watchdog timer
Input and output
refreshing
Section 6–2
97