7 CONTROL SUB FUNCTIONS
7.9 Other Functions
301
7
Interrupt program example
The following figure shows a program example for the interrupt processing with Axis 1 command in-position shown in the
operation example. (
■
Interrupt setting program
This program configures the following interrupt setting for the interrupt setting 1.
• Start an interrupt program by turning off and on Axis 1 command in-position. (This step is not required when the interrupt
setting is configured in "Module Parameter").
The interrupt pointer setting is available only with an engineering tool.
■
Interrupt mask control program
This program sets or clears the interrupt mask of the interrupt setting 1.
Classification
Label Name
Description
Module label
RD75_1.bModuleAccessFlag
Module access flag [X1]
RD75_1.stInterruptSettingData_D.unInterruptCauseSetting_No_D[0]
Interrupt setting No.1 [Pr.900] Interrupt
factor setting
RD75_1.stInterruptSettingData_D.unInterruptCauseAxis_No_D[0]
Interrupt setting No.1 [Pr.901] Axis No.
for interrupt factor
Classification
Label Name
Description
Module label
RD75_1.bModuleAccessFlag
Module access flag [X1]
RD75_1.stInterruptSettingData_D.unInterruptCauseDetectionFlag_No_D[0]
Interrupt setting No.1 [Md.65] Interrupt
factor detection flag
RD75_1.stnAxisControlData_Axis_D[0].uExternalCommandValid_D
Interrupt setting No.1 [Cd.50] Interrupt
factor mask
Global label, local label
Define the global label or local label as follows. Setting Assign (Device/Label) for labels is not necessary because the unused
internal relay and data device are automatically assigned to the labels.
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: ......