Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 952

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• These instructions export the data in the database stored in the database folder at the path specified by (s) to the Unicode
text file.
• The Unicode text file is created in the folder where the database folder is stored. The file name is "database_name.txt". If
the same Unicode text file already exists, the file is overwritten with the exported data.
Ex.
When the path of the database folder is "2:\database\recipe1", executing the instruction creates Unicode text file
"2:\database\recipe1.txt" and exports data to the file.
• Upon successful completion, the completion signal in the completion device (d1)+0 is turned on and 0 is stored as the
completion status in the device (d2).
• The following figure shows the operation of the completion device at completion of the DBEXPORT(P) instruction.
Program
DBEXPORT(P) instruction
Completion device (d1)
Completion device (d1)+1
• The internal configuration of the Unicode text file to which data is exported is the same as the file to which data is imported
by the DBIMPORT(P) instruction. ( MELSEC iQ-R CPU Module User's Manual (Application))
• SM753 (File being accessed) turns on while the DBEXPORT(P) instruction is being executed.
DBEXPORT(P) instruction cannot be executed. If executed, no processing is performed. However, the instruction has been
completed with an error while the database access instruction is being executed.
• When "To Use or Not to Use the Built-in Database Access" is set to "Use" in the module parameter of the CPU module, the
DBEXPORT(P) instruction cannot be executed while SM1498 (CPU module database start-up flag) is off.
processing is performed.
• During transaction, the DBEXPORT(P) instruction cannot be executed.
*1 For the firmware versions supporting SM753 and SM1498, refer to the list of special relay areas. ( MELSEC iQ-R CPU Module
User's Manual (Application))
Precautions
In the following cases, the error completion signal in (d1)+1 is turned on and an error code is stored as the completion status
in the device (d2).
• The DBEXPORT(P) instruction is executed during execution of the database access instruction.
• The path specified by (s) is not a database.
• Writing data to the Unicode text failed due to the failure to access the database.
• The number of characters of the path (including the drive path character) specified by (s) exceeds 128.
• A database built or operated with a programmable controller CPU with firmware version "28" or later is specified in (s) for a
programmable controller CPU with firmware version earlier than "28".
• The DBEXPORT(P) instruction is executed during transaction.
7 APPLICATION INSTRUCTIONS
950
7.21 Database Access Instructions
END processing
OFF
OFF
Exporting data
from the database
END processing
END processing
ON
Error completion
ON
*1
While SM753 is on, the
*1
If executed, no

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents