unsigned long PIPLX_OpSwitch (long session, unsigned long cardNumber, unsigned long outputSubunit, unsigned long switchFunc, unsigned long segNum, unsigned long switchNum, unsigned long subSwitch, unsigned long switchAction, int *state);
This function obtains, and optionally sets, the state of a switch. It allows explicit access to the individual
switches making up a sub-unit, in types where their operation is normally handled automatically by the driver.
The main purpose of this is in implementing fault diagnostic programs for such types; it can also be used where
normal automated behaviour does not suit an application.
| Input | ||
| Name | Type | Description |
| session | long |
Handle of current session. |
| cardNumber | unsigned long |
Card number. |
| outputSubunit | unsigned long |
Subunit number. |
| switchFunc | unsigned long |
Code indicating the functional group of the switch. |
| segNum | unsigned long |
The segment location of the switch. |
| switchNum | unsigned long |
The number of the switch in its functional group (unity-based). |
| subSwitch | unsigned long |
The number of the subswitch to operate (unity-based). |
| switchAction | unsigned long |
Code indicating the action to be performed. |
| Output | ||
| Name | Type | Description |
| state | int (passed by reference) |
State of the switch (after performing any action). |
| Name | Type | Description |
| return | unsigned long |
Zero for success, or no-zero error code. |
General purpose output
Client Bridge for LXI - Base module
Alphabetical Function Index
Hierarchical Function Index