4. Motion Control Instruction
4-134 DVP-MC operating manual
4.6.50. MOD_DI
API Controller
177
MOD_DI
Get remainder of 32-bit integer
10MC11T
Explanation of the instruction:
MOD_DI is used for getting the remainder of 32-bit integer 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:
Parameter
name
Explanation
Data
type
Available
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
Note: Operand S1 and S2 must be the 32-bit integers.
4.6.51. MOD_R
API Controller
178
MOD_R
Get remainder of floating number
10MC11T
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:
Parameter
name
Explanation
Data
type
Available
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
Note: Operand S1 and S2 must be the floating numbers.
Comments to this Manuals