Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1635

Hide thumbs Also See for MANUALplus 620:

Advertisement

8.12.7 PLC modules for the SQL statements
January 2012
Module 9440 Open a transaction
Module 9440 executes the SELECT statement that is given to the module. For
a description of the supported queries, see "SELECT" on page 1628. If the
statement was executed successfully, a transaction is opened and its handle
is returned. This handle can be used to read data from a machine table (tool
table, for example), or to change data in the table. The cursor is placed on the
first record of the result set. In order to save changes to the tables, the
transaction must be concluded and closed with Module 9441 after changing
the records.
If the statement contains a string :'Bnnn' or :'Wnnn' or :'Dnnn' (with nnn
reading as number from 0 to the maximal number of BYTEs, WORDs or
DWORDs respectively), this string is replaced by the integer value found in the
associated PLC data.
Constraints:
The module can only be executed within a submit job.
No more than 10 transactions may be open at the same time.
Possible errors:
The module was not called in a submit job
The statement is syntactically not correct
The table given does not exist, is not accessible or is fully or partially locked
The columns given do not exist within the table
No records were selected
Call:
PL
B/W/D/K/S<Valid SQL statement>
CM
9440
PL
D
<Transaction handle>
PL
B/W/D
<Error number>
For the meaning of the error number, see "Return codes of
PLC Modules 9440 to 9459 (error stack)" on page 1652.
Error recognition:
Marker
Value
NN_GenApiModule
0
Error
1
8.12 Tables
Meaning
Transaction was successfully opened
Error. See <Error number>
1635

Advertisement

loading