Delta Electronics DVP10MC11T [194/375] Sqrt_r

Delta Electronics DVP10MC11T [194/375] Sqrt_r
4. Motion Control Instruction
4-150 DVP-MC operating manual
4.6.48. SQRT_R
API
SQRT_R
Square root of floating number
Controller
175
10MC11T
Explanation of the instruction:
SQRT_R is used for arithmetic square root operation of 32-bit floating number.
When EN is on, arithmetic square root operation of the floating number specified by S is conducted and the
result is saved in D device.
Explanation of input and output parameter of the instruction:
Parameter
name
Explanation
Data
type
Available
device
EN “SQRT_R” is executed as “EN” turns on. BOOL M,I,Q, constant
S1 Radicand REAL Constant, D
D Arithmetic square root REAL D
Note: Operand S1 must be the floating number. When S1 is equal to or less than 0, the result value stored in
D device is 0.
4.6.49. MOD
API
MOD
Get remainder of 16-bit integer
Controller
176
10MC11T
Explanation of the instruction:
MOD is used for getting the remainder of 16-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” is executed as “EN” turns on. BOOL M,I,Q, Constant
S1 Dividend INT Constant, D
S2 Divisor INT Constant, D
D Remainder INT D
Note: Operand S1 and S2 must be 16-bit integers.

Содержание

Похожие устройства

Скачать