Safety Considerations Guide for Triconex General ... - ICEWeb
Safety Considerations Guide for Triconex General ... - ICEWeb
Safety Considerations Guide for Triconex General ... - ICEWeb
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
94 Appendix C <strong>Safety</strong>-Critical Function Blocks<br />
* 1. Convert redundancy status (TMR, GE_DUAL, GE_SINGLE) to (TMR, DUAL, SINGL, ZERO).<br />
* 2. "GE_" denotes "greater than or equal to".<br />
* 3. CO is true if CI is true and there is no programming error.<br />
*<br />
* Runtime Errors<br />
* EBADPARAM Bad parameter<br />
* CO= FALSE indicates a programming error if CI=true.<br />
* The outputs are all FALSE if there is a programming error.<br />
*=F===============================================================================<br />
*)<br />
CO := CI ;<br />
IF CI THEN<br />
CO := GE_DUAL AND GE_SINGLE OR NOT GE_DUAL AND NOT IN_TMR;<br />
IF CO THEN<br />
TMR := IN_TMR ;<br />
DUAL := GE_DUAL AND NOT IN_TMR ;<br />
SINGL := GE_SINGLE AND NOT GE_DUAL ;<br />
ZERO := NOT GE_SINGLE ;<br />
ELSE<br />
U := ReportBadParam(0) ;<br />
TMR := FALSE ;<br />
DUAL := FALSE ;<br />
SINGL := FALSE ;<br />
ZERO := FALSE ;<br />
END_IF ;<br />
END_IF ;<br />
END_FUNCTION_BLOCK<br />
<strong>Safety</strong> <strong>Considerations</strong> <strong>Guide</strong> <strong>for</strong> <strong>Triconex</strong> <strong>General</strong> Purpose v2 Systems