13.07.2015 Views

Safety Considerations Guide, Tricon v9.0 - Tuv-fs.com

Safety Considerations Guide, Tricon v9.0 - Tuv-fs.com

Safety Considerations Guide, Tricon v9.0 - Tuv-fs.com

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

92 TR_VOTE_MODE Function BlockStructured TextFUNCTION_BLOCK TR_VOTE_MODEVAR_INPUTCI : BOOL := TRUE ; (* Control in. *)IN_TMR : BOOL ; (* 3 channels operating. *)GE_DUAL : BOOL ; (* 2 or more channels operating. *)GE_SINGLE : BOOL ; (* 1 or more channels operating. *)END_VARVAR_OUTPUTCO : BOOL ; (* Control out. *)TMR : BOOL ; (* Triple Modular Redundant. *)DUAL : BOOL ; (* Dual mode. *)SINGL : BOOL ; (* Single mode. *)ZERO : BOOL ; (* Zero mode. *)END_VARVARU : BOOL ; (* Unused Value. *)END_VAR(**=F===============================================================================* FUNCTION_BLOCK: TR_VOTE_MODE* Purpose: Convert redundancy status.** Return: none** Remarks:* 1. Convert redundancy status (TMR, GE_DUAL, GE_SINGLE)* to (TMR, DUAL, SINGL, ZERO).* 2. "GE_" denotes "greater than or equal to".* 3. CO is true if CI is true and there is no programming error.** Runtime Errors* EBADPARAM Bad parameter* CO=false indicates a programming error if CI=true.* The outputs are all false if there is a programming error.*=F==============================================================================*)CO := CI ;IF CI THENCO := GE_DUAL AND GE_SINGLE OR NOT GE_DUAL AND NOT IN_TMR;IF CO THENTMR := IN_TMR ;DUAL := GE_DUAL AND NOT IN_TMR ;SINGL := GE_SINGLE AND NOT GE_DUAL ;ZERO := NOT GE_SINGLE ;ELSEU := ReportBadParam(0) ;TMR := FALSE ;DUAL := FALSE ;SINGL := FALSE ;ZERO := FALSE ;END_IF ;END_IF ;END_FUNCTION_BLOCK<strong>Tricon</strong> <strong>Safety</strong> <strong>Considerations</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!