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.
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
| Port | Type | Unit |
|---|---|---|
| ENABLE | BOOL | — |
| RESIDUAL | REAL | mg/L |
| RES_OK | BOOL | — |
| PH | REAL | pH |
| PH_OK | BOOL | — |
| TEMP | REAL | deg C |
| TEMP_OK | BOOL | — |
| LEVEL | REAL | ft |
| LEVEL_OK | BOOL | — |
| Q_IN | REAL | MGD |
| Q_OUT | REAL | MGD |
| FLOW_OK | BOOL | — |
| BAL_OK | BOOL | — |
| BF | REAL | ratio |
| RATIO_MIN | REAL | ratio |
| RATIO_TARGET | REAL | ratio |
| V_CREDIT_MIN | REAL | MG |
| Q_MAX | REAL | MGD |
| MIN_FLOW | REAL | MGD |
| LVL_1 | REAL | ft |
| VOL_1 | REAL | MG |
| LVL_2 | REAL | ft |
| VOL_2 | REAL | MG |
| LVL_3 | REAL | ft |
| VOL_3 | REAL | MG |
| LVL_4 | REAL | ft |
| VOL_4 | REAL | MG |
| LVL_5 | REAL | ft |
| VOL_5 | REAL | MG |
| TEMP_1 | REAL | deg C |
| TEMP_2 | REAL | deg C |
| TEMP_3 | REAL | deg C |
| TEMP_4 | REAL | deg C |
| PH_1 | REAL | pH |
| PH_2 | REAL | pH |
| PH_3 | REAL | pH |
| PH_4 | REAL | pH |
| CTG_T1_P1 | REAL | mg.min/L |
| CTG_T1_P2 | REAL | mg.min/L |
| CTG_T1_P3 | REAL | mg.min/L |
| CTG_T1_P4 | REAL | mg.min/L |
| CTG_T2_P1 | REAL | mg.min/L |
| CTG_T2_P2 | REAL | mg.min/L |
| CTG_T2_P3 | REAL | mg.min/L |
| CTG_T2_P4 | REAL | mg.min/L |
| CTG_T3_P1 | REAL | mg.min/L |
| CTG_T3_P2 | REAL | mg.min/L |
| CTG_T3_P3 | REAL | mg.min/L |
| CTG_T3_P4 | REAL | mg.min/L |
| CTG_T4_P1 | REAL | mg.min/L |
| CTG_T4_P2 | REAL | mg.min/L |
| CTG_T4_P3 | REAL | mg.min/L |
| CTG_T4_P4 | REAL | mg.min/L |
| CTV_1 | REAL | mg.min/L |
| CTV_2 | REAL | mg.min/L |
| CTV_3 | REAL | mg.min/L |
| CTV_4 | REAL | mg.min/L |
| RES_TABLE | REAL | mg/L |
| INTERP | BOOL | — |
Outputs
| Port | Type | Unit |
|---|---|---|
| RATIO | REAL | ratio |
| RATIO_G | REAL | ratio |
| RATIO_V | REAL | ratio |
| T10_MIN | REAL | min |
| CT_ACH | REAL | mg.min/L |
| CT_REQ_G | REAL | mg.min/L |
| CT_REQ_V | REAL | mg.min/L |
| VOLUME_MG | REAL | MG |
| Q_USED | REAL | MGD |
| VALID | BOOL | — |
| ENVELOPE_OK | BOOL | — |
| ENV_CAUSE | INT | — |
| LIMIT_MGD | REAL | MGD |
| ALM_LOW | BOOL | — |
| ALM_MARGIN | BOOL | — |
| ALM_CFG_ERR | BOOL | — |
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.