CT_RATIO_LIMITING

Limiting achieved/required CT ratio for one contact cell: T10 from a level-to-volume curve, baffling factor and the larger of inlet and outlet flow; required CT for Giardia and virus from the approved free chlorine table at the outlet pH and temperature; no extrapolation.

Validated application blockWTP · Quality BarriersIEC 61131-3IEC 61499v1.0.0

When to use it

Use CT_RATIO_LIMITING when a chlorine contact cell's disinfection credit must be shown every scan against approved free chlorine CT tables for Giardia and virus, with the volume taken from the live level and the flow taken as the larger of the inlet and outlet meters; one cell per instance, a five-point level-to-volume curve and a four-temperature by four-pH table.

Interface

The published port signature. This is the whole of what the block exposes to your program — the implementation body is not shown here and ships with the download.

Inputs

PortTypeUnit
ENABLEBOOL—
RESIDUALREALmg/L
RES_OKBOOL—
PHREALpH
PH_OKBOOL—
TEMPREALdeg C
TEMP_OKBOOL—
LEVELREALft
LEVEL_OKBOOL—
Q_INREALMGD
Q_OUTREALMGD
FLOW_OKBOOL—
BAL_OKBOOL—
BFREALratio
RATIO_MINREALratio
RATIO_TARGETREALratio
V_CREDIT_MINREALMG
Q_MAXREALMGD
MIN_FLOWREALMGD
LVL_1REALft
VOL_1REALMG
LVL_2REALft
VOL_2REALMG
LVL_3REALft
VOL_3REALMG
LVL_4REALft
VOL_4REALMG
LVL_5REALft
VOL_5REALMG
TEMP_1REALdeg C
TEMP_2REALdeg C
TEMP_3REALdeg C
TEMP_4REALdeg C
PH_1REALpH
PH_2REALpH
PH_3REALpH
PH_4REALpH
CTG_T1_P1REALmg.min/L
CTG_T1_P2REALmg.min/L
CTG_T1_P3REALmg.min/L
CTG_T1_P4REALmg.min/L
CTG_T2_P1REALmg.min/L
CTG_T2_P2REALmg.min/L
CTG_T2_P3REALmg.min/L
CTG_T2_P4REALmg.min/L
CTG_T3_P1REALmg.min/L
CTG_T3_P2REALmg.min/L
CTG_T3_P3REALmg.min/L
CTG_T3_P4REALmg.min/L
CTG_T4_P1REALmg.min/L
CTG_T4_P2REALmg.min/L
CTG_T4_P3REALmg.min/L
CTG_T4_P4REALmg.min/L
CTV_1REALmg.min/L
CTV_2REALmg.min/L
CTV_3REALmg.min/L
CTV_4REALmg.min/L
RES_TABLEREALmg/L
INTERPBOOL—

Outputs

PortTypeUnit
RATIOREALratio
RATIO_GREALratio
RATIO_VREALratio
T10_MINREALmin
CT_ACHREALmg.min/L
CT_REQ_GREALmg.min/L
CT_REQ_VREALmg.min/L
VOLUME_MGREALMG
Q_USEDREALMGD
VALIDBOOL—
ENVELOPE_OKBOOL—
ENV_CAUSEINT—
LIMIT_MGDREALMGD
ALM_LOWBOOL—
ALM_MARGINBOOL—
ALM_CFG_ERRBOOL—

IEC 61499 event interface

EI INIT, REQ·EO INITO, CNF

Validation evidence

Tests
12
Simulated scans
38
Simulator
v0.1.0

Complete IEC 61131-3 implementation with a published test suite that runs on the vplant simulator. The counts above are that suite, executed on this build.

  • Conforms to IEC 61131-3
  • Conforms to IEC 61499

Download CT_RATIO_LIMITING — free

Create a free Ri Tech account to download the block. You get the Structured Text body, the Rockwell Add-On Instruction (.L5X), the Schneider Control Expert DFB (.XDB), PLCopen XML, the IEC 61499 function block type (.fbt) and the datasheet.

Every block in the catalogue is free to download, in every format it ships, with no purchase and no card. Browsing needs no account at all; downloading needs a signed-in one, so the block lands in your library and re-downloads whenever you need it.

Source is never published on this page. The implementation is released to a signed-in Ri Tech account — free of charge, but never anonymously.