Mitsubishi Electric melsec q00ujcpu User Manual page 381

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

(b) Function output (FY)
• The function output is used for passing an operation result (on/off data) in a subroutine program to a
calling program.
• An operation result is stored in the device specified in the subroutine program with argument passing.
• All bit devices except for input devices of the CPU module (X and DX) can be used.
(c) Function register (FD)
• The function register is used for data writing or reading between a subroutine program and a calling
program.
• The CPU module auto-detects the input or output conditions of the function register.
Source data are input data of the subroutine program.
Destination data are output data from the subroutine program.
• The function register of one point can occupy up to four words.
Note that, however, the number of words used differs depending on the instruction in the subroutine
program.
1) A one-word instruction uses one word only.
2) two-word instruction uses two words.
3) At a destination using 32-bit multiplication or division, four words are used.
• Word devices of the CPU module can be used.
9 - 36
CALLP P0 D0
Figure 9.44 When the function register of one point occupies one word
CALLP P0 D0
Figure 9.45 When the function register of one point occupies two words
CALLP P0 D0
Figure 9.46 When the function register of one point occupies four words
P0
Data is stored in D0 (1 point).
P0
Data are stored in D0 and D1 (2 points).
P0
Data are stored in D0 to D3 (4 points).
MOV R0 FD0
DMOV R0 FD0
D* R0 R10 FD0

Advertisement

Table of Contents
loading

Table of Contents