6-127
6 Programming
NJ-series CPU Unit Software User’s Manual (W501)
6-8 Libraries
6
6-8-4 Procedure to Use Libraries
You can set the following for each library object.
* These items can be set only for functions and function blocks. They are set in the POU definition properties on
the Sysmac Studio.
Use the following procedures to create and use libraries.
Create a project to use as the library. Use the following procedure to create and save a library.
1
Create a library project.
When you create the project, select a library project as the project type in the Project Window.
2
Create library objects.
In the library project, create the required POU definitions and data types, and then check them
to make sure that they operate correctly.
3
Set the properties of the library.
Set the properties of the library project, including selecting the library objects, hiding/displaying
source code, and attached files.
4
Save the project as a library file.
Save the project in a library file in the Create Library File Dialog Box.
• You can change an existing project to a library project as long as the only device that is regis-
tered in the project is a Controller. Simply change the project type in the project properties to a
library project.
• You can create data that cannot be used as library objects in a library project. However, you
cannot select any of this data as library objects.
• We recommend that you use namespaces for names of the functions, function block defini-
tions, and data types that you create as library objects to prevent duplicating names with other
libraries. For details on namespaces, refer to 6-7 Namespaces.
Library Object Settings
Property Definition
Name The name of the library object.
Namespace The namespace of the library object.
Version* The version of the library object.
Author* The creator of the library object. (optional)
Creation date* The date that the library object was created.
Update date* The date that the object library was last updated.
Comment A comment on the library object. (optional)
6-8-4 Procedure to Use Libraries
Procedure to Create Libraries