Siemens SPS starter kit 6ED1057-3BA00-0AA8 12 Vdc, 24 Vdc 6ED1057-3BA00-0AA8 Ficha De Dados

Códigos do produto
6ED1057-3BA00-0AA8
Página de 378
Reference material 
 
5.3 Special functions 
 
LOGO!Soft Comfort Online Help 
278
 
Operating Instructions, 06/2014 
Possible errors: Zero division and overflow 
If the mathematic instruction function block execution results in zero division or overflow, it 
sets internal bits that indicate the type of error that occurred. You can program an 
mathematic instruction error detection function block in your circuit program to detect these 
errors, and to control the program behavior as needed. You program one mathematic 
instruction error detection (Page 337) function block to reference one specific mathematic 
instruction function block. 
Examples 
The following tables show some simple example mathematic instruction block parameters, 
and the resulting equations and output values: 
 
V1 
Operator1 
(Priority 1) 
V2 
Operator2 
(Priority 2) 
V3 
Operator3 
(Priority 3) 
V4 
12 
+ (M) 
/ (H) 
- (L) 
Equation: (12 + (6 / 3)) - 1 
Result: 13 
 
 
V1 
Operator1 
(Priority 1) 
V2 
Operator2 
(Priority 2) 
V3 
Operator3 
(Priority 3) 
V4 
+ (L) 
* (M) 
+ (H) 
Equation: 2 + (3 * (1 + 4)) 
Result: 17 
 
 
V1 
Operator1 
(Priority 1) 
V2 
Operator2 
(Priority 2) 
V3 
Operator3 
(Priority 3) 
V4 
100 
- (H) 
25 
/ (L) 
+ (M) 
Equation: (100 – 25) / (2 + 1) 
Result: 25 
Special functions (Page 212)