Omron CX-PROGRAMMER V9 Operation Manual page 146

Table of Contents

Advertisement

OMRON
If the new member is an array, input the number of elements in the array.
4. Click the OK Button. The member will be inserted.
• Registering Data Structure Symbols
To insert a symbol into the symbol table, select a registered structure data type in data type view.
Note: Data structure information will not be updated if you edit data structures in the symbol table and then
Rules for Address Allocation to Structure Symbols
When the first address is set for a structure symbol, addresses are automatically allocated in the
order that the members are registered.
If there are members with a BOOL data type, addresses are allocated as described below. Some
addresses may not be used.
Specifications of Structure Symbols
Creating Data Types for Data Structures
• Member Data Types
The following data types can be used for members.
BOOL, WORD, DWORD, LWORD, INT, DINT, LINT, UNIT, UDINT, ULINT, REAL, LREAL,
and user-defined structure data types
• Memory Areas That Can Be Allocated to Structure Symbols
Addresses in the following memory areas can be allocated to structure symbols.
download only the symbol table to the PLC. When you download a symbol table that contains data
structures, always download the symbol table and the program together.
BOOL Members Mixed with Non-BOOL Members
Addresses in different words are allocated to the members.
Example:
D0.0 is allocated to Member1 (BOOL) and D1 is allocated to the next member, Member2
(INT).
Consecutive BOOL Members
Bits in the same word are allocated to consecutive BOOL members.
Example:
D0.0 is allocated to Member1 (BOOL) and D0.1 is allocated to the next member, Member2
(BOOL).
If more than 16 consecutive bits are required, bits in the next word are allocated.
Non-consecutive BOOL Members
Addresses in different words are allocated to the BOOL members.
Example:
D0.0 is allocated to Member1 (BOOL), D1 is allocated to Member2 (INT), and D2.0 is
allocated to Member3 (BOOL).
BOOL Members That Are Arrays Next to BOOL Members That Are Not Arrays
Addresses in different words are allocated to the members that are arrays and to the
members that are not.
Example:
D0.0 is allocated to Member1 (BOOL) and bits starting with D1.0 are allocated to the next
member, Member2 (BOOL array).
Consecutive BOOL Array Members
Addresses in different words are allocated to the BOOL members.
Example:
Bits starting with D0.0 are allocated to Member1 (BOOL array) and bits starting with D1.0
are allocated to the next member, Member2 (BOOL array).
PART 1: CX-Programmer
CHAPTER 4 – Reference
CX-Programmer _Page 63

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents