Mitsubishi QCPU (Q Mode) User Manual page 313

Table of Contents

Advertisement

10 DEVICES
10 - 66
1)
Switching over local devices by setting ON/OFF for a special relay
(SM776)
Executes calculation by the local devices that are used by the file
OFF
where the sub-routine program was called
Executes calculation by the local devices that are used by the file
ON
where the sub-routine program is stored.
[Operation at "SM776 : OFF"]
File name: ABC
X0
CALL P100
X2
INCP D0
Local devices used by
the file name: ABC
[Operation at "SM776 : ON"]
File name: ABC
X0
CALL P100
X2
INCP D0
Local devices used by
the file name: ABC
2)
Cautions
• If SM776 is ON, the local device data is read when the sub-routine
program is called and the local device data is saved after the execution of
the RET instruction. Accordingly, scan time is elongated by the time as
when a sub-routine program is executed once with the setting of "SM776:
ON". (See Section 10.13.1)
• ON/OFF setting of SM776 is enabled in CPU modules.
Setting in file units is not enabled.
• If the ON/OFF setting of SM776 is changed while a sequence program is
executed, the control is made according to the information after change.
REMARK
For details on SM776, see Appendix 1.
Execution of the
sub-routine program
END
Read/write of the
local devices
Execution of the
sub-routine program
Read/write of the
local devices
END
MELSEC-Q
SM776
File name: DEF
(Standby program)
P100
Sub-routine
program
Local devices used by
the file name: DEF
File name: DEF
(Standby program)
P100
Sub-routine
program
Local devices used by
the file name: DEF
RET
RET
10 - 66

Advertisement

Table of Contents
loading

Table of Contents