The CPM1A Cycle | 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 aver- age cycle time can be monitor from a Peripheral Device.
|
|
| Power application |
|
|
|
| Initialization processes |
|
|
|
| Check hardware and |
|
|
|
| Program Memory. |
|
|
| No | Check OK? |
|
|
|
|
| |
|
|
| Yes |
|
Set error flags and |
|
| Preset cycle time |
|
activate indicators. |
|
| monitoring time. |
|
| ALARM |
|
|
|
ERROR or ALARM? | (flashing) |
| Execute user program. |
|
|
|
|
| |
ERROR |
|
| End of program? | No |
|
|
| ||
|
|
|
| |
(lit) |
|
|
|
|
|
|
| Yes |
|
|
|
| Check cycle time set- |
|
|
|
| ting. |
|
|
|
| Minimum | No |
|
|
| cycle time set? |
|
|
|
| Yes |
|
|
|
| Wait until minimum cycle |
|
|
|
| time expires. |
|
|
|
| Compute cycle time. |
|
|
|
| Refresh input bits and |
|
|
|
| output terminals. |
|
|
|
| Service peripheral port. |
|
Initialization
Overseeing processes
Program execution
Cycle time
Cycle time processing
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.
112