EasyManuals Logo
Home>Omron>Controller>NJ Series

Omron NJ Series User Manual

Omron NJ Series
668 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 #311 background imageLoading...
Page #311 background image
6 Programming
6-124
NJ-series CPU Unit Software User’s Manual (W501)
Precautions for Correct UsePrecautions for Correct Use
• An error is detected during the program check in the following cases.
• If a namespace that does not exist is declared
• If you declare more than one namespace for one POU definition, and a POU definition, data
type, or other entity with the same name exists in two or more namespaces
• An error will occur when you build the program if the same name is used as follows for different
POU definitions or data types.
• If the same name is used for the namespace of a POU definition and at a higher level in the
namespace
• If the same name is used in a declared namespace
• If the same name is used without a namespace
Additional Information
You cannot set a namespace for a program name. However, you can declare namespaces for
objects that are used in the algorithm of the program.
Use the Sysmac Studio to set the namespaces and then declare them. Perform steps 1 and 2 when you
create data types or when you create function definitions, function block definitions, or other objects.
Declare a namespace with step 3 to use an object for which a namespace is set.
1
In the Data Type Editor, set the namespace for the data type.
2
Set the namespace in the properties of the function definition or function block definition.
3
In the Ladder Editor or ST Editor, declare the namespace in the properties of the function defini-
tion or function block definition.
4
Use the data types, function definitions, and function block definitions in the user program.
Refer to the Sysmac Studio Version 1 Operation Manual (Cat. No. W504-E1-03 or higher) for spe-
cific procedures.
6-7-3 Procedure for Using Namespaces
System_B
System_A\Lifter
Namespace
Entity
Short name
System_B
None
Function block definition
Function block definition
Function block definition
Process_A
Process_B
Process_A
The name is used in a declared namespace.
The name is used at a higher level than the namespace
of the POU definition.
The name is used without a namespace.
Process_A
Function block definition
Process_A
System_A
The name is used in the namespace of the POU definition.
Not
allowed.
Not
allowed.
Not
allowed.
Not
allowed.
The following notation is used in the namespace
declaration for the Process_A function block definition.

Table of Contents

Other manuals for Omron NJ Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ Series and is the answer not in the manual?

Omron NJ Series Specifications

General IconGeneral
BrandOmron
ModelNJ Series
CategoryController
LanguageEnglish

Related product manuals