Creating A Database - Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual

Melsec iq-r series cpu module application user's manual
Table of Contents

Advertisement

Creating a database

This section describes the procedure for creating a database to be used with the CPU module database access function. A
database can be created with the following methods.
• Storing the database folder
• DBIMPORT(P) instruction (a database access instruction)
Storing the database folder
Store the database folder in an SD memory card.
1.
For the database folder, please consult your local Mitsubishi representative.
2.
Create the CPUDB folder directly under the root directory of the SD memory card from the personal computer. (1)
3.
Store the database folder (default database name: my_db_vv
*1 "vv" indicates the version of the database folder.
(1)
Root directory
CPUDB
• The name of the database folder stored is recognized as the database name. The maximum number of characters in the
folder path to the database folder is 128. The characters that can be used for a database name is the same as the Unicode
text file specified by using the DBIMPORT(P) instruction. ( Page 237 Setting details of Unicode text file)
• Only the CPUDB folder directly under the root directory can be used as the storage location of the database. In the CPUDB
folder, store database folders only.
• Up to 32 folders can be stored in the CPUDB folder.
• If data other than the database folder or 33 database folders or more is stored in the CPUDB folder, starting up of the
ODBC server is failed and an error code is stored in SD1498 (Start-up status of CPU module database).
■Precautions
Do not change, delete, or create a file and folder in the database folder from the personal computer. Otherwise, the CPU
module database access function and database access instructions are completed with an error. If the above mentioned
operations are performed from the personal computer, delete the database folder in the CPU module and create the new one.
DBIMPORT(P) instruction (a database access instruction)
Use the DBIMPORT(P) instruction and create a database in an SD memory card according to the setting of the Unicode text
file.
• For details on the Unicode text file, refer to the following.
Page 237 Setting details of Unicode text file
• For details on the DBIMPORT(P) instruction, refer to the following.
 MELSEC iQ-R Programming Manual (CPU Module Instructions, Standard Functions/Function Blocks)
*1
) in the CPUDB folder. (2)
(2)
my_db_vv
Up to 32 folders
XYZ_DB
13.3 CPU Module Database Access (from External Device) Function
13 DATABASE FUNCTION
13
245

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents