10
DEVICE EXPLANATION
10
- 49
10.3 Internal System Devices
10.3.1 Function devices (FX, FY, FD)
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
Function devices are used in subroutine programs with arguments.
The function devices write/read data between a subroutine call source with argument
and a subroutine program with argument.
(2) Applications of function devices
Because the function devices used for each subroutine program CALL source can be
set, the same subroutine program can be used without regard to other subroutine
CALL sources.
(3) 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 subroutine
program.
• In the subroutine program, these devices are used for reading and
processing bit data designated by subroutine with argument CALL instruction.
• All the CPU module bit data designation devices can be used.
(b) Function output devices (FY)
• These devices are used to designate outputs of subroutine program operation
results (ON/OFF data) to the subroutine program CALL source.
• The operation results are stored at the device designated by using subroutine
programs with arguments.
• All bit data designation devices except CPU module inputs (X, DX) can be used.
Figure 10.42 Application example of function devices
M0 D0
P0 X0
CALL
FD2 R0
FY1
MOV
SET
RET
X0
FX0
P0
If FX0, FY1 and FD2 are used at the subroutine program, and if X0, M0, and D0 are
designated by the subroutine program CALL instruction, the X0 ON/OFF data is transferred to
FX0, the FY1 ON/OFF data is transferred to M0, and the D0 data is transferred to FD2.
[Subroutine program CALL source]
[Subroutine program]
Example
Содержание Q00CPU
Страница 1: ......
Страница 2: ......
Страница 972: ...Index 6 Memo ...
Страница 975: ......
Страница 976: ......