Page: 56/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
Management of the Power Supply Units
Function COM_HVPSU2D_GetPSUState
int COM_HVPSU2D_GetPSUState (WORD PortNumber,
DWORD & Status);
Command: s
n
©
Response: s
nSSSSSS
©
Saves the status bits of the PSU controller in the variable
Status
and
returns an error code according to Tab. 10.
The return value in the variable
Status
is the 24-bit status
word of the PSU controller. Its bits are shown in Tab. 12. Note
that you cannot modify the bit values directly, the function
can only be read out. Some of the
bits can be changed indirectly by calling the functions
(bits
ST_PSU0_ENB_CTRL
and
ST_PSU1_ENB_CTRL
),
(bits
ST_PSU0_FULL_CTRL
and
ST_PSU1_FULL_CTRL
), and
COM_HVPSU2D_SetInterlockEnable
(bits
ST_ILOCK_OUT_DIS
and
ST_ILOCK_BNC_DIS
). The bit
ST_PSU_ENB_CTRL
is
controlled by the device controller and is set if no error
conditions exist and the device is enabled (see function
).
The direct command (
s
n
©
) contains one decimal character (
n
) for the
variable
PSU
. The response (
s
nSSSSSS
©
) contains the decimal char-
acter (
n
) for the variable
PSU
followed by 6 hexadecimal digits for the
variable
Status
(
SSSSSS
).
CGC Instruments
Tel.: +49 (371) 355 098–55
Hübschmannstr. 18 | D–09112 Chemnitz
Fax: +49 (371) 355 098–60
internet: www.cgc-instruments.com
e–mail: [email protected]