User manual
4. Motion Control Instruction
4-94 DVP-MC operating manual
4.6.9. MUL_R
API
Controller
136
MUL_R
Multiplication of floating number
10MC11T
Explanation of the instruction:
MUL_R is used for multiplying operation of 32-bit floating number. As EN is on, multiply S1 by S2 and their
result value is saved in D register.
Explanation of input and output parameter of the instruction:
Parameter
name
Explanation
Data
type
Available
device
EN “MUL_R” instruction is executed as “EN” turns on BOOL M,I,Q, constant
S1 Multiplicand REAL Constant, D
S2 Multiplier REAL Constant, D
D Product REAL D
4.6.10. DIV
API Controller
137
DIV
Division of 16-bit integer
10MC11T
Explanation of the instruction:
DIV is used for division operation of 16-bit integer. As EN is on, divide S1 by S2 and their result value is
saved in D register.
Explanation of input and output parameter of the instruction:
Parameter
name
Explanation
Data
type
Available
device
EN “DIV” instruction is executed as “EN” turns on BOOL M,I,Q, constant
S1 Dividend INT Constant, D
S2 Divisor (0 is forbidden) INT Constant, D
D Quotient INT D










