Parentheses with arithmetic commands, 1 addition, 2 subtraction – HEIDENHAIN TNC 335 Technical Manual User Manual

Page 453: 3 multiplication, 4 division, 7 parentheses with arithmetic commands, 1 addition [ ] (+[ ]), 2 subtraction [ ] (–[ ]), 3 multiplication [ ] (x[ ]) x, 4 division [ ] (/[ ])

Advertising
background image


7-74

TNC 360

3 Commands

8/95

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

Advertising