Equal To [ ] (==[ ]) - HEIDENHAIN iTNC 530 HSCI Technical Manual

Hide thumbs Also See for iTNC 530 HSCI:
Table of Contents

Advertisement

9.8.48 EQUAL TO [ ] (==[ ])

1804
==[ ] (EQUAL[ ])
Syntax:
None
Operands:
Action:
By using parentheses you can change the sequence of processing
comparative commands in a statement list. The opening-parenthesis
command puts the content of the word accumulator onto the program stack.
This clears the accumulator for calculation of intermediate results.
The closing-parenthesis command gates the buffered value from the program
stack with the content of the word accumulator. The iTNC saves the result in
the accumulator again. Maximum nesting depth: 16 parentheses.
Comparative commands cause a direct transition from word to logical
processing. If the specified comparative condition is true, the iTNC sets the
logic accumulator to 1; if the condition is not fulfilled, it sets it to 0.
Example:
Multiply a constant with double word D36, compare the result with double
word D12, and assign the result to output O15.
Initial state:
Constant
= 1000 (dec)
Double word D12
= 15000 (dec)
Double word D36
= 10 (dec)
Output
O15
= ?
Function
Load the double word
D12 into the word
accumulator.
Opening parenthesis:
Buffer the accumulator
content onto the program
stack.
Load the constant into the
word accumulator.
Multiply the content of
the word accumulator
with double word D36.
Closing parenthesis: Gate
the accumulator content
with the program stack
(==[, >=[ ...); if condition
not fulfilled, set logic
accumulator to 0.
Assign the result to
output O15.
STL
Accumulator
content
L D12
15000
== [
L K1000 1000
x D36
10000
]
= O15
0
HEIDENHAIN Technical Manual iTNC 530 HSCI
Operand content
15000
10
0

Advertisement

Table of Contents
loading

Table of Contents