Below are the standard operators that perform arithmetic operations:

Operator

Description

+
-
*
/
-

addition
subtraction
multiplication
division
integer negation (unary operator)

Below are the standard functions that perform arithmetic operations:

Function

Description

MIN
MAX
LIMIT
MOD
ODD
SetWithin

get the minimum of two values
get the maximum of two values
bound an integer to low and high limits
modulo
test if an integer is odd
force a value when inside an interval

Other topics in this chapter

+

/

- (neg)

LIMIT

MAX

MIN

MOD / MODR / MODLR

*

ODD

-

SetWithin

Arithmetic operations

IEC 61131-3 Automation platform > Programming - Reference guide > Arithmetic operations

Previous chapterNext chapter


Created with the Personal Edition of HelpNDoc: Converting Word Documents to eBooks: A Step-by-Step Guide with HelpNDoc