×

Subscribe to newsletter

subscribe to our weekly newsletter to get notified with latest story and article Subscribe now!




PLC BLOG | Connected Components Workbench Micro800 Advanced Maths instructions
Share on Facebook Share On Twitter Share on LinkedIn Share on Whatsapp


Connected Components Workbench Micro800 Advanced Maths instructions

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 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.
  • IN real data type input value, operation perform on this value.
  • EXP DINT data type, this value raise the power of IN value.
  • EXPT output of the expt instruction block data type is real.

Micro 800 PLC EXPT Instruction

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

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.
  • IN REAL data type input value, operation perform on this value.
  • EXP REAL data type, this value raise the power of IN value.
  • EXPT output of the expt instruction block data type is real.

Micro 800 PLC POW Instruction

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

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.
  • Base input RAND instruction, data type is DINT. Defines the supported set of numbers.
  • RANDDINT data type, it is a output of RAND instruction.

Micro 800 PLC RAND Instruction

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 Instruction

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.

Micro 800 PLC LOG Instructions

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

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.

Micro 800 PLC SQRT Instruction

above example of Micro 800 PLC SQRT Instruction √ input_1 = output.


Micro 800 PLC DERIVATE Instruction

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.
  • RUN bool data type it is an input for operation mode TRUE - normal (perform calculation) and FALSE - reset.
  • XIN real data type input value. Defines the value on which to perform the derivation calculation.
  • CYCLE data type is time. it is sampling time period over which to collect values. Possible time period values range from 0ms to 49d17h2m47s294ms.
  • XOUT it is a Differentiated output of input value over time period. data type is real.

Micro 800 PLC DERIVATE Instruction

above example of Micro 800 PLC DERIVATE Instruction.


Micro 800 PLC INTEGRAL Instruction

Micro 800 PLC INTEGRAL Instruction Integrates a real value during the defined cycle time. Integration is performed with a time base of milliseconds.
  • RUN bool data type it is an input for operation mode TRUE - normal (perform INTEGRAL calculation) and FALSE - reset.
  • R1 bool data type, Overriding reset. Initialized initial value, and clear integral value when controller change mode.
  • XIN real data type input value. Defines the value on which to perform the derivation calculation.
  • X0 real data type input value. Defines the Initial value of instruction.
  • CYCLE data type is time. it is sampling time period over which to collect values. Possible time period values range from 0ms to 49d17h2m47s294ms.
  • Q output bool data type.
  • XOUT it is a Integrated output. data type is real.

Micro 800 PLC INTEGRAL Instruction

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.


Share on Facebook Share On Twitter Share on LinkedIn Share on Whatsapp


Suggested Post


 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

comment