Section 2 NS Series Functions
2-5 Communications Address Settings
2-48
NS Series Programming Manual
2-5-2 Communications
Addresses
Memory in the host is accessed from an NS-series PT by using addresses called communications ad-
dresses. There are two types of communications addresses.
•
Direct addresses
•
Tags
A direct address specifies a specific element in host memory by using an area name and numeric ad-
dress. A tag specifies a network variable set in the PLC. Tags can be used if the project version is 8.0
or higher and connection is made to the CJ2H-CPU
@@
-EIP or the CJ2M-CPU3
@
using EtherNet/IP.
Data Types
The CX-Designer has the ability to associate names and comments with communications addresses.
In addition, the physical type of data stored at the communications address can be specified.
The following 17 types of data can be used with an NS-series PT.
Data type
Description
BOOL Bit
CHANNEL Word
UINT
Address of 1-word unsigned binary value
INT
Address of 1-word signed binary value
UINT_BCD
Address of 1-word unsigned BCD value
UDINT
First address of 2-word unsigned binary value
DINT
First address of 2-word signed binary value
UDINT_BCD
First address of 2-word unsigned BCD value
ULINT
First address of 4-word unsigned binary value
LINT
First address of 4-word signed binary value
ULINT_BCD
First address of 4-word unsigned BCD value
REAL
First address of 2-word floating-point value
LREAL
First address of 4-word floating-point value
WORD
Address of 16-bit character string
DWORD
First address of 32-bit character string
LWORD
First address of 64-bit character string
STRING
Literal character string of 1 to 255 characters
N
N
N
o
o
o
t
t
t
e
e
e
♦
STRING communications addresses cannot be created with the CX-Designer. To use STRING
communications addresses, copy STRING symbols from a symbol table of the CX-Programmer to a
symbol table of the CX-Designer.
♦
For communications addresses, all direct address data that is not set to BOOL will be treated by the
NS-series PT as CHANNEL data. Data type settings other than BOOL and CHANNEL are provided
for compatibility with the symbol tables of the CX-Programmer.
♦
The data types for internal memory are BOOL ($B/$HB/$SB) and CHANNEL ($W/$HW/$SW).
♦
If tags are used, the data type must be set to a size that is appropriate for the functional component
(bit, 1 word, or 2 words). For details, refer to
2-8-4 Numeral Display and Storage Type and Appendix
A-4-2 Using Tags
.
♦
STRING tags can store character data of1 byte times the number of characters set for the tag. For
example, up to ten characters can be stored if the number if characters of a STRING tag is set to ten
and all characters are single-byte and stored in multibyte code. Up to five characters can be stored if
all characters are double-byte and stored in multibyte code. If the characters are store in Unicode, up
to five characters can be stored. If STRING tags are used, set the number of characters and char-
acter code so that the storable character string data size is not exceeded.
♦
Only BOOL and CHANNEL can be set for the data type if the project version is lower than version
8.0.
Summary of Contents for NS10-TV Series
Page 2: ......
Page 12: ...Contents vi NS Series Programming Manual ...
Page 48: ...Section 1 Overview 1 5 Procedure before Operation 1 35 NS Series Programming Manual ...
Page 592: ...Section 3 Using PTs 3 12 Function Key Settings NS15 Only 3 35 NS Series Programming Manual ...
Page 606: ...Section 4 Using Functions 4 1 Application 4 13 NS Series Programming Manual ...