Adding A Record 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

Adding a record to the data base

DBINSERT(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions add a record to the table of the database corresponding to the specified identification number.
Ladder
(s1)
FBD/LD
EN
ENO
s1
d1
s2
d2
s3
s4
■Execution condition
Instruction
DBINSERT
DBINSERTP
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Database identification number
(s2)
Start device for storing the database table names.
(s3)
Start device for storing the database field names.
(s4)
Start device for storing insertion data
(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: Completed successfully
• Other than 0000: Completed with an error (error code)
EN
Execution condition
ENO
Execution result
*1 The table and field names are case-sensitive.
*2 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
7 APPLICATION INSTRUCTIONS
956
7.21 Database Access Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(s2)
(s3)
(s4)
(d1)
(d2)
Execution condition
ST
ENO:=DBINSERT(EN,s1,s2,s3,s4,d1,d2);
ENO:=DBINSERTP(EN,s1,s2,s3,s4,d1,d2);
Range
1 to 4
*1
*1
Data type
Data type (label)
16-bit signed binary
ANY16
Unicode string
ANYSTRING_DOUBLE
Word
ANY16
Word
ANY16
Bit
ANYBIT_ARRAY
(Number of elements: 2)
Word
ANY16
Bit
BOOL
Bit
BOOL
*2
*2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents