Omron WS02-CXPC1-V9 - V9 Operation Manual page 187

Table of Contents

Advertisement

Statement Descriptions
Note
Note
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)
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)
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
Name
Data type
FB definition
Content
Any instance name
Calcu_execute
FUNCTION BLOCK
FUNCTION BLOCK
Selects the called func-
Calculation
tion block definition.
Section 5-5
Example
161

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cx-programmer 9Sysmac ws02-cxpc1-v9

Table of Contents