Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-131
XCALL
1
2
3
4
6
6
7
8
7.6 Structure creation instructions
7.6.8 Subroutine program call (XCALL)
(3) 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.
*3: An error will not occur even when the device number specified by to is not a multiple of 16 at the digit
specification of the bit device.
[Main routine program]
(4) to can be used by the XCALL instruction.
(5) The number of function devices used by a subroutine program must be identical to the
number of arguments in the XCALL instruction. Also, the function device and the type of
XCALL argument should be identical.
(6) Device numbers specified in the argument of the XCALL instruction should not overlap.
If they do overlap, it will not be possible to obtain accurate calculations.
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*3
4 words
The data size varies
depending on the
instruction to be used.
Word device
4 words
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).
D0M0P0XCALL
S1
S5