Database Access Instructions; Importing Data To The Data Base - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

7.21

Database Access Instructions

The database access instructions add, update, obtain, or delete data with respect to the tabular data such as product and
production information managed as databases in the programmable controller.
These instructions construct a database from the Unicode text file that defines information such as a table configuration, and
operates the database thus constructed. ( MELSEC iQ-R CPU Module User's Manual (Application))

Importing data to the data base

DBIMPORT(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions import the data stored in the Unicode text file at the path specified by (s) and construct a database.
Ladder
(s)
FBD/LD
EN
ENO
s
d1
d2
■Execution condition
Instruction
DBIMPORT
DBIMPORTP
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Start device for storing the Unicode text file name
Example: "2:\database1\recipe\recipe_db.txt"
Within 255 characters
(d1)
Completion device (start device that turns on one scan
upon completion of instruction)
• (d1)+0: Completion signal
• (d1)+1: Error completion signal
(d2)
Completion status
• 0000: Normal completion
• Other than 0000: Error completion (error code)
EN
Execution condition
ENO
Execution result
7 APPLICATION INSTRUCTIONS
946
7.21 Database Access Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(d1) (d2)
Execution condition
ST
ENO:=DBIMPORT(EN,s,d1,d2);
ENO:=DBIMPORTP(EN,s,d1,d2);
Range
Data type
Unicode string
Bit
Word
Bit
Bit
Data type (label)
ANYSTRING_DOUBLE
ANYBIT_ARRAY
(Number of elements: 2)
ANY16
BOOL
BOOL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents