Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual page 369

Melsec iq-r series cpu module application user's manual
Table of Contents

Advertisement

When local device is used in subroutine program
Local devices to be used vary depending on whether SM776 (Local device setting at CALL) is turned on or off. Local index
register to be used is also determined according to the SM776 setting.
SM776
Local device to be used
Off
Uses local devices of the program file from which subroutine program is called.
On
Uses local devices of the program file into which the subroutine program is stored.
• In terms of on/off setting for SM776, the value (on or off) used when the subroutine call occurs is considered
to be effective. Therefore when on/off setting for SM776 is switched in the subroutine program, the modified
value (on or off) is not effective until the next subroutine call occurs.
• On/off setting for SM776 cannot be specified for each program file because it is enabled for each CPU
module.
When local device is used in interrupt and other programs
When using a local device for an interrupt program / a fixed scan execution type program / an event execution type program
triggered by occurrence of an interrupt, turn on SM777 (Local device setting in interrupt programs). The programs will not
function properly if SM777 is turned off.
For the SIL2 Process CPU and Safety CPU, however, the on/off setting of SM777 does not affect those programs. ( Page
680 SM777 setting,  Page 558 SM777 setting)
Ex.
Operation if SM777 turned on in following setting
Program name
A
B
C
X
A
Execution program
For B
Local device
(1) Uses the program X local device.
For local index register, the register of the program file which has been executed before these programs is used regardless of
the SM777 setting.
Execution type
Scan
Scan
Scan
Fixed scan
C
B
X
For B
For C
For X
(1)
Local device use/not use
Not Use
Use
Use
Use
A
END
B
X
For B
For C
For X
(1)
C
END
X
For C
For X
(1)
21 DEVICES
367
21.19 Local Device
21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents