![Omron SYSMAC CX-Programmer 9 Operation Manual Download Page 123](http://html1.mh-extra.com/html/omron/sysmac-cx-programmer-9/sysmac-cx-programmer-9_operation-manual_744241123.webp)
97
Procedures
Section 3-2
Operands with Sizes Affected by Other Operands
Example: Five Transfer Words, D0 Specified for the First Source Word, and
D100 Specified for the First Destination Word for XFER(070)
↓
As shown below, the variables must be changed to set the first elements in
two different arrays after the function block definition has been generated.
Example: DT_WORD1 and DT_WORD2 are set as WORD array variables
with 5 elements each. DT_WORD1[0] is specified for the first word for the first
operand and DT_WORD2[0] is specified for first word for the second operand
of XFER(070).
3-2-4
Creating Instances from Function Block Definitions
If a function block definition is registered in the global symbol table, either of
the following methods can be used to create instances.
Method 1:Select the function block definition, insert it into the program, and
input a new instance name. The instance will automatically be registered in
the global symbol table.
Method 2: Set the data type in the global symbol table to “FUNCTION
BLOCK,” specify the function block definition to use, and input the instance
name to register it.
Note
When using ST language, a function block can be called by select-
ing “FUNCTION BLOCK” as the variable’s data type, using the de-
sired instance name, and entering a function block call statement.
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: ......