Pc With Additional Units - Omron SYSMAC C20P Operation Manual

Sysmac programmable controllers
Hide thumbs Also See for SYSMAC C20P:
Table of Contents

Advertisement

Calculating Scan Time
6–3–2

PC with Additional Units

Calculations
The overseeing time is fixed at 1.26 ms.
The input/output refresh time would be as follows: 0.29 ms + ( 0.07 ms x N ).
As the C20K is provided with only one input and one output word the value of
the constant N is 1 (i.e. N = 1 – 1 = 0) and so the time required is 0.29 ms + (
0.07 ms x 0 ) = 0.29 ms.
The execution time can be calculated by obtaining the average instruction
execution time and multiplying this by the number of addresses used in the
program. As only LD and OUT are used in this program and they have ex-
ecution times of 12 µs and 17.5 µs respectively, the average instruction ex-
ecution time is:
12 µs + 17.5 µs
2
The total execution time is equal to this average instruction execution time
multiplied by the number of program addresses.
Total execution time = 300 addresses x 14.75 µs = 4.43 ms
The peripheral device servicing time is calculated by adding the other three
time values and multiplying the result by a factor of 0.05. This value is only
required in configurations where a peripheral device is connected to the PC.
The result is calculated as an example. As there are no peripheral devices
used in this example the following results will be ignored in the final calcula-
tion.
Peripheral device servicing = (1.26 ms + 0.29 ms + 4.43 ms) x 0.05 = 0.3 ms
As this is less than 1 ms it must be rounded up to 1 ms. Had it been over 1
ms it would then need to be rounded down to the nearest 0.5 ms.
The scan time is the total of all these calculations.
1.26 ms + 0.29 ms + 4.43 ms = 5.98 ms
If a peripheral device had been present it would have been:
1.26 ms + 0.29 ms + 4.43 ms + 1 ms = 6.98 ms
Process
Overseeing
Input/output refreshing
Peripheral device servicing
Instruction execution
Total
Configuration: A C40K CPU, a C40P Expansion I/O Unit, an I/O Link Unit.
Program: 1150 addresses.
Average instruction execution time: 30 µs.
The equation for the scan time from above is as follows:
Scan time =
Overseeing time
+ Input/output refreshing
= 14.75 ms
Formula
Fixed
0.29 + 0.07 * (1–1)
((1) + (3) + (4)) * 0.05 = 0.3 < 1
14.75 * 300
(1) + (2) + (3) + (4)
Section 6–3
Peripheral device
servicing (ms)
With
Without
1.26
1.26
0.29
0.29
1.00
0.00
4.43
4.43
6.98
5.98
99

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c28pSysmac c40pSysmac c60p

Table of Contents