get_fb_signature
Retrieve a function block's exact pin list, data types, defaults, and usage example to call or instance it correctly. Combines project metadata and firmware reference, flagging unsupported pins.
Instructions
Get a function block's interface — for calling or instancing it correctly.
Combines two authorities, because each knows something the other does not:
the project knows the exact pin list its firmware build compiled against (from
.DITmetadata) or what the code actually passes;the firmware library reference knows data types, defaults, per-pin meaning, which pins this firmware leaves unimplemented, the block's purpose, and a usage example.
Pins the project does not mention are still listed, so a block can be called
with parameters it has never been called with here. unsupportedPins names
parameters that exist on the block but do nothing on this firmware.
Args: path: Project file or directory. fb_name: Function block name, e.g. "MC_Power", "Y_CamIn", "AxisControl".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| fb_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |