![Omron SYSMAC CX-Programmer 9 Скачать руководство пользователя страница 84](http://html1.mh-extra.com/html/omron/sysmac-cx-programmer-9/sysmac-cx-programmer-9_operation-manual_744241084.webp)
58
Function Block Applications Guidelines
Section 2-5
Passing Values from or
Monitoring Output
Variables
To paste into the program and then pass values outside (the program) from
the function block for each instance, or monitor values, use output variables.
The following restrictions apply.
• Values are passed from output variables to output parameters all at once
after algorithm execution.
Input-Output Variables to
Return FB Processing
Results from Values
Passed from Input
Parameters to Output
Parameters
An input-output variable can be used to implement the functionality of both
input and output parameters. Internal operation involves passing the address
set for the parameter to the input-output variable, but the use of the input-out-
put variable inside the function block is the same as that of other variables.
Input-Output Array
Variables to Pass Large
Amounts of Data
Input-output variables can be set as arrays (which is not possible for input
variables and output variables). If an input-output array variable is used, a
range of addresses of the specified size starting from the address set for the
input parameter can be used inside the FB. Input-output variables should thus
be used when it’s necessary to pass large quantities of data to a function
block.
W 0.00
OK_ Flag
NG_ Flag
W 0.01
Program
Instance for function block definition A.
The actual value is
passed.
Variable for passing a value outside or monitoring:
Use an output variable.
D100 a
a
D100
a
D100
Program Section
Instance of FB definition A
Specify an address for the input parameter;
the address will be passed to the FB.
D100 can be used
in the rest of the
program after being
changed in the FB.
Use an input-output variable to implement
both input and output variable functions
while changing the value in the FB.
Contents can be changed in the FB.
This address
is passed.
(Example: WORD data type)
"a" indicates D100.
D200 Da ta
Data
D200
D201
D209
Data
D200
Program Section
Instance of FB definition A
Specify an address for the input parameter;
the address will be passed to the FB.
D200 to D2009 can
be used in the rest
of the program after
being changed in
the FB.
Use an input-output variable to pass large
quantities of data to the FB (only the first
address is actually passed).
Contents can be changed in the FB.
This address
is passed.
WORD data
Array setting
10 elements
"Data[0]" indicates D200.
"Data [1]" indicates D201
Etc.
Содержание SYSMAC CX-Programmer 9
Страница 2: ......
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 8: ......
Страница 16: ...xvi ...
Страница 20: ...xx ...
Страница 26: ...xxvi Application Precautions 4 ...
Страница 27: ...Part 1 Function Blocks ...
Страница 28: ......
Страница 154: ...128 Procedures Section 3 2 ...
Страница 155: ...Part 2 Structured Text ST ...
Страница 156: ......
Страница 160: ...134 CX Programmer Specifications Section 4 2 ...
Страница 206: ...180 Procedures Section 6 1 ...
Страница 208: ...182 System defined external variables supported in function blocks Appendix A ...
Страница 230: ...204 Revision History ...
Страница 231: ......