Committing a transaction
DBCOMMIT(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions commit the transaction in relation to the database corresponding to the specified identification number.
Ladder
(s)
FBD/LD
EN
ENO
s
d1
d2
■Execution condition
Instruction
DBCOMMIT
DBCOMMITP
Setting data
■Description, range, data type
Operand
Description
(s)
Database identification number
(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
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s)
(d1)
(d2)
7 APPLICATION INSTRUCTIONS
982
7.21 Database Access Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(d1) (d2)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
ST
ENO:=DBCOMMIT(EN,s,d1,d2);
ENO:=DBCOMMITP(EN,s,d1,d2);
Range
1 to 4
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Data type
Data type (label)
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
$