7.7.44 ADDITION [ ] (+[ ])
December 2001
Syntax:
+[ ] (PLUS[ ])
Operands:
None
Action:
Use parentheses together with arithmetical commands only for word
processing. By using parentheses you can change the sequence of processing
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 TNC saves the result in the accumulator again. Maximum
nesting depth: 16 parentheses. If an error occurs during calculation, the TNC
sets the marker M4201.
To improve clarity, the contents of the accumulator and operand are shown in
decimal notation. The ten-digit accumulator results from the greatest possible
accumulator content (2 147 483 647).
Commands
7 – 129