Safety Considerations Guide for Trident v2 Systems - TUV ...
Safety Considerations Guide for Trident v2 Systems - TUV ...
Safety Considerations Guide for Trident v2 Systems - TUV ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
96 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>Trident</strong> <strong>v2</strong> <strong>Systems</strong>