PLC Function Block Library
plc_librarySearch, browse, or retrieve reusable CODESYS ST function blocks and DUTs for motor, valve, PID, sensor, and safety logic. Avoid creating new blocks when existing ones suffice.
Instructions
Access the 38-block reusable ST library (30 Function Blocks + 8 shared DUTs) — ALWAYS check here BEFORE creating new FBs. USE WHEN: about to create any FB, or looking for ready-made motor/valve/PID/sensor/safety logic. Actions: 'search' (keyword match), 'list' (browse by category), 'get' (full source code). Categories: types (8), motion (4), actuators (5), sensors (4), safety (2), system (5), utilities (10). Contains ready-to-use blocks for motors, valves, PID, sensors, safety, and more. DO NOT create a new FB if a similar one already exists here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Block name for action=get (e.g., "FB_StandardMotor", "E_AxisState") | |
| query | No | Search term for action=search (e.g., "motor", "temperature", "pid") | |
| action | Yes | 'search': find blocks by keyword | 'list': browse all blocks (optionally by category) | 'get': retrieve full .st source code | |
| category | No | Filter by category for action=list, or category hint for action=get |