Parentheses with arithmetic commands, Addition [ ] (+[ ]), Subtraction [ ] (–[ ]) – HEIDENHAIN TNC 306 Technical Manual User Manual
Page 363: Multiplication [ ] (x[ ]), Division [ ] (/[ ]), 7 parentheses with arithmetic commands, 1 addition [ ] (+[ ]), 2 subtraction [ ] (–[ ]), 3 multiplication [ ] (x[ ]) x, 4 division [ ] (/[ ])
3/2000
TNC 416/TNC 406/TNC 306
Commands
7-73
3.7
Parentheses with arithmetic commands
Execution time and code length are summarized respectively for the "open-parentheses" and
corresponding "close-parentheses" commands.
3.7.1 ADDITION [ ] (+[ ])
+ [ ]
Abbreviation for PLC Editor:
+ [ ] (PLUS [ ])
Logic
Byte/Word/Double
Execution time [µs]
-----
2.6
Number of bytes
-----
6
Operands: none
3.7.2 SUBTRACTION [ ] (–[ ])
– [ ]
Abbreviation for PLC Editor:
– [ ] (MINUS [ ])
Logic
Byte/Word/Double
Execution time [µs]
-----
3.2
Number of bytes
-----
6
Operands: none
3.7.3 MULTIPLICATION [ ] (x[ ])
X [ ]
Abbreviation for PLC Editor:
x [ ] (MULTIPLY [ ])
Logic
Byte/Word/Double
Execution time [µs] *)
-----
11.0
Number of bytes
-----
12
Operands: none
3.7.4 DIVISION [ ] (/[ ])
/ [ ]
Abbreviation for PLC Editor:
/ [ ] (DIVIDE [ ])
Logic
Byte/Word/Double
Execution time [µs] *) **)
-----
20.2
Number of bytes
-----
16
In the event of an error (Divisor = 0) in the Division and MODULO functions, the execution time will
be in the range 0.9 to 1.3 µs.
Operands: none
*) See Multiplication
**) See Division