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

The text of a manual · part 41 of 60

C200HX/C200HG/C200HE Programmable Controllers Operation Manual, pages 394 to 403

Pages 394 to 403 of 586

The original document is the PDF (3.4 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.

For the Omron C200HE-CPU42-E

Page 394

Section 6-3

Instruction Execution Times Instruction LMSG(––)

Conditions

ON execution time (μs) OFF execution time (μs) C200HX C200HG C200HE C200HX C200HG C200HE

Word for SV

17.95

32.65

0.313

0.469

0.938

Default: (47) for SV

27.65

42.35

TERM(––) --Default: (48)

8.55

23.25

0.313

0.469

0.938

CMPL(––)

16.55

31.25

0.313

0.469

0.938

Default: (60) When comparing to

38.5

53.2

MPRF(––)

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

When comparing words to words

2.00

16.7

Default: (61) 10 Units

1 Unit

13.00

27.7

XFRB(––)

22.45

37.15

Default: (62) Sending FF bits from to

Sending 1 bit from word to word

142.6

157.3

LINE(––) When transferring from words to a Default: (63) constant When transferring from words to a word When transferring to

59.7

74.4

62.1 182.5

76.8 197.2

COLM(––) When transferring from a constant to Default: (64) words When transferring from a word to words When transferring to

72.7

87.4

74.9 190.5

89.6 205.2

SEC(––)

35.35

50.05

Default: (65) to

56.3

71

HMS(––)

36.5

51.2

Default: (66) to

57.7

72.4

BCNT(––)

Constant for SV Default: (67) for SV

39.1 26.5 ms

53.8 (see note 2)

0.313

0.469

0.938

BCMP(––) Comparing constant to word-designated Default: (68) table To a word after comparing with a word Comparing → table APR(––) SIN designation

62.1

76.8

0.313

0.469

0.938

63.1 98.2

77.8 112.9

24.25

38.95

0.313

0.469

0.938

Default: (69) for SV

473

487.7

TTIM(––) Setting to a constant Default: (87)

27.55

42.25

Constant input OFF:

R: 24.15

35.5

50.2

DM to DM DM to DM

JPM: IL: 20.55 19.55

23.15 Setting to

Constant input OFF:

R: 36.3 IL: 32.7

JPM: 31.9

35.30 ZCP(––) Comparing a constant to a word Default: (88) Comparing a word to a word Comparing to a

16.75 17.65 49.7

31.45 32.35 64.4

0.313

0.469

0.938

INT(––)

Word for SV

19.90 to 198.50

0.313

0.469

0.938 for SV

19.90 to 213.5

(see note 3) (see note 3)

Input to DM

25.65

40.35

0.313

0.469

0.938

Input to

46.7

61.4

When designating a word

31.5

30.4

0.313

0.469

0.938

When designating

73.5

72.4

Default: (89)

TKY(––) RXD(––)

376

Page 395

Section 6-3

Instruction Execution Times Instruction TXD(––)

Conditions

ON execution time (μs) OFF execution time (μs) C200HX C200HG C200HE C200HX C200HG C200HE

When designating a word

56.1

70.8

When designating

99.4

114.1

Word-designated 4 digits

19 to 22

(see note 2)

4 digits

30 to 34

(see note 2)

Word-designated 8 digits

19 to 22

(see note 2)

8 digits

30 to 34

(see note 2)

Word designation, code output

74.60 to 89.40

(see note 2)

designation, message output

105.0 to 142.2

(see note 2)

Constant for SV

39.7

54.4

Word for SV

1.35 ms

(see note 2)

for SV

7.73 ms

(see note 2)

DM search

31.75

46.45 search

1.31 ms

(see note 2)

DM search

31.75

46.45 search

1.31 ms

(see note 2)

SUM(––)

DM add add

26.55 1.30 ms

FCS(––)

Add a word → word Add 999 words →

HEX(––) AVG(––)

7SEG(––)

FPD(––)

SRCH(––)

MAX(––)

MIN(––)

PID(––) XDMR(––)

MTR(––)

ADBL(––) SBBL(––)

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

41.25 (see note 2)

0.313

0.469

0.938

26.75 1.05 ms

41.45 (see note 2)

0.313

0.469

0.938

DM conversion conversion

36.95 102.6

51.65 117.3

0.313

0.469

0.938

Average of an operation

33.05

47.75

0.313

0.469

0.938

Average of 64 operations

133.8

148.5

When designating a word

48.1

62.8

0.313

0.469

0.938

When designating

89.4

104.1

Constant for SV

39.9

54.6

0.313

0.469

0.938

Word for SV

1.44 ms

(see note 2)

for SV

4.19 ms

(see note 2)

Input to DM

29 to 34

(see note 2)

0.313

0.469

0.938

Input to

45 to 51

(see note 2)

DM + DM → DM

27.35

42.05

0.313

0.469

0.938

+ →

60.1

74.8

DM – DM → DM

26.95

41.65

0.313

0.469

0.938

– →

59.7

74.4

377

Page 396

Section 6-3

Instruction Execution Times Instruction MBS(––)

DBS(––)

MBSL(––)

Conditions

ON execution time (μs) OFF execution time (μs) C200HX C200HG C200HE C200HX C200HG C200HE

Constant × word → word

20.85

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

DM × DM → DM

45.3

60

0.313

0.469

0.938

0.313

0.469

0.938

0.313

0.469

0.938

× →

77.1

91.8

DBSL(––)

DM ÷ DM → DM ÷ →

86.6 118.6

101.3 133.3

0.313

0.469

0.938

CPS(––)

When comparing two constants When comparing DM to DM When comparing DM to

13.95 15.65 36.9

28.65 30.35 51.6

0.313

0.469

0.938

CPSL(––)

When comparing two DM When comparing two

18.65 40.7

33.35 55.4

0.313

0.469

0.938

NEG(––)

When converting a constant to a word When converting a word to a word When converting to

15.05 16.85 37.1

29.75 31.55 51.8

0.313

0.469

0.938

NEGL(––)

When converting a word to a word When converting to

18.15 39.7

32.85 54.4

0.313

0.469

0.938

ZCPL(––)

When comparing two words When comparing two

19.95 53.3

34.65 68

0.313

0.469

0.938

SCL(––)

Word for SV for SV

58.3 89.4

73 104.1

0.313

0.469

0.938

HKY(––)

When designating a word When designating

23.55 44.3

38.25 59

0.313

0.469

0.938

DSW(––)

DM CS output DM RD output DM data retrieval CS output RD output data retrieval

35 35 45 44 44 53

49.7 49.7 59.7 58.7 58.7 67.7

0.313

0.469

0.938

BXFR(––)

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

71.5 3.68 ms

0.313

0.469

0.938 designation (6,144 words)

8.75 ms

70.4 (see note 3) (see note 3)

EMBC(––)

Constant designation Word designation designation

18.45 19.95 33.45

33.15 34.65 48.15

0.313

0.469

0.938

XFR2(––)

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

46.4 656.2 3.66 ms

45.3 655.1 (see note 3)

0.313

0.469

0.938

BXF2(––)

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

72.8 3.68 ms

0.313

0.469

0.938 designation (6,144 words)

8.75 ms

71.7 (see note 3) (see note 3)

378

Page 397

Section 6-3

Instruction Execution Times Instruction

Conditions

IEMS(––) IORD(––)

Constant designation (Switch to DM.) Word designation (Switch to EM bank.) ---

19.25 24.95 ---

IOWR(––)

---

---

STUP(––)

Default RS-232C designation Communications Board Port A designation Constant for port & Sequence number, DM for input and output words Constant for port & Sequence number, for input and output words for port & Sequence number, for input and output words Word designation DM designation designation

PMCR(––)

CMCR(––)

Note

ON execution time (μs) OFF execution time (μs) C200HX C200HG C200HE C200HX C200HG C200HE 0.313

0.469

0.938

0.313

0.469

0.938

0.313

0.469

0.938

30.9 61

18.15 23.85 (see note 2) (see note 2) 29.8 59.9

0.313

0.469

0.938

41

39.9

0.313

0.469

0.938

56

54.9

74.2

73.1

74 80 103

72.9 78.9 101.9

0.313

0.469

0.938

(see note 1) (see note 1)

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.

379

Page 398

Section 6-4

I/O Response Time

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

380

Instruction execution

Page 399

Section 6-4

I/O Response Time Maximum I/O Response Time

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.

381

Page 400

Section 6-4

I/O Response Time

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

382

Page 401

Section 6-4

I/O Response Time

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.

383

Page 402

Section 6-4

I/O Response Time

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.

384

Page 403

Section 6-4

I/O Response Time

In looking at the following timing charts, it is important to remember the sequence processing occurs during the PC scan, particular that inputs will not produce programmed-actions until the program has been execution.

Unit 0

PC Link Unit

PC Link Unit

PC

PC

Input on PC of Unit 0

Input

LR bit

Output on PC of Unit 7

Unit 7

X Output

X

Input

LR XXXX

LR XXXX

Output X

Note Noise may increase I/O delays. PC Link Conditions

The PC Link System used in this example consists of the following: • No. of PCs linked: 8 • No. of LR points linked: 128 per PC • Maximum PC: 8 • LR points used: 1,024

Minimum Response Time

The following illustrates the data flow that will produce the minimum response time, i.e., the time that results when all signals and data transmissions are processed as soon as they occur.

Cycle time

Program executed.

I/O refresh

PC with Unit 0 Buffer in Unit 0

Minimum transmission time

PC Link Unit transmissions Buffer in Unit 7

Program executed.

I/O refresh

PC with Unit 7 Cycle time Input Output

The equation for minimum I/O response time is thus as follows: Response time = Input ON delay + Cycle time of PC of Unit 0 + Minimum transmission time + (Cycle time of PC of Unit 7 × 2) + Output ON delay Inserting the following values into this equation produces a minimum I/O response time of 149.3 ms. Input ON delay: 1.5 ms

385