beautypg.com

4 modulo (mod) – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 106

background image

5Ć12

5.3.3

Example of a Divide Instruction

This logic shows that when the variable switch1

is true the instruction divides the variable bulk

by 100 and stores the result in the variable

sample_1.

5.4

Modulo (MOD)

Use this instruction to calculate the remainder resulting from dividing two variables or

constants.
While EN is true, the instruction calculates the remainder of In1 divided by In2. The

result is stored in Out.