User’s
Manual
25
5. Programming
The interrupt operation can be controlled by the user program instructions, DI (disable
interrupt) and EI (enable interrupt). If a part of program is required to be executed under
interrupt disable state, these instructions can be used.
When using these instructions, note the following precautions.
•
On the T3 program, interrupt enable/disable can be controlled by using EI instruction
(FUN140) and DI instruction (FUN141). These instructions should be used in a pair
in the sequence of DI first and followed by EI.
(Main program)
A
[ DI ]
Interrupt is disabled
(interrupt signal is held)
A
[ EI ]
•
EI and DI instructions should not be used in interrupt program. Also, these
instructions should not be executed in the first scan.
When using the interrupt function, the following general precautions should be
considered.
•
The high frequency of the interrupt generation will cause T3 inoperative. Because, in
such case, the T3 becomes busy to execute the interrupt program, and cannot
execute the main program.
•
When the CD332 is used, pay attention to the external noise environment.
Especially, when using the high speed response mode, check this point carefully.
Содержание CD332
Страница 2: ......
Страница 4: ......
Страница 9: ...User s Manual 5 Section 1 CD332 Overview 1 1 Introduction 6 1 2 External features 7 ...
Страница 16: ...12 Change Detect DC Input Module CD332 ...
Страница 17: ...User s Manual 13 Section 3 Mode Setting 3 1 Input delay setting 14 3 2 Interrupt generation timing setting 15 ...
Страница 20: ...16 Change Detect DC Input Module CD332 ...
Страница 21: ...User s Manual 17 Section 4 I O Allocation 4 1 I O allocation and I O register 18 4 2 Interrupt assignment 20 ...
Страница 25: ...User s Manual 21 Section 5 Programming 5 1 T3 sample program 22 5 2 Interrupt operation 24 ...
Страница 30: ...26 Change Detect DC Input Module CD332 ...
Страница 31: ......