EasyManuals Logo

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 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
Page #389 background imageLoading...
Page #389 background image
387
CALL, CALLP
1
2
3
4
4
6
7
8
7.6 Structure creation instructions
7.6.3 CALL, CALLP
Function
(1) When the CALL (P) instruction is executed, executes the subroutine program of the program specified by Pn.
(2) When function devices (FX, FY, FD) are used by a subroutine program, specify a device with to corresponding to
the function device. The contents to the devices specified by to are as indicated below.
(a) Prior to execution of the subroutine program, bit data is transmitted to FX, and word data is transmitted to FD.
(b) After the execution of the subroutine program, the contents of FY and FD are transmitted to the corresponding
devices.
(c) The processing units for the function devices are as follows:
• FX, FY : Bits
• FD
: 4-word units
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.
*1: An error will not occur even when the device number specified by to is not a multiple of 16 at the digit designation of the
bit device.
[Main routine program]
(3) to can be used with the CALL (P) instruction.
The CALL (P) instruction can execute subroutine programs specified by a pointer
within the same program file and subroutine programs specified by a common pointer.
Function devices Device Data Size Remark
• FX
• FY
Bit device 1 point
––
When bit designation is 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 routine
program
CALL Pn
END
Subroutine
program
RET
Pn
S1
S5
S1
S5
S1
S5
Occupies from D0 to D3 (Transfer to FD1).
X0
D30
Occupies from D30 to D33 (Transfer to FD2).
Occupies M0 (Transfer to FX0).
D0M0P0CALL
S1
S5

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals