Restrictions On Variable Names And Other Program-Related Names; Bytes - Omron NJ-series User Manual

Machine automation controller cpu unit software
Hide thumbs Also See for NJ-series:
Table of Contents

Advertisement

6-3-12 Restrictions on Variable Names and Other Program-related
Names
The following is a list of restrictions on program-related names.
Character Restrictions
Program-related
name
Variable name
(including POU
instance names)
POU definition
names
Data type
Structure member
names and union
member names
Enumerators
Task names
Namespaces
Full paths of vari-
able names
Device names
Section names
Axis names
Axes group names
Cam table names
* For UTF-8, single-byte alphanumeric characters each use 1 byte. Multibyte characters each use more than 1
byte. Japanese characters require approximately 3 bytes.
Reserved Words
An error is detected during the program check for the following names.
• A name that is the same as any of the instructions that are described in NJ-series Instructions Refer-
ence Manual (Cat. No. W502)
• A name that is the same as any of the instructions that are described in NJ-series Motion Control
Instructions Reference Manual (Cat. No. W508)
• Words that are reserved by the system
NJ-series CPU Unit Software User's Manual (W501)
Applicable characters
 Usable characters
• 0 to 9, A to Z, and a to z
• Single-byte kana
• _ (underlines)
• Multibyte characters (e.g., Japa-
nese)
Refer to Reserved Words below
for a list of the reserved words.
 Characters that cannot be used
together
• A text string that starts with a
number (0 to 9)
• Strings that start with "P_"
• A text string that starts in an
underline (_) character
• A text string that contains more
than one underline (_) character
• A text string that ends in an
underline (_) character
• Any text string that consists of
an identifier and has a prefix or
postfix which contains more
than one extended empty space
character (i.e., multi-byte spaces
or any other empty Unicode
space characters)
Multibyte
Case
Reserved
character
sensitiv-
words
compatibil-
ity
Refer to
Supported.
Not case
Reserved
sensitive.
Words
below.
Case
sensitive.
Not case
sensitive.
6 Programming
Maximum
Charac-
size (not
ter
including
ity
encoding
NULL)

127 bytes

UTF-8*
63 bytes
93 bytes
Network vari-
able: 255
bytes
Other: 511
bytes
127 bytes
6-65
6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents