Download CPM1A Programmable Controllers Operation Manual

Transcript
The CPM1A Cycle
5-2
Section 5-2
The CPM1A Cycle
The overall flow of CPM1A operation is as shown in the following flowchart. The
CPM1A is initialized internally when the power is turned on. If no errors are
detected, the overseeing processes, program execution, I/O refreshing, and
Peripheral Device servicing are executed consecutively (cyclically). The average cycle time can be monitor from a Peripheral Device.
Power application
Initialization processes
Initialization
Check hardware and
Program Memory.
No
Check OK?
Overseeing
processes
Yes
Set error flags and
activate indicators.
ERROR or ALARM?
ERROR
(lit)
Preset cycle time
monitoring time.
ALARM
(flashing)
Execute user program.
End of program?
No
Program
execution
Yes
Check cycle time setting.
Minimum
cycle time set?
Yes
Cycle
time
No
Cycle time
processing
Wait until minimum cycle
time expires.
Compute cycle time.
Refresh input bits and
output terminals.
Service peripheral port.
I/O refreshing
Service
peripheral
port.
Note Initialization processes include clearing the IR, SR, and AR areas, presetting
system timers, and checking I/O Units.
108