background image

12

CN

电子负载产品用

SCPI 

指令操作说明书

日期:23-07-2015

SCPI

3.9  特殊指令

3.9.1 SYST:DATA:SET 和 SYST:DATA:REQ

提示

这只应用于

IF-E1B

-

以太网卡!

只有经以太网端口

,网卡才能运行

SCPI

指令,从章节

3

开始

有详细介绍。

此外,本卡提供了两个以十六进制格式给产品发送电报的指
令,它与面向对象二进制协议相似(在“

Programming

”说

明指导中有描述)。这些指令的目的是控制那些无特定

SCPI

指令的产品功能。经过这两个

SCPI

指令,用户甚至可控制

PSI 9000

PSI 8000

系列的函数管理器。执行该操作,仅

需建立如下的字节顺序即可:

对于

SYST:DATA:SET  :

     

ON, DATA

对于

SYST:DATA:REQ :

     

ON

所 有

ON

DATA

字 节 都 转 化 成 十 进 制 数 值 , 并 通 过

SYST:DATA:SET

指令发送给产品。

重点!所有字节必须用

冒号隔开。

发 送 参 数 , 如 一 设 定 值 或 以 状 态 给 产 品 时 , 需 用 到

DATA

DATA

字节数必须正确,否则接口卡会返回一错

误。

DATA

长度在对象清单(见

object lists

说明指导)中有

定义,而且会有不同。

以发送设定电压值为例,需要一个

16

位的整数,形成两个字

节和由两冒号分开的十进制数值,从而组成

SYST:DATA:SET

指令。

 

第一个值

ON

,代表对象清单第一栏的对象号(即:一指令)

。它定义

DATA

的目标。对象号和数据组合一起被当做一组指

令,而对象号仅被认为是一个查询指令。

1

要将水平控制设为

„Level A/B“

,动态模式。已知电子负载已

根据

EL3000/EL9000

object list

 

设为远程模式,需使用对象

54

。该清单定义控制字节的第

5

6

位选择水平模式,二进

制值

10

将设为

„Level A/B“

。故控制字节为

0x40

与十进制值

64

。需要的掩码为

0x60

与十进制值

96

。在不影响其他位元的条

件下,该掩码通过控制字节选择位元以更改和启动某反应。

形成的

SCPI

指令类似如下:

SYST:DATA:SET

54,

96,

64

关于数值意思的更多信息请参考“

Programming

”说明指导

和相关

object list

 

2

可从产品上查询电压、电流和功率的实际值。这需由

RE-

Quest

完成。按照对象清单,对象

71

可一次性返回所有

6

单字节的实际值。请求类似如下:

SYST:DATA:REQ

71

产品可能返回这样的

6

个十进制数值:

71,

67,

37,

21,

127,

24,

16

第一个数值为对象,其它为实际值。  两个比邻数值组成一

16

位值,它代表百分比式的实际值。

故这

6

个值形成下面组合十六进制值:

67,

37,

21,

127,

24,

16

0x4325, 0x157F, 0x1810

将其转换成十进制或十六进制百分比值为(

VB

C

或其它

类似):

百分比值

 = 

第一个值

 * 256 + 

第二个值

上面例子的头两个字节则转换成的十进制值

17189

,即:

67 

* 256 + 37

0x4325

十六进制。

形成三个

16

位的值或者顺序定义如下:

第一个值为是几点呀,第二个为时间电流,第三则为实际功
率,每个都为额定值的百分比数值。之后,需将他们转换成
实际值。可参考“

Programming

”说明指导章节

1.7

为了将转换后的百分比值转成真实实际值,需用到负载的
额定值。举例:如一台

EL 9080-200

负载,其额定值为

80 

V

200 A 

 4800 W

。形成的第二个公式如下:

真实实际值

 = 

额定值

 * 

百分比值

 / 25600

按照上面举例产品,

0x157F

的百分比电流值将为:

200 A * 5503 / 25600 = 43 A

提示

这个实例相当于

SCPI

指令

MEAS:ARR?

。意思是,该指

令将按计算值返回相同数值。可能会出现由

MEAS:ARR?

指令返回的数值因很小的转换错误而使小数位出现细微的
不同。

Содержание IF-E1

Страница 1: ...SCPI STANDARD COMMANDS FOR PROGRAMMABLE INSTRUMENTS Command List For Electronic Loads For use with IF G1 IF E1B IF E2B IF E1 discontinued...

Страница 2: ...2 CN SCPI 23 07 2015 1 3 2 3 3 SCPI 4 3 1 IEEE488 2 4 3 2 4 3 3 5 3 4 6 3 5 6 3 6 9 3 7 9 3 8 9 3 9 12 3 9 1 SYST DATA SET SYST DATA REQ 12 4 13 5 14 5 1 SCPI 14...

Страница 3: ...0 A Time ddd hh mm s s s s s s s s s s s SCPI 1 GPIB IF G1 EOS 0x00 SCPI LF Line Feed 0xA ASCII 10 PC SPC IF G1 1 2 3 03 IF G1 CR LF CR EOI 2 1999 SCPI Command reference Numeric value MIN NR1 NR2 NR3...

Страница 4: ...vice Request Enable Register 3 2 Status Register STB GPIB Ethernet STB Bit 0 Bit 1 Bit 2 err 4 Bit 3 ques Questionable Status Register Bit 4 Bit 5 esr Event Status Register ESR Event Status Enable Reg...

Страница 5: ...z z z 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 0 0 0 0 1 7 6 5 4 3 2 8 9 10 11 12 13 14 U U U U U D U D U D 0 U U U 0 0 0 0 0 U D U D U D U D U D U D U D 0 U D U D U D 0 0 0 0 U D U D U D...

Страница 6: ...R1 PTRtransition NR1 PTRtransition NR1 NTRtransition NR1 NTRtransition NR1 QUEStionable EVENT NR1 Questionable Status Register CONDition NR1 QUES ENABle NR1 QUES ENABle NR1 PTRtransition NR1 PTRtransi...

Страница 7: ...10 1 REMote OPER Register 8 0 9 1 10 0 VERSion SRD SCPI SYST LOCK OWN SYST LOCK STAT 1 LOCK ON IF E1 IF E2B IF E1B SYSTem DATA SET CHAR SET 3 9 1 Programming object list SYST DATA SET 51 100 0 0x33 0x...

Страница 8: ...07 2015 IF E1B SYSTem COMMunicate NETwork MAC SRD MAC IPADdress SRD IP 192 168 0 2 IPADdress CHAR IP MASK SRD 255 0 0 0 MASK CHAR GATEway SRD 0 0 0 0 GATEway CHAR SYST COMM NET IPAD 192 168 0 2 IP 192...

Страница 9: ...PI Command reference 19 Source Subsystem 3 01 HIGH LOW HIGH LOW Level A B Level Control Mode LevelA CV VOLT Level A Keep set values no Mode SOURce VOLTage LEVel NRf Unit Level A B LEVel NRf Unit Level...

Страница 10: ...Level B LOW NRf Unit Level A B Level B CURR 20 00 20 A A B CURR HIGH Level A B Level A SOUR CURR LOW 0 4 A Level A B Level B 0 4 A III 1999 SCPI Command reference 19 Source Subsystem 3 01 HIGH LOW HIG...

Страница 11: ...Level A B Level B LOW NRf Unit Level A B Level B RES 1 300 1 3 RES HIGH Level A B Level A 1 2 V Level A B 1999 SCPI Command reference 19 Source Subsystem 3 01 A HIGH B LOW I IV Level A B A B 0 0005 s...

Страница 12: ...ct lists 16 SYST DATA SET ON DATA 1 Level A B EL3000 EL9000object list 54 5 6 10 LevelA B 0x40 64 0x60 96 SCPI SYST DATA SET 54 96 64 Programming object list 2 RE Quest 71 6 SYST DATA REQ 71 6 71 67 3...

Страница 13: ...while in local 203 Command protected R 223 Too much data 224 Illegal parameter value 225 Out of memory 240 Hardware error CAN CAN 241 Hardware missing 220 Parameter error 221 Settings conflict OUTPUT...

Страница 14: ...S SCAL ARR 3 MEAS SCAL VOLT DC 1 MEAS SCAL CURR DC 1 MEAS SCAL POW DC 1 OUTP 1 0 ON OFF OUTP ON OFF OUTP STAT 1 0 ON OFF OUTP STAT ON OFF POW 0 Pmax POW Pset POW LEV 0 Pmax POW LEV Pset POW HIGH POW L...

Страница 15: ...PULS TRAN LEAD STAT OPER STAT OPER EVENT 0 32767 STAT OPER COND 0 32767 STAT OPER ENAB 0 32767 STAT OPER ENAB 0 32767 STAT OPER PTR 0 32767 STAT OPER PTR 0 32767 STAT OPER NTR 0 32767 STAT OPER NTR 0...

Страница 16: ...T 2 U 3 U P S I 8 0 0 R P S I 9 0 0 0 E L 3 0 0 0 E L 9 0 0 0 VOLT VOLT VOLT LEV VOLT LEV VOLT HIGH VOLT HIGH VOLT LOW VOLT LOW VOLT PROT OVP VOLT PROT OVP VOLT PROT LEV OVP VOLT PROT LEV OVP RST IDN...

Страница 17: ......

Страница 18: ...ommands 20 3 1 Common IEEE488 2 commands 20 3 2 Event system 20 3 3 Register block 21 3 4 Status commands 22 3 5 System commands 22 3 6 Commands to control the input 25 3 7 Measurement commands 25 3 8...

Страница 19: ...iters LF Line Feed 0xA ASCII 10 A transmission from the device requires to first sent a mes sage from the host PC SPC etc The IF G1 will reply if the host expects a reply This is the case if the end o...

Страница 20: ...queried from the device by reading the Status Register STB GPIB Ethernet The status register STB consists of these bits Bit 0 Not used Bit 1 Not used Bit 2 err Error queue full this queue is cleared b...

Страница 21: ...U D U D U D 0 0 0 0 U D U D U D U D U D U D 0 U D U D U D 0 0 0 0 Enable Condition Positive transition Negative transition Event OR z z z z 0 0 0 0 0 0 0 z 0 0 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0...

Страница 22: ...the Questionable Status Register CONDition INT Query QUES event conditions ENABle INT Enable events for QUES ENABle INT Query PTRtransition INT Event will be triggered only at rising edge PTRtransiti...

Страница 23: ...net cards IF E1 IF E2B and IF E1B SYSTem DATA SET CHAR Transport encapsulated telegram in binary format Here Send data SET also see section 3 9 1 Further information about the encapsulated telegram ca...

Страница 24: ...is switched off and then on again MASK SRD Query the actual subnet mask address of the unit which will be returned in the typical format Example 255 0 0 0 MASK CHAR Set subnet mask via commandwith com...

Страница 25: ...d reference 19 Source Subsystem For electronic loads applies These commands are supported since device firmware 3 01 and up the HIGH set value always has to be greater than the LOW set value else an e...

Страница 26: ...the last set value for current Level A or B depending on what is currently active LEVel NRf Unit Set current Level A or B depending on what is currently active HIGH NRf Unit Set value for current of L...

Страница 27: ...are always dedicated to the currently selected Level Control That is if Level A is active and mode CR is preselected the set value sent with RES is set for Level A etc Else the set value is ignored a...

Страница 28: ...0 s Rise time 0 0003 s 0 2 s This results in a period pulse width A B of 100 s 200 s period time which corresponds to 10 kHz 0 005 Hz The duty cycle is thus adjustable from 50 s to 100 s or 0 025 to 9...

Страница 29: ...hex 0x40 and decimal 64 The required mask will be hex 0x60 and 96 decimal The mask selects the bits to change and to initiate a certain reaction by the control byte without effecting the other bits Th...

Страница 30: ...221 Settings conflict Read write law violated no access Access to menu only when OUTPUT OFF Access to set values denied 222 Data out of range Values exceeds upper or lower limit 223 Too much data Obj...

Страница 31: ...lue MEAS SCAL ARR 3 values MEAS SCAL VOLT DC 1 value MEAS SCAL CURR DC 1 value MEAS SCAL POW DC 1 value OUTP 1 0 ON OFF OUTP ON OFF OUTP STAT 1 0 ON OFF OUTP STAT ON OFF POW 0 Pmax POW Set value of po...

Страница 32: ...RAN dito SOUR PULS TRAN LEAD dito SOUR PULS TRAN LEAD dito STAT OPER STAT OPER EVENT 0 32767 STAT OPER COND 0 32767 STAT OPER ENAB 0 32767 STAT OPER ENAB 0 32767 STAT OPER PTR 0 32767 STAT OPER PTR 0...

Страница 33: ...V dito VOLT HIGH dito VOLT HIGH dito VOLT LOW dito VOLT LOW dito VOLT PROT dito OVP VOLT PROT dito OVP VOLT PROT LEV dito OVP VOLT PROT LEV dito OVP RST IDN String max 128 characters STB 0 255 ESR 0 2...

Страница 34: ...EA Elektro Automatik GmbH Co KG Helmholtzstra e 31 33 41747 Viersen Germany Tel 49 2162 37850 Fax 49 2162 16230 ea1974 elektroautomatik cn www elektroautomatik cn...

Отзывы: