GE PACSystems RX7i Cpu Programmer's Reference Manual page 32

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Using Parameters with an External Block
An external block may be defined to have between zero and 63 formal input parameters and
between one and 64 formal output parameters. A 'power-flow out' (or OK) parameter, named Y0, is
automatically defined for every external block. Y0 is a BOOL parameter of LENGTH 1, and indicates
the successful execution of the block. It can be read and written to by the external block's logic.
The following table gives the TYPEs, LENGTHs, and parameter-passing mechanisms allowed for
external block parameters.
Type
BOOL
BYTE
INT, UINT, and WORD
DINT, REAL, and
DWORD
LREAL
UDT
3
The PACSystems default parameter passing mechanisms correspond to the way that external block
parameters are passed on 90-70 controllers. The parameter passing mechanisms of formal
parameters cannot be changed from their default values.
You must define a name for each formal input and output parameter.
Arguments, or actual parameters, are passed into an external block whenever an external block call
is executed.
Arguments may be any valid reference address including an indirect reference, may be flow, or may
be a constant if the corresponding parameter's LENGTH is 1.
3
To use a UDT, you must include the UDT definition as a C structure in the external block. For details, refer to Using a UDT
as a C block input parameter data type in the online help.
GFK-2950C
Length
Default Parameter Passing Mechanism
1 to 256
INPUTS: by reference
OUTPUTS: by reference; except Y0, which is by initial-value result
1 to 1024
INPUTS: by reference
OUTPUTS: by reference
1 to 512
INPUTS: by reference
OUTPUTS: by reference
1 to 256
INPUTS: by reference
OUTPUTS: by reference
1 to 128
INPUTS: by reference
OUTPUTS: by reference
1 to 128
INPUTS: by reference
OUTPUTS: not allowed
February 2018
Chapter 2. Program Organization
17

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents