![background image](http://html1.mh-extra.com/html/omron/sysmac-cx-programmer-9/sysmac-cx-programmer-9_operation-manual_744241187.webp)
161
Statement Descriptions
Section 5-5
A: Instance name
B: Called function block definition’s input variable name
C: One of the following values, depending on the ST program being used
• Calling function block’s input variable or a constant (when ST is being
used in the function block’s instance)
• Global variable or local variable name (when ST is being used in an
ST task or SFC action program)
D: Called function block definition’s output variable name or constant
E: One of the following values, depending on the ST program being used
• Calling function block’s output variable or constant (when ST is being
used in the function block’s instance)
• Global variable or local variable name (when ST is being used in an
ST task or SFC action program)
Note
Delimit all of the “B:=C” type assignments with commas.
Delimit only the required number of “D=>E” type assignments with commas.
■
Entry Method 2
Use this method to enter just the return value specification, and omit the argu-
ment specification (called function block definition’s variable name).
A(C, .......... ,E)
A: Instance name
B: Omitted (called function block definition’s input variable name)
C: One of the following values, depending on the ST program being used
• Calling function block’s input variable or a constant (when ST is being
used in the function block’s instance)
• Global variable or local variable name (when ST is being used in an
ST task or SFC action program)
D: Omitted (called function block definition’s output variable name or constant)
E: One of the following values, depending on the ST program being used
• Calling function block’s output variable or constant (when ST is being
used in the function block’s instance)
• Global variable or local variable name (when ST is being used in an
ST task or SFC action program)
Note
When B and D are omitted, as shown above, C is moved to the B position and
passed automatically in the order that values are registered in that variable
table. In contrast, the values from the D position are automatically received at
E in the order that values are registered in that variable table.
■
Usage
Use the function block call statement to call a function block definition (ST or
ladder language) from an ST-language program.
■
Description
1.
The following instance is registered in the internal or global variables in the
variable table.
Internal variable element
Content
Example
Name
Any instance name
Calcu_execute
Data type
FUNCTION BLOCK
FUNCTION BLOCK
FB definition
Selects the called func-
tion block definition.
Calculation
Summary of Contents for SYSMAC CX-Programmer 9
Page 2: ......
Page 4: ...iv ...
Page 6: ...vi ...
Page 8: ......
Page 16: ...xvi ...
Page 20: ...xx ...
Page 26: ...xxvi Application Precautions 4 ...
Page 27: ...Part 1 Function Blocks ...
Page 28: ......
Page 154: ...128 Procedures Section 3 2 ...
Page 155: ...Part 2 Structured Text ST ...
Page 156: ......
Page 160: ...134 CX Programmer Specifications Section 4 2 ...
Page 206: ...180 Procedures Section 6 1 ...
Page 208: ...182 System defined external variables supported in function blocks Appendix A ...
Page 230: ...204 Revision History ...
Page 231: ......