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

The text of a manual · part 48 of 60

SYSMAC CQM1/CPM1/CPM1A/SRM1 Programmable Controllers Programming Manual: SECTION 7 PC Operations and Processing Time, pages 434 to 439

Pages 434 to 439 of 520, from SYSMAC CQM1/CPM1/CPM1A/SRM1 Programmable Controllers Programming Manual

The original document is the PDF (2.1 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 CQM1-CPU21

Page 434

Section

SRM1 Cycle Time and I/O Response Time

7-3

7-3-5 Interrupt Processing Time This section explains the processing times involved from the time an interrupt is executed until the interrupt processing routine is called, and from the time an interrupt processing routine is completed until returning to the initial location. This explanation applies to input, interval timer interrupts. 1, 2, 3...

Item

1. Source of interrupt 2. Wait for completion of interrupt-mask processing 3. Change to interrupt processing 4. Interrupt routing (CPM1A only) 5. Return to initial location The table below shows the times involved from the generation of an interrupt signal until the interrupt processing routine is called, and from when the interrupt processing routine is completed until returning to the original position. Contents

Time

Wait for completion of interrupt-mask processing

This is the time during which interrupts are waiting until processing has been completed. This situation occurs when a mask processes is executed. It is explained below in more detail.

See below.

Change to interrupt processing Return

This is the time it takes to change processing to an interrupt.

15 µs

This is the time it takes, from execution of RET(93), to return to the processing that was interrupted.

15 µs

Mask Processing Interrupts are masked during processing of the operations described below. Until the processing is completed, any interrupts will remain masked for the indicated times. Generation and clearing of non-fatal errors: When a non-fatal error is generated and the error contents are registered at the SRM1, or when an error is being cleared, interrupts will be masked for a maximum of 100 µs until the processing has been completed. Online editing: Interrupts will be masked for a maximum of 600 ms (i.e.: editing DM 6144 to DM 6655) when online editing is executed during operation. In addition, the system processing may have to wait for a maximum of 170 µs during this processing.

417

Page 435

Section

SRM1 Cycle Time and I/O Response Time

7-3

7-3-6 SRM1 Instruction Execution Times The following table lists the execution times for SRM1 instructions. Basic Instructions OFF execution time (µs)

Code

Mnemonic

ON execution time (µs)

---------------------------

LD LD NOT AND AND NOT OR OR NOT AND LD OR LD OUT OUT NOT SET RSET TIM

0.97 0.97 0.77

Any

RSET ---

0.78

Any

---

0.39

Any

---

2.7 2.8 5.7

Constant for SV

6.6

DM for SV Constant for SV

9.3 17.4 8.0 16.3

---

CNT

Conditions (Top: min.; bottom: max.)

IL

JMP

2.2

DM for SV

9.1 17.2 3.6 3.6

3.5 3.5 3.8 3.8

Special Instructions and Expansion Instructions Code

Mnemonic

00 01 02 03 04 05 06 07 08 09 10

NOP END IL ILC JMP JME FAL FALS STEP SNXT SFT

ON execution time (µs) 0.20 4.8 2.5 1.9 2.2 2.5 18.4 3.6 10.7 5.9 14.5

11

KEEP

21.0 49.1 3.0

12

CNTR

14.8

Conditions (Top: min.; bottom: max.) Any

With 1-word shift register With 10-word shift register With 100-word shift register Any

Constant for SV 13

DIFU

23.2 6.7

DM for SV Any

14

DIFD

6.4

Any

418

OFF execution time (µs)

1.4 1.9 1.3 2.5 2.9 2.9 9.0 4.1 Reset 11.0 14.9 30.8 Reset 3.4 Reset 9.1

IL 1.4 1.4 1.4 IL 1.6 IL 6.6

JMP 1.4 1.4 1.4 JMP 1.7 JMP 6.5

Shift 5.8 Shift 5.8

IL 5.2 IL 5.7

JMP 1.3 JMP 1.3

Page 436

Section

SRM1 Cycle Time and I/O Response Time Code

Mnemonic

15

TIMH

ON execution time (µs) 10.3 10.9 10.3 10.9

16

17

20

21

22

23 24

WSFT

ASFT*

CMP

MOV

MVN

BIN BCD

25

ASL

26

ASR

27 28 29 30

31

ROL ROR COM ADD

SUB

Conditions (Top: min.; bottom: max.)

Regular execution, constant for SV Interrupt execution, constant for SV Regular execution, DM for SV Interrupt execution, DM for SV

16.2 23.0 712.3

With 1-word shift register With 10-word shift register

18.6 25.9 865.7

Shifting a word Shifting 10 words

9.1 9.9 25.6

When comparing a constant to a word When comparing two words

9.1 9.5 24.9

When transferring a constant to a word When moving from one word to another

9.3 9.8 25.1

When transferring a constant to a word When moving from one word to another

17.2 32.0

When converting a word to a word

15.8 30.6

When converting a word to a word

9.9 17.3

When shifting a word

9.7 17.2

When shifting a word

8.5 16.1

When rotating a word

8.5 16.1

When rotating a word

10.5 17.7

When inverting a word

15.9 16.4 39.5

Constant + word → word Word + word → word

15.6 16.3 38.6

Constant – word → word Word – word → word

7-3

OFF execution time (µs) Reset 14.1 15.6 22.8 23.9

IL 13.9 15.4 22.1 23.6

JMP 7.0 8.5 7.0 8.5

2.9

With 1,024-word shift register using DM 3.0

Shifting 1,023 words via DM 3.0

When comparing two DM 3.0

When transferring DM to DM 3.0

When transferring DM to DM 3.0

When converting DM to DM 3.0

When converting DM to DM 2.9

When shifting DM 3.0

When shifting DM 2.9

When rotating DM 2.9

When rotating DM 3.0

When inverting DM 3.1

DM + DM → DM 3.0

DM – DM → DM

32

MUL

29.7 28.5 51.6

Constant word → word Word word → word DM DM → DM

3.0

33

DIV

27.2 28.5 53.1

Word ÷ constant → word word ÷ word → word

2.9

DM ÷ DM → DM

419

Page 437

Section

SRM1 Cycle Time and I/O Response Time Code

Mnemonic

34

ANDW

ON execution time (µs) 14.3

Conditions (Top: min.; bottom: max.) Constant Ɠ word → word

15.2

Word Ɠ word → word

37.3

DM Ɠ DM → DM

35

ORW

14.3 15.2 37.3

Constant V word → word Word V word → word

36

XORW

14.3 15.2 37.3

Constant V word → word Word V word → word

14.3 15.2 37.3

Constant V word → word Word V word → word

9.9 17.3

When incrementing a word

10.2 17.4

When decrementing a word

37

38 39

XNRW

INC DEC

OFF execution time (µs) 2.9

2.9

DM V DM → DM 2.9

DM V DM → DM 2.9

DM V DM → DM 2.9

When incrementing DM 2.9

When decrementing DM

40 41

STC CLC

3.5 3.0

Any

2.9 2.9

46

MSG

11.3 19.4

With message in words

2.9

With message in DM

47

RXD*

39.1 116.8

Word specification, 1 byte input

48

TXD*

31.3 266.5 26.7 34.0

Word specification, 1 byte input (RS-232C)

2.9

DM specification, 256 bytes input 2.9

DM specification, 256 bytes input (RS-232C) Word specification, 1 byte input (Host Link) DM specification, 256 bytes input (Host Link)

50

ADB

16.8 17.6 39.9

Constant + word → word Word + word → word

51

SBB

17.0 17.8 40.2

Constant – word → word Word – word → word

3.0

DM + DM → DM 3.0

DM – DM → DM

52

MLB

19.1 20.1 43.5

Constant word → word Word word → word DM DM → DM

3.0

53

DVB

19.5 20.4 43.7

Word ÷ constant → word Word ÷ word → word

3.0

54

ADDL

26.7 49.9

Word + word → word

55

SUBL

26.8 49.9

Word – word → word

DM ÷ DM → DM 3.0

DM + DM → DM 3.0

DM – DM → DM

56

MULL

81.4 106.2

Word word → word DM DM → DM

3.0

57

DIVL

76.9 101.8

Word ÷ word → word

3.0

16.9 32.9

Comparing words

60

420

CMPL

DM ÷ DM → DM Comparing DM

7-3

2.9

Page 438

Section

SRM1 Cycle Time and I/O Response Time Code

Mnemonic

ON execution time (µs) 26.9 2.29 ms

Conditions (Top: min.; bottom: max.)

67

BCNT*

68

BCMP*

41.4 41.9 64.5

Comparing constant, results to word Comparing word, results to word

69

STIM*

34.7 49.5 35.3 50.0 33.9 49.5 11.4

Word specification, one-shot timer start

Counting a word

DM specification timer read Word specification, timer stop

71

BSET

15.2 15.7 565.2

When setting a constant to 1 word When setting word constant to 10 words

73

XCHG

16.2 31.5

Word → word

74

SLD

13.6 26.7 1.54 ms

Shifting 1 word Shifting 10 word

13.6 26.6 1.54 ms

Shifting 1 word Shifting 10 word

25.5 48.9

When decoding word to word

35.1 58.1

When encoding word to word

26.8 49.9

When decoding word to word

21.3 21.9 45.7 34.3 35.3 59.3

When setting a constant to a word + a word When setting a word to a word + a word

21.4 21.8 44.9 34.0 33.9 892.0

When setting a constant + a word to a word When setting a word + a word to a word

35.4 36.1 60.5

When setting a word + constant to LIFO stack When setting a word + word to LIFO stack

77 78 80

81

DMPX SDEC DIST

COLL

3.0

DM specification, scheduled interrupt start Words specification, timer read

When transferring a constant to a word When transferring a word to a word

MLPX

3.0

DM specification, one-shot timer start Word specification, scheduled interrupt start

22.9 24.0 902.0

76

3.0

Comparing DM, results to DM

XFER

SRD

OFF execution time (µs)

Counting 6,656 words via DM

70

75

7-3

3.0

When transferring 1,024 words using DM 3.0

When setting DM to 1,024 words 3.1

DM → DM 3.0

Shifting 1024 words using DM 3.0

Shifting 1,024 words using DM 3.0

When decoding DM to DM 3.0

When encoding DM to DM 2.9

When decoding DM to DM 3.0

When setting DM to DM +DM When setting a constant to a stack When setting a word to a stack When setting DM to a stack via DM 3.0

When setting DM + DM to DM When setting a word + constant to FIFO stack When setting a word + word to FIFO stack When setting a DM + DM to FIFO stack via DM

When setting a DM + DM to LIFO stack via DM

421

Page 439

Section

SRM1 Cycle Time and I/O Response Time Code

Mnemonic

82

MOVB

83

MOVD

84

SFTR

85

TCMP

86

ASC

91 92 93 99

SBS SBN RET MCRO

ON execution time (µs) 18.2 19.0 42.1 16.3 17.6 39.9 21.0 26.9 718.5 30.0 30.7 53.1 30.0 53.7 13.2 --7.8 26.8 43.5

Conditions (Top: min.; bottom: max.) When moving constant to word When moving word to word

OFF execution time (µs) 3.0

When moving DM to DM When moving constant to word When moving word to word

2.9

When moving DM to DM Shifting 1 word Shifting 10 word

3.0

Shifting 1,024 words using DM Comparing constant to word-set table Comparing word to word-set table

3.0

Comparing DM to DM-set table Word → word DM → DM Any

With word-set I/O operands

7-3

3.0 3.0 1.3 1.3 3.0

With DM-set I/O operands

Note Those instructions marked with an asterisk are expansion instructions. Exchangeable Expansion Instructions Code

Mnemonic

---

HEX

-----

422

FCS STUP

ON execution time (µs) 43.6

Conditions (Top: min.; bottom: max.) DM → DM

73.5

DM → DM

23.4

Adding one word and outputting to word

643.7

Adding 999 words and outputting to DM

51.2

Transferring constant to word

58.2

Transferring word to word

OFF execution time (µs) 3.0 3.0 3.0