10 - 31 10 - 31
MELSEC-Q
10 DEVICES
10.3 Internal System Devices
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.
10.3.1 Function devices (FX, FY, FD)
(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]
M0 D0
P0
CALL
FD1 R0
MOV
RET
X0
FX0
P0
[Sub-routine program]
(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.