Siemens 6ED1050-1AA00-0BE8 User Manual

Page of 372
 
LOGO! functions 
 
4.4 Special functions list - SF 
LOGO! 
Manual, 04/2011, A5E03556174-01 
265
 
4.4.32 
Mathematic instruction 
Short description 
The mathematic instruction block calculates the value AQ of an equation formed from the 
user-defined operands and operators.    
 
Symbol in LOGO! 
Wiring 
Description 
Input En 
A change in the status from 0 to 1 at input En 
(Enable) enables the mathematic instruction function 
block. 
Parameter 
V1: First operand value 
V2: Second operand value 
V3: Third operand value 
V4: Fourth operand value 
 
Op1:  First operator 
Op2:  Second operator 
Op3:  Third operator 
 
Pr1:  Priority of first operation 
Pr2:  Priority of second operation 
Pr3:  Priority of third operation 
 
Qen→0: 0: Reset value of AQ to 0 when En=0 
 1: Retain last value of AQ when En=0 
p: Number of decimals 
 Range of values: 0, 1, 2, 3 
 
$ᇄ
$4
(Q
3DU
 
Output AQ 
The output AQ is the result of the equation formed 
from the operand values and operators. AQ will be 
set to 32767 if a divide by 0 or overflow occurs, and -
32768 if a negative overflow (underflow) occurs. 
Parameters V1...V4 
The analog values for the parameters V1...V4 can be derived from another already-
programmed function. You can use the actual values of the following functions:  
●  Analog comparator (Page 218) (actual value Ax – Ay) 
●  Analog threshold trigger (Page 213) (actual value Ax) 
●  Analog amplifier (Page 226) (actual value Ax) 
●  Analog multiplexer (Pag248) (actual value AQ) 
●  Analog Ramp (Page 251) (actual value AQ) 
●  PI controller (Page 256) (actual value AQ) 
●  Up/down counter (Pag201) (actual value Cnt)