EasyManua.ls Logo

Omron CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION - Page 38

Omron CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION
183 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...
23
Function Block Specifications Section 2-1
Note For details on Externals, refer to Appendix C External Variables.
Input Variables
Input variables pass external operands to the instance. The input variables
are displayed on the left side of the instance.
The value of the input source (data contained in the specified parameter just
before the instance was called) will be passed to the input variable.
Example
Note 1. The same name cannot be assigned to an input variable and output vari-
able. If it is necessary to have the same variable as an input variable and
output variable, register the variables with different names and transfer the
value of the input variable to the output variable in the function block with
an instruction such as MOV.
2. When the instance is executed, input values are passed from parameters
to input variables before the algorithm is processed. Consequently, values
cannot be read from parameters to input variables within the algorithm. If
it is necessary to read a value within the execution cycle of the algorithm,
do not pass the value from a parameter. Assign the value to an internal
variable and use an AT setting (specified addresses). Alternatively, refer-
ence the global symbol as external variables.
Retain setting No Supported Supported No
Variables created by
default
EN (Enable):
Receives an input con-
dition.
ENO (Enable Output):
Outputs the function
block’s execution sta-
tus.
None Pre-defined symbols
registered in advance
as variables in the CX-
Programmer, such as
Condition Flags and
some Auxiliary Area
bits.
Item Variable type
Inputs Outputs Internals Externals
P_On
1.0
FB
EN
ENO
PV CV
D0 D100
The value of the parameter specified as the input (value of D0)
is passed to the instance’s input variable (PV).
D1000
0.0
10.0
D200
ADD_INT_DINT
EN ENO
IN16 OUT32
IN32
D100
tmp DINT
EN BOOL
IN16 INT
IN32 DINT
ENO BOOL
OUT32 DINT
SIGN IN16 tmp
P_On
+L IN32 tmp OUT32
IN16 is an INT variable, so the content of D100 is used.
IN32 is a DINT variable, so the content of D200 and
D201 is used.
Algorithm (Body)
Variable table
Name
Internal
Input
Input
Input
Output
Output
Type
Usage

Table of Contents

Related product manuals