![Omron CS1-H Series Operation Manual Download Page 38](http://html1.mh-extra.com/html/omron/cs1-h-series/cs1-h-series_operation-manual_742526038.webp)
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
Summary of Contents for CS1-H Series
Page 3: ...iv...
Page 5: ...vi...
Page 7: ...viii TABLE OF CONTENTS...
Page 15: ...xvi Application Precautions 4...
Page 151: ...136 Procedures Section 3 2...
Page 153: ...138 Data Types Appendix A...
Page 177: ...162 External Variables Appendix C...
Page 181: ...166 Revision History...