P&ID: Parse Tag
pid_tag_parseParse ISA-5.1-2009 PID tags to extract first letter, modifier, functions, loop number, and suffix. Returns standard description or invalid letter; equipment prefixes are customizable.
Instructions
ISA-5.1-2009 Table 4.1 as a grammar: first letter, modifier, readout and output functions, trailing high/low, loop number and suffix — with the standard's description ("Flow Indicating Controller") or the first offending letter. Equipment prefixes are not standardised, so the default map (P pump, V vessel, E exchanger, ...) can be replaced per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | e.g. FIC-101, 10-PDT-203A, P-101A | |
| kind | No | auto | instrument | equipment | auto |
| equipment_prefixes | No | Replace the default equipment prefix map, e.g. {'Q': 'quench tower'} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||