4. Motion Control Instruction 4.6.48. SQRT_R Explanation of the instruction: 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. SQRT_R is used for arithmetic square root operation of 32-bit floating number. Explanation of input and output parameter of the instruction: 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 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: Note: Operand S1 and S2 must be 16-bit integers. 4-150 DVP-MC operating manual API Square root of floating number Controller SQRT R 175 _ 10MC11T Parameter Data Available Explanation name type 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 API MOD Get remainder of 16-bit integer Controller 176 10MC11T Parameter Data Available Explanation name type 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