Review ST Code (naming conventions)
review_st_codeValidate ST code naming conventions: Hungarian notation, POU prefixes, state machine patterns. Returns only violations.
Instructions
Validate ST code against naming conventions — returns ONLY violations, not reference dumps. USE WHEN: immediately after writing or editing any ST code. Checks: Hungarian notation (b=BOOL, n=INT, r=REAL, t=TIME, fb=FB instance), POU prefixes (FB_, PRG_, FC_), FB interface pattern (bEnable/bDone/bBusy/bErr/nErrId), state machine (0=IDLE, 90=DONE, 99=ERROR), snake_case detection. Includes quick-reference table when violations are found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The Structured Text code to review |