3.7 Parentheses with arithmetic Commands
Execution time and code length are summarised respectively for the "open-parentheses" and
corresponding "close-parentheses" commands.
3.7.1 ADD [ ] (+[ ])
Abbreviation for PLC Editor:
Execution time [µs]
Number of bytes
Operands: none
3.7.2 SUBTRACT [ ] (–[ ])
Abbreviation for PLC Editor:
Execution time [µs]
Number of bytes
Operands: none
3.7.3 MULTIPLICATION [ ] (x[ ])
Abbreviation for PLC Editor:
Execution time [µs]
Number of bytes
Operands: none
Marker M3168 is set if an error occurs.
3.7.4 DIVISION [ ] (/[ ])
Abbreviation for PLC Editor:
Execution time [µs]
Number of bytes
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
Marker M3169 is set if an error occurs.
01.98
TNC 407/TNC 415/TNC 425
+ [ ] (PLUS [ ])
Logic
Byte/Word/Double
-----
0.9 to 2.2
-----
6
– [ ] (MINUS [ ])
Logic
Byte/Word/Double
-----
0.9 to 2.1
-----
6
x [ ] (MULTIPLY [ ])
Logic
Byte/Word/Double
-----
3.7 to 4.7
-----
12
/ [ ] (DIVIDE [ ])
Logic
Byte/Word/Double
-----
6.5 to 7.5
-----
16
3 Commands
7-85