FC: External HMI Command - v1.0
This function routes an external HMI command to a drive’s hmiCommand variable when ext_selector matches the drive ID.
Use Cases
Section titled “Use Cases”- Sending HMI commands from a central panel to a specific drive by ID.
- Clearing
hmiCommandautomatically when the selector changes or the command is set toNIL.
Dependencies
Section titled “Dependencies”None.
Parameters
Section titled “Parameters”Function
Section titled “Function”| Parameter | Declaration | Type | Init. value | Description |
|---|---|---|---|---|
ID | Input | UInt | — | IW: Drive identifier |
ext_selector | Input | Int | — | IW: Selected drive ID from external source (HMI) |
ext_hmiCommand | Input | UInt | — | IW: HMI command value to forward. See EHmiCommand |
hmiCommand | In/Out | UInt | — | IOX: Drive’s HMI command variable — updated when ID matches |
auxBit1 | In/Out | Bool | — | IOX: Auxiliary edge-detection bit for selector |
auxBit2 | In/Out | Bool | — | IOX: Auxiliary edge-detection bit for command |