Safety Considerations Guide for Trident v2 Systems - TUV ...

Safety Considerations Guide for Trident v2 Systems - TUV ... Safety Considerations Guide for Trident v2 Systems - TUV ...

23.12.2012 Views

94 Appendix C Safety-Critical Function Blocks SYS_VOTE_MODE Converts redundancy status. Syntax MY_SYS_VOTE_MODE( CI:=b1, IN_TMR:=b2, GE_DUAL:=b3, GE_SINGLE:=b4 ) ; Input Parameters Name Data Type Description CI BOOL Enables SYS_VOTE_MODE. IN_TMR BOOL Three channels are operating. GE_DUAL BOOL Two or more channels are operating. GE_SINGLE BOOL One or more channels are operating. Output Parameters Name Data Type Description CO BOOL True if SYS_VOTE_MODE executes successfully. TMR BOOL Three channels are operating. DUAL BOOL Two channels are operating. SINGLE BOOL One or more channels are operating. ZERO BOOL No channel is operating. Description The SYS_VOTE_MODE function block converts redundancy status, as shown in this truth table. Truth Table TMR GE_DUAL GE_SINGLE TMR DUAL SINGL ZERO T T T T F F F F T T F T F F F F T F F T F F F F F F F T Other a a. If an error in the inputs occurs, then CO is false, the mode outputs are false, and the function block reports a bad parameter error (BADPARAM). Note GE_ means greater than or equal to. Safety Considerations Guide for Trident v2 Systems F F F F

Example For shutdown examples, see this sample project: My Documents\Triconex\TriStation 1131 4.x\Projects\TdTUV.pt2 Runtime Errors Condition Return Value Error Flags If the inputs do not match one of the first four rows of the truth table SYS_VOTE_MODE 95 Upon detection of a runtime error condition, the function block returns the indicated values and sets the error flags to true. For more information about error flags and runtime errors, see the TriStation 1131 Libraries Reference. Application Notes • Can be used in Safety or Control applications. • Space Saver: a single instance can be executed more than once per scan to reduce memory usage and increase performance. See the TriStation1131 Libraries Reference for more information. Library Trident and Tri-GP (TRDLIB) Structured Text Reset all BOOL outputs to false BADPARAM, ERROR FUNCTION_BLOCK SYS_VOTE_MODE VAR_INPUT CI : 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_VAR VAR_OUTPUT CO : BOOL ; (* Control out. *) TMR : BOOL ; (* Triple Modular Redundant. *) DUAL : BOOL ; (* Dual mode. *) SINGL : BOOL ; (* Single mode. *) ZERO : BOOL ; (* Zero mode. *) END_VAR VAR U : BOOL ; (* Unused Value. *) END_VAR (* *=F================================================================================ * FUNCTION_BLOCK: SYS_VOTE_MODE * Purpose: Convert redundancy status. * * Return: none * * Remarks: Safety Considerations Guide for Trident v2 Systems

94 Appendix C <strong>Safety</strong>-Critical Function Blocks<br />

SYS_VOTE_MODE<br />

Converts redundancy status.<br />

Syntax<br />

MY_SYS_VOTE_MODE( CI:=b1, IN_TMR:=b2, GE_DUAL:=b3, GE_SINGLE:=b4 ) ;<br />

Input Parameters<br />

Name Data Type Description<br />

CI BOOL Enables SYS_VOTE_MODE.<br />

IN_TMR BOOL Three channels are operating.<br />

GE_DUAL BOOL Two or more channels are operating.<br />

GE_SINGLE BOOL One or more channels are operating.<br />

Output Parameters<br />

Name Data Type Description<br />

CO BOOL True if SYS_VOTE_MODE executes successfully.<br />

TMR BOOL Three channels are operating.<br />

DUAL BOOL Two channels are operating.<br />

SINGLE BOOL One or more channels are operating.<br />

ZERO BOOL No channel is operating.<br />

Description<br />

The SYS_VOTE_MODE function block converts redundancy status, as shown in this truth table.<br />

Truth Table<br />

TMR GE_DUAL GE_SINGLE TMR DUAL SINGL ZERO<br />

T T T T F F F<br />

F T T F T F F<br />

F F T F F T F<br />

F F F F F F T<br />

Other a<br />

a. If an error in the inputs occurs, then CO is false, the mode<br />

outputs are false, and the function block reports a bad<br />

parameter error (BADPARAM).<br />

Note GE_ means greater than or equal to.<br />

<strong>Safety</strong> <strong>Considerations</strong> <strong>Guide</strong> <strong>for</strong> <strong>Trident</strong> <strong>v2</strong> <strong>Systems</strong><br />

F F F F

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

Saved successfully!

Ooh no, something went wrong!