7 CONTROL SUB FUNCTIONS
7.9 Other Functions
297
7
Interrupt function
The interrupt function sends an interrupt request to the CPU module when an interrupt factor is detected. By using this
function, an interrupt program can be started by detecting the occurrence of an interrupt factor such as the completion of the
positioning. The RD75 can use 16 interrupt pointers at maximum.
Using this function avoids the need to check buffer memory addresses periodically in a program. Therefore,
this function can be applied to systems that need to switch controls in a short time.
The following processing can be performed.
• Executing an interrupt program for sub work at the instant when the remaining distance falls within a
command in-position width (using the command in-position flag is used as an interrupt factor)
Overview of the interrupt function
The RD75 has 16 interrupt settings and can execute 16 interrupt programs. The following shows the configurations of the data
used for the interrupt function.
Beginning from the interrupt function setting, the following steps are made to use the interrupt function.
• Set the interrupt parameters ([Pr.900] Interrupt factor setting and [Pr.901] Axis No. for interrupt factor) and write them to the
RD75.
• Clear the mask by setting [Cd.50] Interrupt factor mask.
• If the RD75 detects an interrupt factor, an interrupt request is sent to the CPU module and the corresponding interrupt
program of the CPU module is executed.
• Set 1: Interrupt factor reset request for [Cd.51] Interrupt factor reset request to clear the interrupt factor. The RD75 can
detect a new interrupt factor after the old interrupt factor is cleared.
The interrupt function requires the following setting items.
*1 n: 0 (setting 1) to 15 (setting 16)
Item
Buffer memory address
Setting 1
Setting 2
Setting n
Setting 16
[Md.65]
Interrupt factor detection flag
55000
55001
55000+n
55015
[Cd.50]
Interrupt factor mask
55064
55065
55064+n
55079
[Cd.51]
Interrupt factor reset request
55128
55129
55128+n
55143
[Pr.900]
Interrupt factor setting
55192
55193
55192+n
55207
[Pr.901]
Axis No. for interrupt factor
55256
55257
55256+n
55271
Cd.51
Md.65
Cd.50
Pr.900
Pr.901
…
…
…
…
…
Interrupt factor
reset
Factor 1 reset
Factor 2 reset
Factor 16 reset
Interrupt factor
detection flag
Factor 1 detection
flag
Factor 2 detection
flag
Factor 16 detection
flag
Interrupt factor
mask
Mask for factor 1
Mask for factor 2
Mask for factor 16
Interrupt parameter
Factor 1 setting
Factor 2 setting
Factor 16 setting
Axis No. of factor 1
Axis No. of factor 2
Axis No. of factor 16
Interrupt setting
Summary of Contents for MELSEC iQ-R RD75P4
Page 1: ...MELSEC iQ R Positioning Module User s Manual Application RD75P2 RD75P4 RD75D2 RD75D4 ...
Page 2: ......
Page 13: ...11 MEMO ...
Page 19: ...17 CONTENTS INDEX 588 REVISIONS 592 WARRANTY 593 TRADEMARKS 594 ...
Page 498: ...496 13 PROGRAMMING 13 2 List of Labels Used ...
Page 503: ...13 PROGRAMMING 13 4 Program Example 501 13 ...
Page 514: ...512 13 PROGRAMMING 13 4 Program Example Restart program Parameter data initialization program ...
Page 515: ...13 PROGRAMMING 13 4 Program Example 513 13 Flash ROM write program Error reset program ...
Page 516: ...514 13 PROGRAMMING 13 4 Program Example Stop program ...
Page 565: ...APPENDICES Appendix 4 Operation Examples of When the Remote Head Module Is Mounted 563 A ...
Page 597: ......