216
────────────────────────────────────────────────────
12.6 Sample Programs
────────────────────────────────────────────────────
12.6.2 RS-232C
10 '
10
20 OPEN "COM1:9600,N,8,1,LF" FOR RANDOM AS #1
20 RS‑232C回線オープン
30 PRINT #1,"*RST"
30 3193を初期化する
40 PRINT #1,":TRAN:TERM 1"
40 ターミネータをCR+LFにする
50 PRINT #1,":VOLT1:RANG 150;AUTO OFF;MEAN OFF" 50 電圧レンジ150V
60 PRINT #1,":CURR1:RANG 10;AUTO OFF;MEAN OFF"
60 電流レンジ10A
70 PRINT #1,":SCAL1:PT 3;CT 2;CONT ON,ON,OFF"
70 スケーリング PT比3、CT比2
80 PRINT #1,":TIMER:TIME 1,0;CONTROL ON"
80 タイマ時間セット
90 PRINT #1,":INTER:TIME 0,1,0;CONTROL ON"
90 インターバル時間セット
100 PRINT #1,"*ESE 0;*ESE0 4;*SRE 0"
100 ESE、ESE0のセット
110 PRINT #1,":HEAD ON"
110 ヘッダ ON
120 PRINT #1,"*CLS"
120 イベントステータスレジスタク
130 PRINT #1,":INTEG:START"
130 積算スタート
140 PRINT #1,"*STB?"
140 STB問合わせ
150 LINE INPUT #1,A$
150 STB読み込み
160 IF INSTR(A$,"*STB 1")=0 THEN GOTO 140
160 STBが1でなかったら140行へ。
170 PRINT #1,":MEAS? TIME,WP1,PWP1,MWP1"
170 積算値と積算時間の問合せ
180 LINE INPUT #1,A$
180 積算値と積算時間の読み込み
190 PRINT A$
190 積算値の表示
200 PRINT #1,":INTEG?"
200 積算状態の問合せ
210 LINE INPUT #1,A$
210 積算状態の読み込み
220 IF INSTR(A$, ":INTEGRATE 0")<>0 THEN GOTO 250 220 積算が終了していたら250行へ
230 PRINT #1,"*CLS"
230 イベントステータスレジスタク
240 GOTO 140
240 140行へ飛ぶ
250 PRINT #1,":INTEG:RESET"
250 積算リセット
260 CLOSE #1
260 RS‑232C回線クローズ
270 END
270 終了
10
20 Open the RS-232C circuit file
30 Initialize
40 Set delimiter to "CR+LF"
50 Set voltage range to 150 V
60 Set current range to 10 A
70 Set PT ratio to 3, CT ratio to 2
80 Set timer
90 Set interval time
100 Set ESE, ESE0
110 Enable header
120 Clear event status registers
130 Start integration
140 Query contents of status byte
150 Get contents of status byte
160 Branches to line 140 when STB is not 1
170 Query integration value and time
180 Get integration value and time
190 Display integration value
200 Query integration condition
210 Get integration condition
220 Branches to line 250 when integration stops
230 Clear event status registers
240 Branches to line 140
250 Reset integration value
260 Close the RS-232C circuit file
270 End of program
TIME 00000,00,00;WP1 +0.00000kWh;PWP1 +0.00000kWh;MWP1 ‑0.00000kWh
TIME 00000,01,00;WP1 +0.06000kWh;PWP1 +0.06000kWh;MWP1 ‑0.00000kWh
TIME 00000,02,00;WP1 +0.12000kWh;PWP1 +0.12000kWh;MWP1 ‑0.00000kWh
TIME 00000,03,00;WP1 +0.18000kWh;PWP1 +0.18000kWh;MWP1 ‑0.00000kWh
TIME 00000,04,00;WP1 +0.24000kWh;PWP1 +0.24000kWh;MWP1 ‑0.00000kWh
TIME 00000,05,00;WP1 +0.30000kWh;PWP1 +0.30000kWh;MWP1 ‑0.00000kWh
TIME 00000,06,00;WP1 +0.36000kWh;PWP1 +0.36000kWh;MWP1 ‑0.00000kWh
TIME 00000,56,00;WP1 +3.36000kWh;PWP1 +3.36000kWh;MWP1 ‑0.00000kWh
TIME 00000,57,00;WP1 +3.42000kWh;PWP1 +3.42000kWh;MWP1 ‑0.00000kWh
TIME 00000,58,00;WP1 +3.48000kWh;PWP1 +3.48000kWh;MWP1 ‑0.00000kWh
TIME 00000,59,00;WP1 +3.54000kWh;PWP1 +3.54000kWh;MWP1 ‑0.00000kWh
TIME 00001,00,00;WPI +3.60000kWh;PWP1 +3.60000kWh;MWP1 ‑0.00000kWh
Execution results
Program list
Program comments
Содержание Power HiTester 3193
Страница 1: ...3193 3193 10 Instruction Manual POWER HiTESTER EN Feb 2019 Revised edition 16 3193A981 16 19 02H ...
Страница 2: ......
Страница 50: ...32 3 9 Operations During Power Failure ...
Страница 76: ...58 4 13 Degaussing ...
Страница 80: ...62 5 2 Setting the Frequency Range fa ...
Страница 108: ...90 9 3 Internal Circuit for the External Control and Timing ...
Страница 112: ...94 10 3 Output Rate ...
Страница 250: ...232 13 9 Error and Overflow Displays ...
Страница 278: ...260 17 5 Internal Block Diagram ...
Страница 284: ...266 19 2 Installation Procedures For JIS standard For EIA standard External Dimensions ...
Страница 300: ...282 20 4 Internal Block Diagram of the 3193 ...
Страница 306: ...INDEX 4 Index ...
Страница 307: ......
Страница 308: ......
Страница 309: ......
Страница 310: ......