Chapter 5 Arithmetic instructions
86 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
MOD yields the module of an integer value.
Arguments
Parameter
Parameter
Type
Data Type Description
EN Input BOOL Function enable.
When EN = TRUE, execute the module computation.
When EN = FALSE, there is no computation.
IN Input DINT Any signed integer value.
Base Input DINT Must be greater than zero.
MOD Output DINT Module calculation (input MOD base) / returns -1 if Base <= 0.
ENO Output BOOL Enable out.
MOD function language examples
Function block diagram
Ladder diagram