Connects the specified Universal bus with the specified group.
Gx6264ConnectBus (nHandle, nBus, nGroup, nMode, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to the board. |
nBus |
SHORT |
Universal Bus number0. GX6264_BUS_X01. GX6264_BUS_Y02. GX6264_BUS_X13. GX6264_BUS_Y1 |
nGroup |
SHORT |
Group number 0-7. Corresponds to groups A-H as follow:0 GX6264_GROUP_A1 GX6264_GROUP_B2 GX6264_GROUP_C3 GX6264_GROUP_D4 GX6264_GROUP_E5 GX6264_GROUP_F6 GX6264_GROUP_G7 GX6264_GROUP_H |
nMode |
SHORT |
Connection mode (see comments):0. GX6264_CONNECT_ONLY: Connect Only mode1. GX6264_CONNECT_COMBINED: Connect Combined mode |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
In the Direct Bus mode only the specified group is connected to the specified bus. All other groups are disconnected from the specified bus. In the Combination mode, the other groups currently connected to the same bus remain connected.
|
Caution - When closing a relay, verify that all other relays on the same circuit that may cause a short are disconnected (a delay may be required between switching commands). Low Impedance sources such as power supplies may cause irreversible damage to this product when shorted to other signals. |
The following example connects X0 bus to group A in Connect Only mode, and connects the Y1 bus to group D in Combined Bus mode:
Gx6264ConnectBus(nHandle, 0, 0, 0, &nStatus);
Gx6264ConnectBus(nHandle, 1, 3, 1, &nStatus);
GxSWGetErrorString, Gx6264Initialize, Gx6264RemoveBus, Gx6264ResetBus