Miscellaneous
Section 3-5
91
3-5 Miscellaneous
3-5-1 Array
Variables
Array variables can be used with CX-Programmer.
Array variables can handle a wide selection of data elements of the same data type.
Individual values in an array variable are specified using an indexed variable name.
Example: Variable Name [Index]
The index of an array variable indicates the position of the data element within the
array.
Example: bflag[5] (Numeric Value)
Example: bflag[a]
(Variable)
Example: bflag[a+b]
(Variable and Arithmetic Operators)
For SFC programs, ladder programs, action programs within SFC programs, and
ladder programs within transition programs, the index must be a numeric value.
Variables cannot be used as the index.
For ST programs, the index can be defined by both numeric value and variables.
For CJ2-series CPU Units, the index can be defined by both numeric value and
variables for ladder programs.
Note:
For details on array variables, refer to the
CX-Programmer Operation Manual
(Cat. No.
W446) and the
CX-Programmer Operation Manual – Function Blocks and Structured Text
(Cat. No. W447).
Inserting an Array Variable
1 In the project workspace, select and right-click
Symbols
folder, and select
Insert
Symbol
from the pop-up menu.
2 Specify the variable in the displayed New Symbol dialog, and click
Advanced
Settings
.
Summary of Contents for SYSMAC CX-Programmer 8.1
Page 1: ...Operation Manual SFC Programming SYSMAC WS02 CXPC1 V8 CX Programmer Ver 8 1 Cat No W469 E1 04...
Page 2: ...ii CX Programmer Ver 8 1 WS02 CXPC1 V8 Operation Manual SFC Programming Revised February 2009...
Page 16: ......
Page 56: ...Precautions When Creating SFC Programs Section 1 5 40...
Page 118: ...Monitoring Section 4 5 102...
Page 150: ...Index 134...
Page 152: ...Revision History 136...
Page 153: ......
Page 154: ......