Siemens SPS starter kit 6ED1057-3BA00-0AA8 12 Vdc, 24 Vdc 6ED1057-3BA00-0AA8 Datenbogen
Produktcode
6ED1057-3BA00-0AA8
LOGO! functions
4.4 Special functions list - SF
LOGO!
Manual, 06/2014, A5E33039675
Manual, 06/2014, A5E33039675
231
Functional description
The mathematic instruction error detection block sets the output when the referenced
mathematic instruction function block has an error. You can program the function to set the
output on a zero division error, an overflow error, or when either type of error occurs.
If AutoRst is set, the output is reset prior to the next execution of the function block. If
If AutoRst is set, the output is reset prior to the next execution of the function block. If
AutoRst is not set, then whenever the output is set it remains set until the mathematic
instruction error detection block is reset with the R parameter. In this way, even if the error
subsequently clears, the circuit program still has knowledge that an error did occur at some
point.
In any scan cycle, if the referenced mathematic instruction function block executes before
In any scan cycle, if the referenced mathematic instruction function block executes before
the mathematic instruction error detection function block, the error is detected in the same
scan cycle. If the referenced mathematic instruction function block executes after the
mathematic instruction error detection function block, the error is detected in the next scan
cycle.
Mathematic instruction error detection logic table
In the table below, Err represents the parameter of the mathematic instruction error detection
instruction that selects which type of error to detect. ZD represents the zero division bit set
by the mathematic instruction at the end of its execution: 1 if the error occurred, 0 if not. OF
represents the overflow bit set by the mathematic instruction: 1 if the error occurred, 0 if not.
The ZD/OF Err parameter represents the logical OR of the zero division bit and overflow bit
of the referenced mathematic instruction. Q represents the output of the mathematic
instruction error detection function. An "x" indicates that the bit can be either 0 or 1 with no
influence on the output.
Err
ZD
OF
Q
ZD
1
x
1
ZD
0
x
0
OF
x
1
1
OF
x
0
0
ZD/OF
1
0
1
ZD/OF
0
1
1
ZD/OF
1
1
1
ZD/OF
0
0
0
If the MathBN parameter is null, then the output Q is always 0.
Setting the Par parameter
The parameters MathBN, AutoRst, and Err can be set in programming mode or parameter
assignment mode.
View in programming mode (example):
View in programming mode (example):