1652 HEIDENHAIN Technical Manual iTNC 530 HSCI
Examples of
OEMRules.py
Examples of configuring a table column:
The rules are executed sequentially one after the other, thereby enabling you
to nest the rules. The last applicable rule determines the displayed value.
First example
The column rule_tt is filled with the values from column T of the tool table
(’=’):
rule_tt = {
’name’ : ’T’
,’type’ : ’float’
,'sort' : 'letter_before_number'
,'align' : 'center'
,’gettext’ : ’false’
,’value’ : (
(’\\TABLE\\TOOL\\T\\?\\T’, ’=’)
)
}
Second example
The column rule_pocket is filled with the values from column P of the pocket
table (’=’). However, only the pocket number is entered. If the pocket number
is equal to 0 (’==’, ’0’, ’DB_Spindle’), then the text from ’DB-SPINDLE’ will
be displayed.
rule_pocket = {
’name’ : ’DB_POCKET’
,’type’ : ’str’
,'sort' : 'number_before_letter,blanks_on_bottom'
,'align' : 'left'
,’gettext’ : ’true’
,’value’ : (
((’\\TABLE\\TOOL_P\\P\\?\\P’, ’.P’), ’=’)
,((’\\TABLE\\TOOL_P\\P\\?\\P’, ’.P’), ’==’, ’0’, ’DB_SPINDLE’)
)
}