Stored Procedure Call Function (Communication Action) - Mitsubishi Electric Melsec Q Series User Manual

Programmable contoller mes interface module
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

6
FUNCTIONS

6.1.7 Stored procedure call function (Communication action)

The stored procedure call function starts up a stored procedure in the database.
By executing a stored procedure in the database, the variety and complex control can be
performed for the data in the database.
For the stored procedure call function settings, refer to the following:
The stored procedure call function is used to pass/receive the values to/from the stored
procedure by setting tag components or temporary variables to the arguments (input
arguments, output arguments, and input/output arguments) or return value of the stored
procedure.
When the temporary variable is received a value, it can be used as a variable for other
actions.
(1) Considerations for the stored procedure call function
6
- 11
6.1 DB Interface Function
6.1.7 Stored procedure call function (Communication action)
Section 7.11.3 Setting items in Communication action (Stored procedure)
Stored procedure call function
Tag Component
Temporary variable
Constant
Figure 6.9 Stored procedure call function (Communication action)
(a) Database type
The stored procedure call function is supported by the following database types.
• Oracle 10g/11g/12c
• SQL Server 2008/2012/2014/2016/2017
(b) Return value
When the database is Oracle 10g/11g/12c, a stored procedure has no return
value.
If the return value is required, use the output argument or input/output argument.
(c) Commit execution
When the database is Oracle 10g/11g/12c, do not commit in a stored procedure.
Rollback to before the job execution cannot be performed when the job execution
failed.
(For the operation at job execution failure, refer to
an error occurs in job execution)
A commit is executed by MES interface module after the job completion.
(d) Result set
The result set cannot be acquired from a stored procedure.
For SQL Server 2008/2012/2014/2016/2017, return values, output arguments and
input/output arguments of a stored procedure which returns a result set cannot be
acquired.
Stored procedure execution request
Data
Data
Database server computer
Stored procedure
Database
Section 6.1.11 (2) When

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qj71mes96Qj71mes96nSw1dnc-mesif-e

Table of Contents