ISaGRAF. Version 3.4


MOD


:

IN INT

Base INT

Q INT ( MOD )

-1 Base <= 0

:

.

(*FBD MOD*)

(* ST : *)

division_result := (value / divider); (* *)

rest_of_division := MOD (value, divider); (* *)

(* IL : *)

LD value

DIV divider

ST division_result

LD value

MOD divider

ST rest_of_division