EasyManua.ls Logo

Panasonic FP7 Series - Page 297

Panasonic FP7 Series
1222 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...
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 Description
SR7
SR8
(ER)
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.
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.
5.17 LCRD (Specified PB Local Device Read)
WUME-FP7CPUPGR-12 5-39

Table of Contents

Other manuals for Panasonic FP7 Series

Related product manuals