Siemens SPS starter kit 6ED1057-3BA00-0AA8 12 Vdc, 24 Vdc 6ED1057-3BA00-0AA8 データシート

製品コード
6ED1057-3BA00-0AA8
ページ / 344
 
LOGO! functions 
 
4.4 Special functions list - SF 
LOGO! 
Manual, 06/2014, A5E33039675 
229
 
The number of operand values is fixed at four and the number of operators is fixed at 3. If 
you need to use fewer operands, use constructions such as + 0 or * 1 to fill the remaining 
parameters. 
You can also configure the behavior of the function when the Enable parameter En=0. The 
function block can either retain its last value, or be set to 0. If the parameter Qen → 0 = 0, 
then the function sets AQ to 0 when En=0. If the parameter Qen → 0 = 1, then the function 
leaves AQ at its last value when En=0. 
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 a 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 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 
Op1 
(Priority) 
V2 
Op2 
(Priority) 
V3 
Op3 
(Priority) 
V4 
12 
[+] 
(/) 
Equation: [12 + (6 / 3)] - 1 
Result: 13 
 
V1 
Op1 
(Priority) 
V2 
Op2 
(Priority) 
V3 
Op3 
(Priority) 
V4 
(+) 
[*] 
Equation: 2 + [3 * (1 + 4)] 
Result: 17 
 
V1 
Op1 
(Priority) 
V2 
Op2 
(Priority) 
V3 
Op3 
(Priority) 
V4 
100 
(-) 
25 
[+] 
Equation: (100 - 25) / [2 + 1] 
Result: 25