PART 1: CX-Programmer
OMRON
CHAPTER 4 – Reference
CX-Programmer _Page 65
E15_, E16_, E17_, E18_, E19_, E1A_, E1B_, E1C_, E1D_, E1E_, E1F_, FB, G, H, HR,
IO, IR, L, LR, S, ST, T, TIM, TK, TN, TR, W, and S
•
Predefined Character Strings
The following predefined character strings cannot be used. (These are not case
sensitive.)
BOOL, CHANNEL, COUNTER, DINT, DWORD, INT, LINT, LREAL, LWORD,
NUMBER, REAL, STRING, TIMER, UDINT, UDINT_BCD, UINT, UINT_BCD,
ULINT, ULINT_BCD, WORD, and STRUCT
Errors will not occur in the following cases even though operation will not be normal.
1.
Using the Same Structure Symbol Name More Than Once
The name of each structure symbol in one PLC must be unique.
For example, do not register structure symbols with the same name as both a global symbol and a
local symbol. Also, do not register structure symbols with the same name for two local symbols.
2.
Programs and Function Blocks with the Same Names as Structure Symbols or Members
The name of a program or function block cannot be used as the name of a structure symbol or
member in the same PLC.
Specifying Arrays
Variables can be specified as arrays with CX-Programmer Ver. 7.2 or higher (see note).
Variables can be specified as any data type, excluding STRING and NUMBER.
Note:
Only one-dimensional arrays are possible with CX-Programmer.
An array variable is specified if more than one variable of the same data type is being used and those variables
are to be managed as a group.
Perform the following procedure to specify an array variable.
1. Enter the variable name in the New Variable or Edit Variable Dialog Box and click the
Advance Settings
Button. The Detailed Settings Dialog Box will be displayed.
2. Check the Array Variable checkbox in the array settings field and enter the maximum number of elements.
In ladder, ST, and SFC languages, the array variable name must be followed by the subscript in square brackets
[ ].
For example, the variable name “PV” with three maximum elements would be specified as PV[0], PV[1], and
PV[2] in the instruction operand.
Subscripts can be specified only by directly using numbers. Subscripts cannot be specified by using variables.
Other Restrictions on the Usage of Structures
When you use structures, there are following restrictions:
♦
When any structure definitions exist on the data type view, you cannot select the
Function Block (Ladder)
Generation
menu item or the
Reusable File | Save as...
menu item in all sections.
Using Subscripts with Array Variables on the CJ2
When using a CJ2 CPU Unit, the number of the element can be directly input using the subscript of an array
variable in the ladder program. The number of the element can also be indirectly specified using a word address
or symbol. The word address or symbol that indirectly specifies the number of the element is placed into
brackets [ ] after the array variable name.
The format to specify the subscript of an array variable is as follows:
A[B]
Subscript: Element number, word address,
symbol
Array variable name
Summary of Contents for CX-PROGRAMMER V9
Page 1: ...Cat No W446 E1 12 CX Programmer Ver 9 CXONE AL_C V4 AL_D V4 SYSMAC OPERATION MANUAL...
Page 2: ......
Page 3: ...SYSMAC CX Programmer Ver 9 CXONE AL C V4 AL D V4 Operation Manual Revised July 2010...
Page 4: ......
Page 6: ......
Page 32: ......
Page 33: ...PART 1 CX Programmer...
Page 34: ......
Page 91: ......
Page 111: ......
Page 191: ...PART 1 CX Programmer CHAPTER 4 Reference OMRON CX Programmer _Page 108...
Page 217: ......
Page 233: ......
Page 234: ...PART 2 CX Server PLC Tools...
Page 235: ......
Page 243: ......
Page 249: ......
Page 261: ...PART 2 CX Server PLC Tools CHAPTER 2 PLC Memory Component OMRON CX Server PLC Tools_Page 18...
Page 280: ......
Page 333: ......
Page 377: ......
Page 409: ......
Page 430: ......
Page 431: ...PART 3 CX Server Runtime...
Page 432: ......
Page 476: ......
Page 482: ......
Page 498: ......
Page 524: ......
Page 534: ......
Page 535: ......
Page 536: ......