Connected Components Workbench Micro800 Advanced Math’s function include integral, derivative, power, exponent and log instruction for advanced mathematical operation and process. in this article we discuss all advanced math’s instruction.
Micro 800 PLC EXPT (Exponent) a mathematical instruction that calculate the number of times a quantity is multiplied by itself. EXPT Instruction represents the result of multiplying first input value (IN) by itself second input (EXP) times. First input (IN) is real data types. Raises the value of IN (base) to the power of EXP (exponent) and return outputs the Real result of the operation. Output is equal to IN ^ EXP.
above example of Micro 800 PLC EXPT Instruction. input_value = 3.0 and power_raise = 6 so output of this instruction is 3 multiplies by itself 6 times (3 x 3 x 3 x 3 x 3 x 3) = 729
Micro 800 PLC POW Instruction use only for real number operation is same as EXPT instruction it also raise the value of(IN) to the power of EXP. but main difference between EXPT and POW instruction is that EXPT exponent is integer value while POW exponent has real data type.
above example of Micro 800 PLC POW Instruction, if input value of instruction is 3.0 exponent input is equal to 1.5. 3 to the power of 1.5 is approximately equal to 5.196.
Micro 800 PLC RAND Instruction generates a sequence of random numbers or values. RAND instruction generates defined range of random numbers, generated random number values is not greater than to input value.
in above example of Micro 800 PLC RAND Instruction if input is 12 than output generated any random numbers (sequence of number like 1,5,7 etc.) but not greater than to 12. it generates any random number from 1 to 11 continuously.
Micro 800 PLC LOG Instructions is single input and single output instruction which find logarithm value of input variable to base 10, and write result into output variable. Input and output data type of this instruction are only real.
in above example of Micro 800 PLC LOG Instructions output is a logarithm value of input variable to base 10.
Micro 800 PLC SQRT Instruction is a single input variable and single output variable that calculate square root of input variable and return result into output variable. SQRT instruction only allowed REAL data type as input and output.
above example of Micro 800 PLC SQRT Instruction √ input_1 = output.
Micro 800 PLC DERIVATE Instruction calculate Differentiated output at specific timer interval. the time at which the input changes with respect to its input variable is defined on CYCLE input.
above example of Micro 800 PLC DERIVATE Instruction.
Micro 800 PLC INTEGRAL Instruction Integrates a real value during the defined cycle time. Integration is performed with a time base of milliseconds.
above example of Micro 800 PLC DERIVATE Instruction. When the INTEGRAL function block is first initialized, its initial values are not considered. Use the R1 parameter to set the initial values for a calculation. The R1 parameter to clear the integral value when first transitioning the controller from PROGRAM to RUN mode and when starting a new integration.