- 15 -
3.6 Commands for RS232/GPIB Interface
1.
A command with question mark”?” is to read the equipment. When the command is correctly
executed, there is returned string.
2.
A command without question mark “?” is to write to the equipment. When the command is
correctly executed, there is no returned string. When the command is not correctly executed, it
returns reason of fail.
Command
Returned massage or data
Unit
Description
?FR
45.0~500.0
Hz
Read frequency
?VO
0.0~300.0
V
Read voltage (RMS)
?AM
0.000~I(MAX)
A
Read current (RMS)
?PA
0.0~
A
Read current (PEAK)
?PW
0.0~P(MAX)
W
Read power
?PF
0.000~1.000
Read power factor
ON
Start output
OFF
Stop output
VOX
X=0.0~300.0
V
Voltage setup
FR X
X = 45.0~500.0
Hz
Frequency setup
FR X
X = 45.0~500.0
Hz
Frequency setup
RANGX
X=LOW
X=HIGH
X=AUTO
Voltage range setup
ANGX
X=0~359
Degree
Angle setup
3.7 Programming Sample
Note: words in
bold
is remarks to commands.
har cmd[100];
char respond[100];
DWORD Id,SN;
Id = PARWA_ID(8);
//
set ID=8
if (!PARWA_Open("COM1",19200,&SN))
//
Use port 1, Baud rate: 19200, SN: power
supply serial number
{
return false;
};
sprintf(cmd, "FR 60.0"); //
set frequency at 60.0Hz