EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 475

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.6 Structure Creation Instructions
473
7
Only the file name of a program file stored in the drive 0 (program memory/internal RAM) can be designated for a file name.
It is not necessary to designate the extension (.QPG) with the file name. (Only .QPG files will be acted on.)
When function devices (FX, FY, FD) are used by a subroutine program, specify a device corresponding to the function
device with (S1) to (S5). The contents of the devices specified by (S1) to (S5) are as indicated below.
*1 An error will not occur even when the device number specified by (S1) to (S5) is not a multiple of 16 at the digit designation of the bit
device.
[Main routine program]
From (S1) to (S5) can be used by the ECALL instruction.
The device used in the argument of the ECALL instruction should not be used in a subroutine program. If used, it will not be
possible to obtain accurate calculations. (Page 474 Incorrect operation example)
Prior to execution of the subroutine program, bit data is transmitted to FX, and word data is transmitted to FD.
After the execution of the subroutine program, the contents of FY and FD are transmitted to the corresponding devices.
The function devices FX and FY are processed in units of bits. The function device FD is processed in units of 4 words. The size of the data to be dealt with
will differ depending on the device specified in the argument. The device specified as a function device should be secured for the data size. An error will occur
if it cannot be secured for the data size.
Function devices Device Data size Remark
•FX
•FY
Bit device 1 point
When bit designation has been made
for word device
1 bit
FD When digit designation of a bit device
is used
*1
4 words The data size varies depending on
the instruction to be used.
Word device 4 words
[MAIN]
[ABC]
Occupies from D0 to D3 (Transfer to FD1).
X0
D30
Occupies from D30 to D33 (Transfer to FD2).
Occupies M0 (Transfer to FX0).
D0M0P0ECALL "A-LINE"

Table of Contents

Related product manuals