Panasonic FP7 Series Command Reference Manual page 297

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

● Either a global device or a local device (of the PB in which this instruction is executed) can
be specified for [D].
● Subroutine arguments can be specified by combining this instruction with the ECALL
instruction.
Refer to "Example of processing: Argument, return value operation of ECALL instruction".
Processing
Example 1) When a global device is specified for [D]
Example 2) When a local device is specified for [D] (Instruction is executed in PB5.)
Flag operations
Name
SR7
SR8
(ER)
Example of processing: Argument, return value operation of ECALL instruction
The following example shows the operation in which the LCWT instruction is used to pass
arguments to a subroutine in another PB and the LCRD instruction is used to receive return
values.
● This operation calls the subroutine SBL1 described in PB3 from PB1 to receive the results.
● SBL1 calculates "Argument 1 + Argument 2 → Return value" or "Argument 1 - Argument 2 →
Return value", depending on the condition of _WX0.
WUME-FP7CPUPGR-12
Description
To be set when an out-of-range value is specified for parameters.
To be set when [PBm] exceeds the maximum PB number.
To be set when [S] is specified for a global device.
To be set when the device address specified by [PBm]:[S+n] exceeds the upper limit of the
device.
To be set when the device address specified by [D+n] exceeds the upper limit of the device.
5.17 LCRD (Specified PB Local Device Read)
5-39

Advertisement

Table of Contents
loading

Table of Contents