Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 47 of 68

Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual: SECTION 6 Program Execution Timing, pages 426 to 433

Pages 426 to 433 of 613, from Programmable Controllers C200HX-CPU-ZE, C200HG-CPU-ZE, C200HE-CPU-ZE Operation Manual

The original document is the PDF (3.8 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Omron C200H-SP001 and Omron C200HW-PA204

Page 426

Section

Instruction Execution Times Instruction

Conditions

6-3

ON execution time (µs) OFF execution time (µs) C200HX C200HG C200HE C200HX C200HG C200HE 0.313 0.469 0.938 21.1 36.0

<>L(306)

When comparing a constant to a word When comparing to

41.8

56.4

<>S(307)

When comparing a constant to a word When comparing to

18.8 40.0

33.4 54.8

0.313

0.469

0.938

<>SL(308)

When comparing a constant to a word When comparing to

21.6 42.1

36.4 56.8

0.313

0.469

0.938

<(310)

When comparing a constant to a word When comparing to

18.3 39.6

33.0 54.4

0.313

0.469

0.938

<L(311)

When comparing a constant to a word When comparing to

21.2 41.8

36.0 56.4

0.313

0.469

0.938

<S(312)

When comparing a constant to a word When comparing to

18.6 40.0

33.4 54.8

0.313

0.469

0.938

<SL(313)

When comparing a constant to a word When comparing to

21.6 42.1

36.4 56.8

0.313

0.469

0.938

<=(315)

When comparing a constant to a word When comparing to

18.3 39.8

33.0 54.4

0.313

0.469

0.938

<=L(316)

When comparing a constant to a word When comparing to

21.4 41.9

36.2 56.6

0.313

0.469

0.938

<=S(317)

When comparing a constant to a word When comparing to

18.6 40.1

33.4 54.8

0.313

0.469

0.938

<=SL(318)

When comparing a constant to a word When comparing to

21.8 42.3

36.4 57.0

0.313

0.469

0.938

>(320)

When comparing a constant to a word When comparing to

18.4 39.6

33.2 54.4

0.313

0.469

0.938

>L(321)

When comparing a constant to a word When comparing to

21.3 41.8

36.0 56.4

0.313

0.469

0.938

>S(322)

When comparing a constant to a word When comparing to

18.8 40.0

33.4 54.8

0.313

0.469

0.938

>SL(323)

When comparing a constant to a word When comparing to

21.6 42.1

36.4 56.8

0.313

0.469

0.938

>=(325)

When comparing a constant to a word When comparing to

18.4 39.8

33.2 54.4

0.313

0.469

0.938

>=L(326)

When comparing a constant to a word When comparing to

21.4 41.9

36.2 56.6

0.313

0.469

0.938

>=S(327)

When comparing a constant to a word When comparing to

18.8 40.1

33.4 54.8

0.313

0.469

0.938

>=SL(328)

When comparing a constant to a word When comparing to

21.8 42.3

36.4 57.0

0.313

0.469

0.938

TST(350)

Setting 1 bit of a word to a constant Setting 1 bit to

20.6 42.9

35.4 57.6

0.313

0.469

0.938

TSTN(351)

Setting 1 bit of a word to a constant Setting 1 bit to

20.8 43.0

35.4 57.8

0.313

0.469

0.938

+(400)

Constant + word → word + →

17.0 49.1

31.9 64.0

0.313

0.469

0.938

+L(401)

Constant + word → word + →

19.6 50.5

34.6 65.6

0.313

0.469

0.938

+C(402)

Constant + word → word + →

19.2 51.3

34.0 66.4

0.313

0.469

0.938

415

Page 427

Section

Instruction Execution Times Instruction +CL(403) +B(404)

Conditions Constant + word → word + → Constant + word → word + →

6-3

ON execution time (µs) OFF execution time (µs) C200HX C200HG C200HE C200HX C200HG C200HE 0.313 0.469 0.938 26.1 41.2 58.5 15.6 48.5

73.6 30.4 63.6

Constant + word → word + → Constant + word → word + →

21.6 52.3 16.7 49.5

Constant + word → word + → Constant – word → word – →

0.313

0.469

0.938

36.6 67.4 31.6 64.6

0.313

0.469

0.938

0.313

0.469

0.938

22.8 53.5 16.9 49.1

37.8 68.6 31.8 64.0

0.313

0.469

0.938

0.313

0.469

0.938

Constant – word → word – → Constant – word → word – →

19.5 50.3 19.1 51.1

34.4 65.4 33.8 66.2

0.313

0.469

0.938

0.313

0.469

0.938

Constant – word → word – → Constant – word → word – →

25.7 58.1 15.6 48.5

40.8 73.2 30.4 63.6

0.313

0.469

0.938

0.313

0.469

0.938

Constant – word → word – → Constant – word → word – →

21.6 52.3 16.5 49.5

36.6 67.4 31.6 64.6

0.313

0.469

0.938

0.313

0.469

0.938

Constant – word → word – → Constant × word → word × →

22.8 53.5 19.7 51.9

37.8 68.6 34.8 67.0

0.313

0.469

0.938

0.313

0.469

0.938

Constant × word → word × → Constant × word → word × →

42.7 76.7 17.3 48.9

58.0 92.0 32.2 64.0

0.313

0.469

0.938

0.313

0.469

0.938

Constant × word → word × → Constant × word → word × →

32.1 63.3 30.9 63.9

47.4 78.8 46.0 78.8

0.313

0.469

0.938

0.313

0.469

0.938

Constant × word → word × →

0.469

0.938

Constant ÷ word→ word

110.0 140.8 13.9

0.313

/(430)

108.9 140.9 13.4

0.313

0.469

0.938

÷ →

46.1

46.3

Constant ÷ word→ word

21.9

22.0

0.313

0.469

0.938

÷ →

55.9

56.0

Constant ÷ word→ word

12.5

12.5

0.313

0.469

0.938

÷ →

44.3

44.3

Constant ÷ word→ word

12.8

12.8

0.313

0.469

0.938

÷ →

33.5

33.5

Constant ÷ word→ word

13.5

13.5

0.313

0.469

0.938

÷ →

46.3

46.4

+BL(405) +BC(406) +BCL(407) –(410) –L(411) –C(412) –CL(413) –B(414) –BL(415) –BC(416) –BCL(417)

/L(431) /U(432) /UL(433) /B(434)

416

Page 428

Section

Instruction Execution Times Instruction /BL(435) ADBL(480) SBBL(481) MBSL(482) DBSL(483) MBS(484)

DBS(485)

BXF2(––)

IEMS(––) XFR2(––)

Conditions

6-3

Constant ÷ word→ word

ON execution time (µs) OFF execution time (µs) C200HX C200HG C200HE C200HX C200HG C200HE 0.313 0.469 0.938 17.9 18.1

÷ →

48.9

49.0

DM + DM → DM

27.35

42.05

+ →

60.1

74.8

DM – DM → DM

26.95

41.65

– →

59.7

74.4

DM × DM → DM

45.3

60

× →

77.1

91.8

DM ÷ DM → DM ÷ → Constant × word → word

86.6 118.6 20.85

101.3 133.3 35.55

DM × DM → DM

21.65

36.35

× →

53.5

68.2

Constant ÷ word → word

21.55

36.25

DM ÷ DM → DM

22.45

37.15

÷ →

54.9

69.6

Word designation (1 word) designation (1,024 words)

72.8 3.68 ms designation (6,144 words)

8.75 ms

Constant designation (Switch to DM.) Word designation (Switch to EM bank.) Word designation (1 word) designation (1,024 words) designation (6,144 words)

19.25 24.95 46.4 656.2 3.66 ms

71.7 (See note 3) (See note 3) 18.15 23.85 45.3 655.1 (See note 3)

Note

0.313

0.469

0.938

0.313

0.469

0.938

0.313

0.469

0.938

0.313

0.469

0.938

0.313

0.469

0.938

0.313

0.469

0.938

0.313

0.469

0.938

0.313

0.469

0.938

0.313

0.469

0.938

1. Same as the C200HX’s instruction execution time. 2. Add 14.7 µs to the C200HX’s instruction execution time. 3. Add 1.1 µs to the C200HX’s instruction execution time.

417

Page 429

Section

I/O Response Time

6-4

6-4

I/O Response Time The I/O response time is the time it takes for the PC to output a control signal after it has received an input signal. The time it takes to respond depends on the cycle time and when the CPU Unit receives the input signal relative to the input refresh period. The minimum and maximum I/O response time calculations described below are for where IR 00000 is the input bit that receives the signal and IR 00200 is the output bit corresponding to the desired output point. 00000

00200

6-4-1 Basic Systems Minimum I/O Response Time

The PC responds most quickly when it receives an input signal just prior to the I/O refresh period in the cycle. Once the input bit corresponding to the signal has been turned ON, the program will have to be executed once to turn ON the output bit for the desired output signal and then the I/O refresh operation would have to be repeated to refresh the output bit. The I/O response time in this case is thus found by adding the input ON-delay time, the cycle time, and the output ON-delay time. This situation is illustrated below.

Cycle

Cycle time

Cycle time

Instruction execution

Instruction execution

I/O refresh Input signal Input ON delay

CPU Unit reads input signal

Output ON delay Output signal I/O response time

Minimum I/O response time = Input ON delay + Cycle time + Output ON delay

418

Instruction execution

Page 430

Section

I/O Response Time Maximum I/O Response Time

6-4

The PC takes longest to respond when it receives the input signal just after the I/O refresh phase of the cycle. In this case the CPU Unit does not recognize the input signal until the end of the next cycle. The maximum response time is thus one cycle longer than the minimum I/O response time, except that the I/O refresh time would not need to be added in because the input comes just after it rather than before it.

Cycle

Cycle time

Cycle time

Cycle time

Instruction execution

Instruction execution

Instruction execution

I/O refresh

Input signal

CPU Unit reads input signal

Input ON delay

Output ON delay

Output signal

I/O response time

Maximum I/O response time = Input ON delay + (Cycle time × 2) + Output ON delay Calculation Example

The data in the following table would produce the minimum and maximum cycle times shown calculated below. Item

Time

Input ON-delay

1.5 ms

Output ON-delay

15 ms

Cycle time

20 ms

Minimum I/O response time = 1.5 + 20 + 15 = 36.5 ms Maximum I/O response time = 1.5 + (20 x 2) +15 = 56.5 ms Note In this example the I/O refresh time is negligible has not been included in the minimum I/O response time.

6-4-2 Remote I/O Systems With Remote I/O Systems, only the cycle time of the PC needs to be considered in computing the I/O response times as long as the remote I/O transmission time is negligible and smaller than the cycle time. The cycle time, however, is increased by the presence of the Remote I/O System. The processing that determines and the methods for calculating maximum and minimum response times from input to output are provided in this section. Calculations assume that both the input and the output are located on Slave Racks in a Remote I/O System, but the calculations are the same for I/O points on Optical I/O Units, I/O Link Units, I/O Terminals, etc. Input on Slave Rack

Output on Slave Rack X

Although more precise equations are possible if required, equations used for the following calculations do not consider fractions of a scan.

419

Page 431

Section

I/O Response Time

6-4

In looking at the following timing charts, it is important to remember the sequence in which processing occurs during the PC scan, particular that inputs will not produce programmed actions until the program has been executed. When calculating the response times involving inputs and outputs from another CPU Unit connected by an I/O Link Unit, the cycle time of the controlling CPU Unit and the cycle time of the PC to which the I/O Link Unit is mounted must both be considered. ! Caution Remote I/O Transmission Times

Noise may increase I/O delays. The remote I/O transmission time is computed as follows: TRM

= Total Slave transmission time for one Master =

TRT = =

ΣTRT + ΣTTT Transmission time for each Slave 1.4 ms + (0.2 ms × n) Where n = number of I/O words on the Slave Rack

TTT

=

Optical I/O Unit/I/O Terminal transmission time

=

2 ms × m Where m = number of Optical I/O Units/I/O Terminals

Minimum I/O Response Time

The minimum response time occurs when all signals are processed as soon as they are received. Here, three scans are required so that the program is executed, as shown in the following diagram. Time = Input ON delay + cycle time × 3 + output ON delay Cycle time > Remote I/O transmission times Cycle time

CPU Unit

Program execution Transfer to CPU Unit

Master Transfer to Master Slave Slave I/O refresh Input Output

420

Page 432

Section

I/O Response Time

6-4

The maximum response time occurs when the input just misses the program execution portion of the scan, meaning that processing must wait for the next transmission and then the next (i.e., the fourth) scan.

Maximum I/O Response Time

Time = Input ON delay + cycle time × 4 + output ON delay Cycle time > Remote I/O transmission times Note Use the maximum cycle time output to AR 26 in computing the maximum I/O response time. Cycle time CPU Unit

Program execution Transfer to CPU Unit

Master Slave I/O refresh

Transfer to Master

Slave Input Output

Example Calculations

Calculations would be as shown below for an input ON delay of 1.5 ms, an output ON delay of 15 ms, and a cycle time of 20 ms. Minimum I/O Response Time Time = 1.5 ms + (20 ms × 3) + 15 ms = 76.5 ms Maximum I/O Response Time Time = 1.5 ms + (20 ms × 4) + 15 ms = 96.5 ms Note

1. The cycle time may be less than or equal to the remote I/O transmission time when there are Special I/O Units on Slave Racks. If this is the case, there may be cycles when I/O is not refreshed between the Master and the C200HX/HG/HE CPU Unit. 2. Refreshing is performed for Masters only once per cycle, and then only after confirming completion of the remote cycle. 3. The short duration of ON/OFF status produced by differentiated instructions can cause inaccurate signals when dealing with Remote I/O Systems unless appropriate programming steps are taken.

421

Page 433

Section

I/O Response Time

6-4

6-4-3 Host Link Systems The following diagram illustrates the processing that takes place when an input on one PC is transferred through the Host Link System to turn ON an output on another PC. Refer to Host Link System documentation for further details. Output on #31

Input on #0

X

Host computer

Command/response for Unit # 0

Command/response for Unit # 31

Command

Command Response

Buffer for Host Link Unit # 0

Response Host computer processing time

CPU Unit reads input signal Cycle time

PC for Host Link Unit # 0 I/O refresh CPU Unit writes output signal

Host link service

Buffer for Host Link Unit # 31

Cycle time PC for Host Link Unit # 31 Host link service

I/O refresh

Input signal Input ON delay

Output ON delay

Output signal I/O response time

The equations used to calculate the minimum and maximum cycle times are given below. The number of cycles required for each PC depends on the amount of data being read/written. Minimum response time =

Input ON delay + Command transmission time + (Cycle time of PC for Unit #0 × 3) + Response transmission time + Host computer processing time + Command transmission time + (Cycle time of PC for Unit #31 × 3) + Output ON delay

Maximum response time =

Input ON delay + Command transmission time + (Cycle time of PC for Unit #0 × 10) + Response transmission time + Host computer processing time + Command transmission time + (Cycle time of PC for Unit #31 × 10) + Output ON delay

6-4-4 PC Link Systems The processing that determines and the methods for calculating maximum and minimum response times from input to output are provided in this subsection. The following System and I/O program steps will be used in all examples below. This System contains eight PC Link Units.

422