beautypg.com

GW Instek GPM-8212 User Manual

Page 12

background image

POWER METER

USER MANUAL

19

z Communication command

COMMAND DESCRIPTION

EXAMPLE

F00

Data hold enable

F01

Data hold disable

F02

Set in maximum status

F03

Set in minimum status

F04

Set in normal status

R00 V

Range=640.0V

R01 V

Range=320.0V

R02 V

Range=160.0V

R03 V

Range=80.00V

R04 V

Range=40.00V

R05 V

Range=20.00V

R06 V

Range=10.00V

R07 V

Range=5.000V

R08 A

Range=20.48A

R09 A

Range=10.24A

R10 A

Range=5.120A

R11 A

Range=2.560A

R12 A

Range=1.280A

R13 A

Range=640.0mA

R14 A

Range=320.0mA

R15 A

Range=160.0mA

R16 V

Range=Autorange

R17 A

Range=Autorange

S00 Set

Voltage

Ratio(PT)

S00:1

S01

Set Current Ratio(CT)

S01:1

V00 Read

Voltage

V01 Read

Current

V02 Read

Watt

V03 Read

PF

V04 Read

Hz

POWER METER

USER MANUAL

20

z DEMO Program

; Demo program language: BASIC

; Computer set Baudrate equal 9600, and use COM2

; The GPM-8212 set Baudrate equal 9600

; Command define in CMD$

10CMD$= “V00”

20VALUE$= “ ”

30OPEN “COM2:9600,N,8,,CS,DS,CD” FOR RANDOM AS#2 LEN=1

40FOR I= 1 TO 100

50PRINT #2, CMD$

60INPUT #2, VALUE$

70PRINT VALUE$

80NEXT I

90CLOSE #2

100END