300
7 CONTROL SUB FUNCTIONS
7.9 Other Functions
Control precautions
• Even if the same interrupt factor occurs again while [Md.65] Interrupt factor detection flag is 1: Interrupt factor detected, no
interrupt request is sent to the CPU module.
• While [Cd.50] Interrupt factor mask is 0: Mask, no interrupt request is sent to the CPU module.
• After the power is switched on or the CPU module is reset, no interrupt request is sent to the CPU module because the
interrupt parameter in the RD75 is set to the initial value. Turn off and on PLC READY signal [Y0] to validate the interrupt
parameter.
• Starting "Positioning Test" of the engineering tool validates the interrupt parameter at a start.
• If a parameter error occurs when PLC READY signal [Y0] is turned off and on or "Positioning Test" of the engineering tool is
started, the interrupt parameter is invalidated. No interrupt request is sent to the CPU module.
Operation example
The following shows an example of the interrupt factor setting and the operation in which the interrupt program of the interrupt
pointer I50 is executed if the interrupt factor is detected.
For details on the interrupt pointer I50, refer to the following.
MELSEC iQ-R CPU Module User's Manual (Application)
Setting item
Setting
value
Setting detail
Buffer memory address
[Pr.900]
Interrupt factor setting
(setting 4)
202
202: Command in-position flag ([Md.31] Status)
55195
[Pr.901]
Axis No. for interrupt factor
1
1: Axis 1
55259
(1)
Configure the interrupt setting using an engineering tool and create the processing for Axis 1 command in-position in the I50 program. Write the project
and validate the setting.
(2)
In the normal control program, set [Cd.50] Interrupt factor mask (address: 55067) to 1: Clear mask.
(3)
When the remaining distance of the axis 1 falls within the range specified by the command in-position width setting value, [Md.65] Interrupt factor
detection flag (address: 55003) of setting 4 turns to 1: Interrupt factor detected at the same time when b2: Command in-position of [Md.31] Status turns
on.
(4)
The interrupt pointer I50 program of the CPU module is started.
(5)
When [Cd.51] Interrupt factor reset request of setting 4 (address: 55131) is set to 1: Reset request, the interrupt factor is cleared and 0: Interrupt factor
not detected is stored in [Md.65] Interrupt factor detection flag of setting 4 (address: 55003).
Cd.50
Md.31
Cd.51
Md.65
(2)
v
t
0
0
1
0
1
0
0
1
(4)
(5)
(3)
Normal
control
program
CPU module
(scan execution type program)
CPU module
(interrupt pointer: I50 program)
Command in-position flag
[ Status: b2]
Positioning operation
Interrupt factor mask
Interrupt factor detection flag
Interrupt factor reset request
Normal control program
Interrupt
program
(I50)
Command in-position
width setting value
Содержание 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: ......