Siemens S7 PLC real number arithmetic instruction

Real additions (ADD-R), subtraction (SUB-R) instruction: two 32-bit real numbers are added or subtracted, and produces a 32-bit real number result, the output from the designated storage unit OUT.Real multiplication (MUL-R), a divider (DIV-R) command: enable input is active, the two 32-bit real number multiplied (except), and produces a 32-bit product (quotient), a storage unit … Continue reading Siemens S7 PLC real number arithmetic instruction

Siemens PLC Mathematical function transformation instruction

Mathematical functions transform comprises the square root, natural logarithm, exponential, trigonometric functions and so on. (1) Square Root (SQRT) instruction: 32-bit real number (IN) taking the square root, and produces a 32-bit real number result, the output from the designated storage unit OUT. (2) natural logarithm (LN) instruction: IN values in natural logarithm, and place the result … Continue reading Siemens PLC Mathematical function transformation instruction

Siemens S7 series PLC integer arithmetic instructions

In STEP 7 can be integers, long integers and real numbers to add, subtract, multiply and divide arithmetic. Arithmetic instructions in accumulator 1 and 2 were as minuend or dividend accumulator value 2 in. Result of an arithmetic of preservation, the original value of the accumulator 1 Accumulator 1 is covered in the calculation result, … Continue reading Siemens S7 series PLC integer arithmetic instructions

Siemens S7 series PLC Conversion between integer and BCD

Conversion Instructions ACCU 1 data type conversion, the conversion still result in accumulator l. Switching operation can be realized are: Conversion BCD and integer and long integer between real and long integer between numbers negated negation, byte expansion.In STEP 7, the integer and long integer expressed as a complement form. BCD code values, there are … Continue reading Siemens S7 series PLC Conversion between integer and BCD