PLC Programming Computational Mathematical Instructions – MOD | Modulo

The MOD, also known as the modulo, is an instruction which allows the user to calculate the remainder produced by a division of two integers. This instruction is not frequently used in ladder logic programming but is very useful for calculating the remainder of a ratio, production excess, and several other parameters. The instruction takes three registers as operands. The first two are the dividend and the divisor. The result is stored in this third register which is labeled as the destination.


This is a companion discussion topic for the original entry at https://www.solisplc.com/tutorials/plc-programming-computational-mathematical-instructions-mod-modulo