Chapter 9 PLC Operation

9.1.4 Relationship of Each Scan Type

When three types of scan occur at the same time, scan is executed in the order of periodical scan, then interrupt scan, and then normal scan.

Low

Normal scan

Execution priority

Interrupt scan

High

Periodical scan

10 ms

10 ms

 

10 ms

 

10 ms

Periodical scan

Interrupt scan

Normal scan

Periodical system processing

Periodical

10 ms periodical

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

scan

program

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

20 ms periodical

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

program

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

40 ms periodical

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

program

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Interrupt

Interrupt analysis

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

processing

 

 

 

 

 

 

 

 

 

 

 

 

 

 

scan

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Interrupt program

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INT16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INT17

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INT18

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INT27

 

 

 

 

 

 

 

 

 

 

 

Normal

Ladder program

 

 

 

 

 

 

 

 

 

 

 

 

 

 

scan

END scan

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Processing

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 9.15 Relational diagram of scan operation

 

 

 

Table 9.3 List of interrupt label

 

 

 

 

 

 

 

Interrupt label

 

Cause of startup

 

Interrupt label

 

 

Cause of startup

 

INT0

 

Interrupt every 10 ms

 

INT20

Counter 1 on-preset match

 

INT1

 

Interrupt every 20 ms

 

INT21

Counter 1 off-preset match

 

INT2

 

Interrupt every 40 ms

 

INT22

Counter 2 on-preset match

 

INT16

 

Interrupt of interrupt input 1

 

INT23

Counter 2 off-preset match

 

INT17

 

Interrupt of interrupt input 2

 

INT24

Counter 3 on-preset match

 

INT18

 

Interrupt of interrupt input 3

 

INT25

Counter 3 off-preset match

 

INT19

 

Interrupt of interrupt input 4

 

INT26

Counter 4 on-preset match

 

 

 

 

 

 

 

INT27

Counter 4 off-preset match

9-8

Page 241
Image 241
Hitachi NJI-350B manual Relationship of Each Scan Type, INT16 INT17 INT18 INT27