Delta — 4.6.51. MOD_R

4. Motion Control Instructions 4.6.50. MOD_DI Explanation of the instruction: When EN is on, divide S1 by S2 and the remainder of S1 is stored in D device. MOD_DI is used for getting the remainder of 32-bit integer through division operation. Explanation of input and output parameter of the instruction: Note: Operand S1 and S2 must be the 32-bit integers. 4.6.51. MOD_R Explanation of the instruction: MOD_R is used for getting the remainder of floating number through division operation. When EN is on, divide S1 by S2 and the remainder of S1 is stored in D device. Explanation of input and output parameter of the instruction: Note: Operand S1 and S2 must be the floating numbers.

DVP-MC operating manual 4-151 API MOD DI _ Get remainder of 32-bit integer Controller 177 10MC11T Parameter Data Available Explanation name type device EN “MOD DI” is executed as “EN” turns on. _ BOOL M,I,Q, Constant S1 Dividend DINT Constant, D S2 Divisor DINT Constant, D D Remainder DINT D API Get remainder of floating number Controller MOD R 178 _ 10MC11T Parameter Data Available Explanation name type device EN “MOD R” is executed as “EN” turns on. _ BOOL M,I,Q, constant S1 Dividend REAL Constant, D S2 Divisor REAL Constant, D D Remainder REAL D