PART 1: CX-Programmer
CHAPTER 4 – Reference
OMRON
CX-Programmer _Page 74
Data Types and Timer/Counters
Information for a timer/counter on a PLC consists of three parts – a status bit, a pre-set-value and the current
value. Different data-types are used to refer to these different parts. These three parts can set to different
comments, but to set the same comment for all three parts, use I/O Comment view to input a comment - Refer to
I/O Comment View
in
Chapter 4 Reference
for further information. When there is no comment in the symbol
with a NUMBER or a UINT data-type, the comment of the symbol with a BOOL data-type will be shown on the
right of the right-busbar instead.
Note:
When defining a timer number or counter number as a variable for PLCs other than CJ2 PLCs,
use the previous method. (TIMER and COUNTER data types are supported only by CJ2H
CPU Units.)
Structure Symbols
Specifying Structure Symbols
A data structure is a user-defined data type that can contain more than one data type.
Names can be assigned to the data types.
(Supported only for CX-Programmer version 9.0 or higher and CJ2 CPU Units.)
・
Ladder Program Notation for and Inputting Structure Symbols
In a Ladder Program, the structure symbol name and member name are separated by a period.
Example:
Note:
If a member is also a data structure, another period is used to specify the member.
Period
abc . def . member1
Structure name
def
Structure name
Period
Member name
= Means “member 1 of def of abc.”
Creating Data Types for Data Structures
Use the following procedure to create a data type for data structures.
・
Inserting New Data Types for Data Structures
1. Double-click the Data Types Icon in the project workspace.
2. Select
Struct
from the Insert Menu.
The Edit Structure Dialog Box will be displayed.
3. Input a name for the structure data type.
4. Click the
OK
Button. The structure data type will be inserted into the data type view.
・
Inserting a New Member
1. To add a member as the last member of the structure data type, select the data structure.
To insert a new member before a member, select the member.
2. Select
Member
from the Insert Menu.
The Edit Structure Dialog Box will be displayed.
3. Input a name for the member.
Select the data type of the new member.
Set the array size to 0 if the new member is not an array.
abc. member1
Structure name
Period
Member name
= Means “member 1 of abc.”
Содержание CX-Programmer 9
Страница 1: ...Cat No W446 E1 10 CX Programmer Ver 9 SYSMAC WS02 CXPC_ V9 OPERATION MANUAL...
Страница 2: ......
Страница 3: ...SYSMAC WS02 CXPC V9 CX Programmer Ver 9 Operation Manual Revised December 2009...
Страница 4: ......
Страница 6: ......
Страница 19: ...CX Programmer_Page xvi Unit Versions and Lot Numbers...
Страница 30: ......
Страница 31: ...PART 1 CX Programmer...
Страница 32: ......
Страница 100: ......
Страница 120: ......
Страница 198: ...PART 1 CX Programmer CHAPTER 4 Reference OMRON CX Programmer _Page 118...
Страница 224: ...PART 1 CX Programmer Keyboard Shortcuts CX Programmer OMRON CX Programmer _Page 144...
Страница 240: ......
Страница 241: ...PART 2 CX Server PLC Tools...
Страница 242: ......
Страница 250: ......
Страница 256: ......
Страница 268: ...PART 2 CX Server PLC Tools CHAPTER 2 PLC Memory Component OMRON CX Server PLC Tools_Page 18...
Страница 286: ......
Страница 338: ......
Страница 382: ......
Страница 414: ......
Страница 430: ......
Страница 436: ......
Страница 437: ...PART 3 CX Server Runtime...
Страница 438: ......
Страница 482: ......
Страница 488: ......
Страница 504: ......
Страница 530: ......
Страница 540: ......
Страница 541: ......
Страница 542: ......