Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1647

Hide thumbs Also See for MANUALplus 620:

Advertisement

January 2012
Module 9453 Fetch binary data from the result set of a query
Module 9453 reads a record from a table and converts the data in the selected
columns to binary values. There must already be a transaction open whose
transaction handle is given to the module. The column values are copied to a
number of successive DWORDs. The index of the first DWORD and the
number of DWORDS are given to the module.
Data in a column of the type
SIGN are converted to 0 or –1.
BOOL are converted to 0 (FALSE) or +1 (TRUE).
INDEX are each converted to a DWORD.
REAL are converted to a DWORD by shifting the decimal separator to the
right according to the maximum number of decimal places.
For example, if the value 10.5 is in the table, Module 9453 supplies the value
105000.
LENGTH and FEED are converted to a DWORD.
Measurements in INCH are converted to metric units.
Constraints:
The module can only be executed within a submit job.
There must already be a result set before Module 9453 can be used.
Possible errors:
The module was not called in a submit job
No transaction was opened for the given handle
No record was fetched
The given number of DWORDs does not match the number of values
The given range of DWORDs does not fit into the available memory
Call:
PS
B/W/D/K <Transaction handle>
PS
B/W/D/K <Index of the first DWORD>
PS
B/W/D/K <Number of the DWORDs to store>
CM
9453
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
Data were read and converted
Error. See <Error number>
1647

Advertisement

loading