You are here: Technical References > Programming Languages > PLC Standard Libraries > Arithmetic operations

Arithmetic operationsPLCopen motion icon

Below are the standard operators that perform arithmetic operations:

+ addition
- subtraction
* multiplication
/ division
- (NEG) integer negation (unary operator)

Below are the standard functions that perform arithmetic operations:

MIN get the minimum of two integers or an ANY
MAX get the maximum of two integers or an ANY
LIMIT bound an integer to low and high limits or an ANY
MOD modulo
ODD test if an integer is odd
SetWithin Force a value when within an interval

 

+ Addition

/ Divide

NEG -

LIMIT

MAX

MIN

MOD / MODR / MODLR

* Multiply

ODD

SetWithin

- Subtraction


Stay Connected with Kollmorgen

Copyright © 2015 Kollmorgen™