![Omron CX-PROGRAMMER V8.1 Operation Manual Download Page 122](http://html1.mh-extra.com/html/omron/cx-programmer-v8-1/cx-programmer-v8-1_operation-manual_744203122.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 CX-PROGRAMMER V8.1
Page 3: ...iv...
Page 5: ...vi...
Page 7: ......
Page 15: ...xvi...
Page 19: ...xx...
Page 25: ...xxvi Application Precautions 4...
Page 26: ...Part 1 Function Blocks...
Page 27: ......
Page 153: ...128 Procedures Section 3 2...
Page 154: ...Part 2 Structured Text ST...
Page 155: ......
Page 159: ...134 CX Programmer Specifications Section 4 2...
Page 205: ...180 Procedures Section 6 1...
Page 207: ...182 System defined external variables supported in function blocks Appendix A...
Page 229: ...204 Revision History...
Page 230: ......