Returns the specified channel’s current limit.
GxPsGetCurrentLimit (nHandle, nChannel, pdCurrentLimit, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
GX7400 slot number. |
Channel |
SHORT |
Specifies the Channel for which to get the Current Limit:1 – channel A2 – channel B |
pdCurrentLimit |
LPDOUBLE |
Returned current limit.Programmable 0-30V:0.00A-5.00AProgrammable 0-60V:0.00A-2.5AFixed Module: The maximum rated current for the installed module. |
pnStatus |
LPSHORT |
Returned status: 0 on success, negative number on failure. |
Programmable modules current resolution is:
0-30V module: 153.5 µA/step, 0-60V module: 305.1 µA/step.
If total power exceeds 150 W (maximum output power), output voltages will drop to satisfy the power limit.
The following example gets the Current Limit from Channel B.
SHORT nHandle, nStatus;
DOUBLE dCurrentLimit;
GxPsGetCurrentLimit (nHandle, 2, &dCurrentLimit, &nStatus);
GxPsSetCurrentLimit, GxPsGetVoltage, GxPsGetCurrent, GxSpSetVoltage, GxPsGetErrorString, GxPsInitialize