Toshiba CD332 user manual Interrupt operation

Page 28

5. Programming

5.2 Interrupt operation

The enable/disable of the interrupt program is changed as follows.

PLC mode

HALT

 

 

Scan

 

 

 

1

Interrupt Disable

RUN

2

Enable

HOLD

n

Disable

(Hold)

RUNHALT

n+1

EnableDisable

Time

In the RUN mode, interrupt operation is disabled at the first scan, and enabled from the second scan.

In the HALT mode, interrupt operation is disabled.

In the HOLD mode, interrupt operation is disabled but the interrupt requests occurred during HOLD mode is held.

During interrupt program execution, other interrupts are disabled, and the interrupt request is held as follows.

PLC mode

HALT

 

 

RUN

 

 

 

 

 

 

Interrupt program

Execution

Scan

1

2

n

n n+1

Interrupt

Disable

 

Enable

Disable

 

 

(Hold)

HALT

n+2

EnableDisable

Time

Note) The held interrupt requests are accepted when interrupt status is changed to enable, according to the priority as follows.

(Timer interrupt I/O#1 I/O#2 → … → I/O#8, in default)

24 Change Detect DC Input Module (CD332)

Image 28
Contents CD332 Page Important Information Page Safety Symbols Safety PrecautionsAbout This Manual About This ManualInside This Manual Related Manuals Contents Section CD332 Overview CD332 Overview IntroductionExternal features CD332Interrupt timing setting DIP switches Status LEDsInput terminals Jumper plugsSection Specifications General specifications SpecificationsFunctional specifications Input signal connections Input circuitChange Detect DC Input Module CD332 Section Mode Setting Mode Setting Input delay settingInterrupt generation timing setting OFFChange Detect DC Input Module CD332 Section Allocation O Allocation I/O allocation and I/O registerIN1 Interrupt assignment Section Programming Programming T3 sample programMain Program Interrupt Program #1 I/O#1Programming Interrupt operation Programming Change Detect DC Input Module CD332 Page Toshiba Corporation