Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1649

Hide thumbs Also See for MANUALplus 620:

Advertisement

January 2012
Module 9455 Read a single numeric value from a table
Module 9455 reads a single value from a table and converts it to a binary value.
The value is chosen via a given SELECT statement.
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 corresponding PLC data.
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 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.
Possible errors:
The module was not called in a submit job
An invalid string address is given to the module
The given table does not exist or is not accessible
The column given does not exist in the table
The column does not hold a numerical value
More than one column was named in the statement
No record or more than one record were selected by the statement
Call:
PS
B/W/D/K <Valid SQL statement>
CM
9455
PS
B/W/D
<Element value>
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
Value was read
Error. See <Error number>
1649

Advertisement

loading