WASH_TOKEN_ARBITER
One wash at a time from a shared wash supply: queues up to 16 requesters by priority then age, checks the shared resources, grants one token, aborts a stale holder and holds the token until isolation is proven.
When to use it
Use WASH_TOKEN_ARBITER when several filters (and, where the supply is shared, GAC beds or other wash users) take turns on one wash supply and only one may wash at a time; up to 16 requesters — the twelve filters all three reference plants have, plus up to four further users such as a GAC area that presents its own selected bed as one requester.
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 |
|---|---|
| REQ_1 | BOOL |
| PRIO_1 | INT |
| BVAV_CLOSED_1 | BOOL |
| HB_1 | DINT |
| RELEASE_1 | BOOL |
| DONE_1 | BOOL |
| NEEDS_AIR_1 | BOOL |
| REQ_2 | BOOL |
| PRIO_2 | INT |
| BVAV_CLOSED_2 | BOOL |
| HB_2 | DINT |
| RELEASE_2 | BOOL |
| DONE_2 | BOOL |
| NEEDS_AIR_2 | BOOL |
| REQ_3 | BOOL |
| PRIO_3 | INT |
| BVAV_CLOSED_3 | BOOL |
| HB_3 | DINT |
| RELEASE_3 | BOOL |
| DONE_3 | BOOL |
| NEEDS_AIR_3 | BOOL |
| REQ_4 | BOOL |
| PRIO_4 | INT |
| BVAV_CLOSED_4 | BOOL |
| HB_4 | DINT |
| RELEASE_4 | BOOL |
| DONE_4 | BOOL |
| NEEDS_AIR_4 | BOOL |
| REQ_5 | BOOL |
| PRIO_5 | INT |
| BVAV_CLOSED_5 | BOOL |
| HB_5 | DINT |
| RELEASE_5 | BOOL |
| DONE_5 | BOOL |
| NEEDS_AIR_5 | BOOL |
| REQ_6 | BOOL |
| PRIO_6 | INT |
| BVAV_CLOSED_6 | BOOL |
| HB_6 | DINT |
| RELEASE_6 | BOOL |
| DONE_6 | BOOL |
| NEEDS_AIR_6 | BOOL |
| REQ_7 | BOOL |
| PRIO_7 | INT |
| BVAV_CLOSED_7 | BOOL |
| HB_7 | DINT |
| RELEASE_7 | BOOL |
| DONE_7 | BOOL |
| NEEDS_AIR_7 | BOOL |
| REQ_8 | BOOL |
| PRIO_8 | INT |
| BVAV_CLOSED_8 | BOOL |
| HB_8 | DINT |
| RELEASE_8 | BOOL |
| DONE_8 | BOOL |
| NEEDS_AIR_8 | BOOL |
| REQ_9 | BOOL |
| PRIO_9 | INT |
| BVAV_CLOSED_9 | BOOL |
| HB_9 | DINT |
| RELEASE_9 | BOOL |
| DONE_9 | BOOL |
| NEEDS_AIR_9 | BOOL |
| REQ_10 | BOOL |
| PRIO_10 | INT |
| BVAV_CLOSED_10 | BOOL |
| HB_10 | DINT |
| RELEASE_10 | BOOL |
| DONE_10 | BOOL |
| NEEDS_AIR_10 | BOOL |
| REQ_11 | BOOL |
| PRIO_11 | INT |
| BVAV_CLOSED_11 | BOOL |
| HB_11 | DINT |
| RELEASE_11 | BOOL |
| DONE_11 | BOOL |
| NEEDS_AIR_11 | BOOL |
| REQ_12 | BOOL |
| PRIO_12 | INT |
| BVAV_CLOSED_12 | BOOL |
| HB_12 | DINT |
| RELEASE_12 | BOOL |
| DONE_12 | BOOL |
| NEEDS_AIR_12 | BOOL |
| REQ_13 | BOOL |
| PRIO_13 | INT |
| BVAV_CLOSED_13 | BOOL |
| HB_13 | DINT |
| RELEASE_13 | BOOL |
| DONE_13 | BOOL |
| NEEDS_AIR_13 | BOOL |
| REQ_14 | BOOL |
| PRIO_14 | INT |
| BVAV_CLOSED_14 | BOOL |
| HB_14 | DINT |
| RELEASE_14 | BOOL |
| DONE_14 | BOOL |
| NEEDS_AIR_14 | BOOL |
| REQ_15 | BOOL |
| PRIO_15 | INT |
| BVAV_CLOSED_15 | BOOL |
| HB_15 | DINT |
| RELEASE_15 | BOOL |
| DONE_15 | BOOL |
| NEEDS_AIR_15 | BOOL |
| REQ_16 | BOOL |
| PRIO_16 | INT |
| BVAV_CLOSED_16 | BOOL |
| HB_16 | DINT |
| RELEASE_16 | BOOL |
| DONE_16 | BOOL |
| NEEDS_AIR_16 | BOOL |
| TANK_VOL_OK | BOOL |
| WASTE_RESERVED | BOOL |
| CAPACITY_OK | BOOL |
| PUMP_READY | BOOL |
| BLOWER_READY | BOOL |
| HEADERS_DEENERGIZED | BOOL |
| PLANT_STATE | INT |
| LOAD_SHED | BOOL |
| COUNT_RESET | BOOL |
| ACK | BOOL |
| HB_PERIOD | TIME |
| HB_MISSED | INT |
| QUEUE_BLOCK_ALM_T | TIME |
Outputs
| Port | Type |
|---|---|
| GRANT_ID | INT |
| GRANT_1 | BOOL |
| GRANT_2 | BOOL |
| GRANT_3 | BOOL |
| GRANT_4 | BOOL |
| GRANT_5 | BOOL |
| GRANT_6 | BOOL |
| GRANT_7 | BOOL |
| GRANT_8 | BOOL |
| GRANT_9 | BOOL |
| GRANT_10 | BOOL |
| GRANT_11 | BOOL |
| GRANT_12 | BOOL |
| GRANT_13 | BOOL |
| GRANT_14 | BOOL |
| GRANT_15 | BOOL |
| GRANT_16 | BOOL |
| ABORT_1 | BOOL |
| ABORT_2 | BOOL |
| ABORT_3 | BOOL |
| ABORT_4 | BOOL |
| ABORT_5 | BOOL |
| ABORT_6 | BOOL |
| ABORT_7 | BOOL |
| ABORT_8 | BOOL |
| ABORT_9 | BOOL |
| ABORT_10 | BOOL |
| ABORT_11 | BOOL |
| ABORT_12 | BOOL |
| ABORT_13 | BOOL |
| ABORT_14 | BOOL |
| ABORT_15 | BOOL |
| ABORT_16 | BOOL |
| TOKEN_LOCKED | BOOL |
| QUEUE_LEN | INT |
| BLOCK_REASON | INT |
| WASH_COUNT | DINT |
| ALM_STALE | BOOL |
| ALM_QUEUE_BLOCKED | BOOL |
| ALM_CFG_ERR | BOOL |
IEC 61499 event interface
EI INIT, REQ·EO INITO, CNF
Validation evidence
- Tests
- 9
- Simulated scans
- 487
- 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 WASH_TOKEN_ARBITER — 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.