Documentation

MOD

Function name

MOD

ST call

PROGRAM MOD_DEMO
VAR
REAL1,REAL2,REAL3: REAL;
END_VAR
REAL3:= MOD(IN1:=REAL1, IN2:=REAL1);
END_PROGRAM

Description

Returns the remainder after division of the input values.

Inputs

Input Type Description
IN1 ANY_NUM Input value
IN2 ANY_NUM Input value

Outputs

Output Type Description
=> ANY_NUM Output value

Application example