Internal System Devices; Function Devices (Fx, Fy, Fd) - Mitsubishi QCPU (Q Mode) User Manual

Table of Contents

Advertisement

10 DEVICES

10.3 Internal System Devices

10.3.1 Function devices (FX, FY, FD)

10 - 31
Internal system devices are used for system operations.
The allocations and sizes of internal system devices are fixed, and cannot be changed
by the user.
(1) Definition
(a)
Function devices are used in sub-routine programs with arguments to
permit data transfers between the sub-routine program with argument, and
the CALL source for that sub-routine.
Example
If FX0 and FD1 are used at the sub-routine program, and if M0 and D0 are designated by the sub-routine
CALL instruction, the M0 ON/OFF data is transferred to FX0, and the D0 data is transferred to FD1.
[Sub-routine program CALL source]
X0
CALL
(b)
Because the function devices used for each sub-routine program CALL
source can be set, the same sub-routine program can be used without
regard to other sub-routine CALL sources.
(2) Types of function devices
There are 3 function device types: function input devices (FX), function output
devices (FY), and function register devices (FD).
(a)
Function input devices (FX)
• These devices are used to designate inputs of ON/OFF data to a sub-
routine program.
• In the sub-routine program, these devices are used for reading and
processing bit data designated by sub-routine with argument CALL
instruction.
• All the QCPU bit data designation devices can be used.
(b)
Function output devices (FY)
• These devices are used to designate outputs of sub-routine program
operation results (ON/OFF data) to the sub-routine program CALL source.
• The operation results are stored at the device designated by using sub-
routine programs with arguments.
• All bit data designation devices except High Performance model QCPU
inputs (X, DX) can be used.
[Sub-routine program]
P0
P0
M0 D0
MELSEC-Q
FX0
MOV
FD1 R0
RET
10 - 31

Advertisement

Table of Contents
loading

Table of Contents