Highest priority PRIORITY

Picks the ready slot with the highest Priority.

TagAfter two scans
DockEN 1 SEL 2 VAL 1 ERR 0 RES 0

How it works

A true rung picks. A false rung picks nothing, but new requests still join the line and .SEL is 0.

How it's used

Use it to send the next job to the most important waiting place, such as the dock bay with the highest priority.

TagValue
Bay1Call1
Bay2Call1
Bay3Call0
Pick1
DockEN 1 SEL 2 VAL 1 ERR 0 RES 0
NextBay2

Bay1 and Bay2 are calling. Bay2 has the higher priority, so NextBay is 2.

In practice

Highest priority: picks the requested, available slot with the highest Priority; a tie goes to the lower slot.

Configuration

  • One rung per bay writes Dock.Bay1.REQ, and Dock.Bay1.RDY where the bay can take work; then XIC Dock.VAL with MOVE Dock.SEL to the destination.

Limits and status

  • .SEL is the 1-based candidate; 0 means none. .ERR holds the reason code.
  • Renaming a candidate renames its members everywhere.
  • Renaming the tag or changing its candidates starts the selection over.
  • Algorithms instructions are learning aids for deterministic selection. They are not safety-rated or certified, and they do not plan paths, avoid collisions or control motion. This is not a safety function.

Operands

OperandData typeRead or write
TagALGORITHMReads and writes

Common mistakes

  • Ignoring priority tiesThe lower slot wins a tie. These learning aids do not plan paths or provide a safety function.