2 S7-1200/1500 Innovations
2.9 Instructions
2.9
Instructions
2.9.1
CALCULATE
With the CALCULATE instruction you can carry out mathematical calculations (e.g.
(IN1 + IN2) * IN3) that are independent from the data type. The mathematical
formula is programmed in the formula editor of the instruction.
Figure 2-13: CALCULATE instruction with formula editor
Note
For more information refer to the Online Help of the TIA Portal with the
"CALCULATE" instruction.
Advantages
A mathematical formula only needs one instruction
Time saving due to simple configuration
Properties
Supports bit sequences, integers, floating-point numbers
Supports numerous mathematical functions (all basic arithmetic operations,
trigonometric functions, rounding, logarithm, etc.)
Number of inputs is extendable
Recommendation
Always use the CALCULATE instruction for mathematical calculations instead
of many calls of instructions, such as, e.g. ADD, SUB, etc.
2.9.2
MOVE instructions
STEP 7 (TIA) provides the following MOVE instructions. The instruction
MOVE_BLK_VARIANT for S7-1200/1500 is new.
Programming Guideline for S7-1200/1500
V1.2, Entry ID: 81318674
20