EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #760 background imageLoading...
Page #760 background image
2 Instruction Descriptions
2-712
NJ-series Instructions Reference Manual (W502)
Size of variable name of DstDat The size of the variable name is calculated as the total bytes for the ASCII
characters in all structure levels plus two times the number of levels.
If the number of bytes of ASCII characters in a level is an odd number, add
1.
If a level in the structure is an array, add four times the number of dimen-
sions in the array.
Periods and commas in the structure and arrays are not included in the vari-
able name size.
Example 1: When the Variable Name of DstDat Is aaa.bbbbb[1,2,3].cc
The text string “aaa” in the first level is 3 bytes. It is an odd number, so 1 is
added to make 4 bytes.
The text string “bbbbb[1,2,3]” in the second level is 5 bytes. It is an odd
number, so 1 is added to make 6 bytes.
Also bbbbb[1,2,3] is a three-dimensional array, so 3 times 4, or 12, is
added to make 18 bytes.
The text string “cc” in the third level is 2 bytes. It is an even number, so 2
bytes is used in the calculation.
If we add the number of levels 3 times 2, or 6, to 4 bytes for the first level,
18 bytes for the second level, and 2 bytes for the third level, the size of the
variable name come to 30 bytes.
Example 2: When the Variable Name of DstDat Is val
The text string “val” in the first level is 3 bytes. It is an odd number, so 1 is
added to make 4 bytes.
If we then add the number of levels 1 times 2, or 2, the size of the variable
name is 6 bytes.
Example 3: When the Variable Name of DstDat Is array[8].
The text string “array” in the first level is 5 bytes. It is an odd number, so 1
is added to make 6 bytes.
It is a one-dimensional array. Therefore, 1 times 4, or 4, is added.
If we then add the number of levels 1 times 2, or 2, the size of the variable
name is 12 bytes.
Item in above formula Meaning

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals