Cpm1/Cpm1A Cycle Time - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

8-1-2 CPM1/CPM1A Cycle Time

Process
Overseeing
Program execution
Cycle time calculation
I/O refresh
Peripheral port servicing
Cycle Time and Operations
Cycle time
10 ms or longer
TIMH(15) may be inaccurate when TC 004 through TC 127 are used (operation will be normal for
TC 000 through TC 003).
20 ms or longer
Programming using the 0.02-second Clock Bit (SR 25401) may be inaccurate.
100 ms or longer
TIM may be inaccurate. Programming using the 0.1-second Clock Bit (SR 25500) may be inaccu-
rate. A CYCLE TIME OVER error is generated (SR 25309 will turn ON). See note 1.
120 ms or longer
The FALS 9F monitoring time SV is exceeded. A system error (FALS 9F) is generated, and opera-
tion stops. See note 2.
200 ms or longer
Programming using the 0.2-second Clock Bit (SR 25501) may be inaccurate.
Cycle Time Example
The processes involved in a single CPM1/CPM1A cycle are shown in the follow-
ing table, and their respective processing times are explained.
Content
Setting cycle watchdog timer, I/O bus check, UM
check, clock refreshing, refreshing bits allocated to
new functions, etc.
User program is executed.
Standby until set time, when minimum cycle time is
set in DM 6619 of PC Setup.
Calculation of cycle time.
Input information is read to input bits.
Output information (results of executing program) is
written to output bits.
Devices connected to peripheral port serviced.
Note The percentage of the cycle allocated to peripheral port servicing can be
changed in the PC Setup (DM 6617).
The effects of the cycle time on CPM1/CPM1A operations are as shown below.
When a long cycle time is affecting operation, either reduce the cycle time or im-
prove responsiveness with interrupt programs.
Note
1. The PC Setup (DM 6655) can be used to disable detection of CYCLE TIME
OVER error.
2. The cycle monitoring time can be changed in the PC Setup (DM 6618).
In this example, the cycle time is calculated for a CPM1/CPM1A CPU Unit with
20 I/O points (12 input points and 8 output points). The I/O is configured as fol-
lows:
Inputs: 1 word (00000 to 00011)
Outputs: 1 word (01000 to 01007)
The rest of the operating conditions are assumed to be as follows:
User's program:500 instructions (consists of only LD and OUT)
Cycle time:
0.6 ms
Total time for executing instructions.
(Varies according to content of user's
program.)
Almost instantaneous, except for
standby processing.
10-point CPU :
20-point CPU:
30-point CPU:
Expansion I/O Unit: 0.3 ms
0.26 ms min., 5% or less of cycle
time up to 66 ms (see note)
Operation conditions
Variable (no minimum set)
Section
8-1
Time requirements
0.06 ms
0.06 ms
0.3 ms

Advertisement

Table of Contents
loading

This manual is also suitable for:

Srm-v2Cpm1aCpm2aSrm1Cpm2c

Table of Contents