7 CONTROL SUB FUNCTIONS
7.9 Other Functions
299
7
Detecting interrupt factors
To send an interrupt request to the CPU module when an interrupt factor is detected, clear the interrupt mask by setting
[Cd.50] Interrupt factor mask beforehand.
*1 n: 0 (setting 1) to 15 (setting 16)
If an interrupt factor occurs, the value in [Md.65] Interrupt factor detection flag changes as follows.
*2 n: 0 (setting 1) to 15 (setting 16)
Resetting interrupt factors
When [Cd.51] Interrupt factor reset request is set to 1: Reset request, the interrupt factor is reset and 0: Interrupt factor not
detected is stored in [Md.65] Interrupt factor detection flag.
*1 n: 0 (setting 1) to 15 (setting 16)
The following figure shows an example of the interrupt factor reset processing.
Setting item
Setting
value
Setting detail
Buffer memory address
[Cd.50]
Interrupt factor mask
0, 1
Set the mask for the interrupt factor used.
0: Mask (disable interruption)
1: Clear mask (enable interruption)
55064+n
Monitor item
Monitor
value
Monitor details
Buffer memory address
[Md.65]
Interrupt factor detection
flag
0, 1
Stores the detecting status of an interrupt factor.
0: Interrupt factor not detected
1: Interrupt factor detected
55000+n
Setting item
Setting
value
Setting detail
Buffer memory address
[Cd.51]
Interrupt factor reset
request
0, 1
The interrupt factor is reset.
0: No reset request
1: Reset request
When the interrupt factor reset request is accepted, 0 is
stored.
55128+n
(1)
In the interrupt program, set [Cd.51] Interrupt factor reset request to 1: Reset request.
(2)
When [Cd.51] Interrupt factor reset request is accepted, [Md.65] Interrupt factor detection flag and [Cd.51] Interrupt factor reset request are cleared to 0.
Cd.51
Md.65
(1)
(2)
0
1
0
1
0
0
1
0
1
0
Interrupt
program
Normal control
program
If an interrupt factor is
detected again after
interrupt factor reset, the
interrupt is requested.
CPU module
(scan execution type program)
CPU module
(interrupt program)
Interrupt factor detection flag
Interrupt factor
Interrupt factor reset request
Normal control
program
Normal control
program
Interrupt
program
If an interrupt factor is
detected again before
interrupt factor reset, the
interrupt is not requested.
Содержание MELSEC iQ-R RD75P4
Страница 1: ...MELSEC iQ R Positioning Module User s Manual Application RD75P2 RD75P4 RD75D2 RD75D4 ...
Страница 2: ......
Страница 13: ...11 MEMO ...
Страница 19: ...17 CONTENTS INDEX 588 REVISIONS 592 WARRANTY 593 TRADEMARKS 594 ...
Страница 498: ...496 13 PROGRAMMING 13 2 List of Labels Used ...
Страница 503: ...13 PROGRAMMING 13 4 Program Example 501 13 ...
Страница 511: ...13 PROGRAMMING 13 4 Program Example 509 13 Torque change program Step operation program Skip program ...
Страница 512: ...510 13 PROGRAMMING 13 4 Program Example Teaching program Continuous operation interrupt program ...
Страница 513: ...13 PROGRAMMING 13 4 Program Example 511 13 Target position change program Absolute position restoration program ...
Страница 514: ...512 13 PROGRAMMING 13 4 Program Example Restart program Parameter data initialization program ...
Страница 515: ...13 PROGRAMMING 13 4 Program Example 513 13 Flash ROM write program Error reset program ...
Страница 516: ...514 13 PROGRAMMING 13 4 Program Example Stop program ...
Страница 565: ...APPENDICES Appendix 4 Operation Examples of When the Remote Head Module Is Mounted 563 A ...
Страница 568: ...566 APPENDICES Appendix 4 Operation Examples of When the Remote Head Module Is Mounted Common program ...
Страница 584: ...582 APPENDICES Appendix 4 Operation Examples of When the Remote Head Module Is Mounted Restart program ...
Страница 587: ...APPENDICES Appendix 4 Operation Examples of When the Remote Head Module Is Mounted 585 A Stop program ...
Страница 597: ......