Opening The Data Base - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Opening the data base

DBOPEN(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions connect to the database specified by (s) and make it available.
Ladder
(s)
FBD/LD
EN
ENO
s
d1
d2
d3
■Execution condition
Instruction
DBOPEN
DBOPENP
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Start device for storing the folder path of the database to be
opened.
Example: "2:\database1\recipe"
Within 128 characters
(d1)
Database identification number
(d2)
Completion device (start device that turns on one scan
upon completion of instruction)
• (d2)+0: Completion signal
• (d2)+1: Error completion signal
(d3)
Completion status
• 0000: Normal completion
• Other than 0000: Error completion (error code)
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s)
(d1)
(d2)
(d3)
7 APPLICATION INSTRUCTIONS
952
7.21 Database Access Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(d1)
(d2) (d3)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
ST
ENO:=DBOPEN(EN,s,d1,d2,d3);
ENO:=DBOPENP(EN,s,d1,d2,d3);
Range
1 to 4
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Data type
Data type (label)
Unicode string
ANYSTRING_DOUBLE
16-bit signed binary
ANY16
Bit
ANYBIT_ARRAY
(Number of elements: 2)
Word
ANY16
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents