Siemens SPS starter kit 6ED1057-3BA00-0AA8 12 Vdc, 24 Vdc 6ED1057-3BA00-0AA8 Ficha De Dados
Códigos do produto
6ED1057-3BA00-0AA8
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)
6
/ (H)
3
- (L)
1
Equation: (12 + (6 / 3)) - 1
Result: 13
V1
Operator1
(Priority 1)
V2
Operator2
(Priority 2)
V3
Operator3
(Priority 3)
V4
2
+ (L)
3
* (M)
1
+ (H)
4
Equation: 2 + (3 * (1 + 4))
Result: 17
V1
Operator1
(Priority 1)
V2
Operator2
(Priority 2)
V3
Operator3
(Priority 3)
V4
100
- (H)
25
/ (L)
2
+ (M)
1
Equation: (100 – 25) / (2 + 1)