文档库 最新最全的文档下载
当前位置:文档库 › 46578652S7-300_SM331模拟量输入模板的使用与调试

46578652S7-300_SM331模拟量输入模板的使用与调试

SM331 INFORMATION COLLECTION

SLC A&D CS

April 2004

1.如何获得西门子自动化与驱动产品的资料及在线技术支持 (4)

2.西门子技术支持热线 (4)

3.需要SM331的产品手册 (5)

4.标准及认证 (5)

5.SM331搬运、存储、运行的环境要求 (5)

6.SM331常用信息 (6)

7.缩写词含义 (6)

8.如何使用SM331 (6)

9.在STEP 7的硬件目录里找不到想要配置的硬件 (7)

10.SM331上不使用的通道的接线 (8)

11.如何在STEP 7中设置SM331的参数并访问其通道 (8)

11.1.如何在HW Config中设置SM331的参数 (8)

11.2.在程序中对模拟量输入的访问 (9)

12.如何连接传感器及外部电源到SM331模板 (10)

13.连接二线制变送器到SM331模板 (10)

13.1.两线制信号(2DMU)与四线制信号(4DMU)的区别 (10)

13.2.如何连接两线制变送器到只能接入四线制信号的模板 (10)

13.3.两线制信号与四线制信号接线的注意事项 (10)

13.4.不同类型传感器到SM331-7Kx0x的接线实例 (10)

14.连接热电偶到SM331模板 (11)

14.1.为什么要用补偿盒对SM331进行外部冷端补偿及怎样补偿(6ES7

331-7KFxx-0AB0及6ES7 331-7KBxx-0AB0) (11)

14.2.热电偶量程转换 (11)

15.连接热电阻到SM331模板 (11)

15.1.热电阻测量原理及连接两线、三线、四线热电阻到6ES7 331-7Kxxx-0AB011 15.2.量程转换 (11)

15.3.为什么用数字万用表测量不到SM331模板测量电阻值的电流 (12)

请点击http://www4.ad.siemens.de/WW/view/en/13963555 阅读在线FAQ。 (12)

15.4.连接三线制热电阻到6ES7331-7PF00-0AB0的注意事项 (12)

16.连接HART协议仪表到SM331模板 (12)

16.1.如何连接支持HART协议的仪表到SM331模板 (12)

16.2.怎样用SM331(6ES7331-7TB00-0AB0)读HART仪表的数据 (13)

16.3.连接HART 仪表到常规S7-300 模拟量输入模板 (13)

16.4.6ES7331-7TB00-0AB0不用通道的设置 (13)

17.怎样设置并修改SM331的分辨率 (13)

18.STEP 7 中用于读取模拟量的功能块 (13)

19.读出的模拟量值超限 (13)

20.SM331 SF灯亮 (13)

21.直接将来自0区或1区的传感器信号接入S7-300 Ex(i) 模板 (14)

22.与SM331有关的OB块 (14)

1. 如何获得西门子自动化与驱动产品的资料及在线技术支

首先,建议您访问Siemens A&D的产品与技术支持网站http://www4.ad.siemens.de/

或者,致电010-********转3785 索取资料。

如需设备选型及订货,请联系当地西门子分销商。分销商联系方式可致电010-********获得。

2. 西门子技术支持热线

如有无法自行解决的技术问题,请拨打西门子技术支持热线010-********登记,等待西门子技术支持工程师回复。我们会在8小时内予以响应。

请注意在登记问题时尽量准确地描述所使用产品的类型,以便尽快得到负责该产品的工程师的帮助。

3. 需要SM331的产品手册

请点击http://www4.ad.siemens.de/WW/view/en/8859629下载。

4. 标准及认证

1.CE approval

2.UL approval

3.CSA approval

4.FM approval

5.

6.Identification for Australia

7.IEC 61131

8.Shipbuilding approval

详细信息请参见模板手册。

5. SM331搬运、存储、运行的环境要求

标准模板运行状况下要求的气候条件参见下表:

SIPLUS S7-300模板应用于扩展的环境条件下,扩展的环境条件描述如下:?Operation possible at temperatures from –25?C to +60?C

?Occasional, brief condensation permitted

?Increased mechanical stress permissible

详细信息请参见模板手册。

6. SM331常用信息

SM331模板是西门子S7-300系列PLC中的模拟量输入模块,常用模板的信息请参见

7. 缩写词含义

FAQ: Frequently Asked Questions 经常问到的问题

M +: Measuring lead (positive) 信号线(正)

M–: Measuring lead (negative) 信号线(负)

M ANA: Reference potential of the analog measuring circuit 模拟量输入回路的参考电势

M: Ground terminal 接地端

L +: Terminal for 24 VDC supply voltage 24VDC电源接线端

U CM: Potential difference between inputs and reference potential of the M ANA measuring circuit 信号输入端与M ANA间的电势差

U ISO: Potential difference between M ANA and M terminal of CPU M ANA与CPU的M端间的电势差

I +: Measuring lead for current input 电流输入测量端

U +: Measuring lead for voltage input 电压输入测量端

8. 如何使用SM331

请点击http://www4.ad.siemens.de/WW/view/en/17473828下载Getting Started of SM331 4~20mA手册。

使用SM331的基本步骤如下:

1.Select the module 模板选型

2.With some analog input modules: set the measuring method and measuring range by

means of the measuring range module 通过量程卡确定测量类型、测量范围

3.Install the module in the SIMATIC S7 network 安装模板

4.Assign parameters to module 设置参数

5.Connect measuring sensor or loads to module 连接传感器到模板

https://www.wendangku.net/doc/2d6616664.html,mission configuration 调试

7.If commissioning was not successful, diagnose configuration 如调试出错,做相应的诊

9. 在STEP 7的硬件目录里找不到想要配置的硬件

如果在STEP 7 的硬件目录中找不到想要配置的硬件,解决办法如下:

1.Installing Hardware Updates

As of STEP 7 V5.2, you can subsequently install components for the Hardware Catalog. In this way you can use individual components such as new CPUs or new I/O devices in the current version of STEP 7 without having to install a new service pack.

Procedure:

Select the menu command Options > Install HW Updates.

In the dialog that appears, specify whether the HW update should be downloaded from the Internet or copied from a CD or

whether you want to install updates that have already been download (selection available)

Select the component to be installed and then click the "Install" button.

2.如果您使用的是STEP 7 V5.1或者更低的版本,而在STEP 7的硬件目录里找不到

想要配置的硬件,那么首先建议您到http://www4.ad.siemens.de 网站上下载STEP 7

的补丁程序,如SP6 for STEP 7 V5.1或SP1 for STEP 7 V5.2并安装,如果仍然找不

到想要配置的硬件,就必须找当地的分销商升级STEP 7软件到最新的版本。目前

STEP 7的最新版本为V5.3。

10. SM331上不使用的通道的接线

请点击http://www4.ad.siemens.de/dnl/DkxODg4MQAA_42382/besch_e.pdf了解详细信息。或参考下文:。

11. 如何在STEP 7中设置SM331的参数并访问其通道

11.1. 如何在HW Config中设置SM331的参数

通常,在硬件配置中SM331的属性设置包括General, Addresses, Inputs三项,见下图:

在General中包含对模板信息的描述。在Addresses中定义该模板各通道在系统中的I/O地址,在程序中可以用PIW的方式访问,如PIW218。在Inputs中包含诊断中断、硬件中断、断线检测、测量类型、测量范围、量程卡等的相关设置与信息,详细描述请点击右下角Help 键。

其中一个参数需要注意:

Integration Time/ interference frequency suppression

The frequency of the AC power supply network can interfere with the measurement values. With this parameter you specify the frequency of your power supply on site.

?Interference frequency: Select your power frequency (50 Hz or 60 Hz)

The integration time implicitly determines:

·The interference frequency suppression

·The resolution

The following table illustrates this relationship:

11.2. 在程序中对模拟量输入的访问

在程序中对模拟量输入的访问分为直接地址及过程映像两种。直接地址即直接访问在HW Config中定义的地址,如该通道地址为120,则在程序中访问PIW120(PI: Peripheral Input)即可。过程映像则是在程序中直接访问CPU的process image,如该通道地址为120,则在程序中访问IW336即可。两者差别如下:

Compared with direct access to the input/output modules, the main advantage of accessing the process image is that the CPU has a consistent image of the process signals for the duration of one program cycle. If a signal state on an input module changes while the program is being executed, the signal state in the process image is retained until the process image is updated again in the next cycle. The process of repeatedly scanning an input signal within a user program ensures that consistent input information is always available.

Access to the process image also requires far less time than direct access to the signal modules since the process image is located in the internal memory of the CPU.

12. 如何连接传感器及外部电源到SM331模板

请参见模板手册中相应订货号的模板的外部接线图。

13. 连接二线制变送器到SM331模板

13.1. 两线制信号(2DMU)与四线制信号(4DMU)的区别

参见

或点击http://www4.ad.siemens.de/WW/view/en/188821阅读在线FAQ。

13.2. 如何连接两线制变送器到只能接入四线制信号的模板

请点击http://www4.ad.siemens.de/WW/view/en/18475312阅读在线FAQ。

13.3. 两线制信号与四线制信号接线的注意事项

2-wire measuring transducer:

?Connect Mana to M (jumper between Pins 11 and 20) and jumper Pins 10 and 11.

?Short-circuit the unused channels of a channel group or jumper them with a 3.3 kohm resistor.

4-wire measuring transducer:

?Connect all Mx- to Mana and Pin 10 to Pin 11.

?Connect the unused channels of a channel group in series and connect Mx- to Mana. 13.4. 不同类型传感器到SM331-7Kx0x的接线实例

请点击http://www4.ad.siemens.de/WW/view/en/264773阅读在线FAQ。

14. 连接热电偶到SM331模板

14.1. 为什么要用补偿盒对SM331进行外部冷端补偿及怎样补偿(6ES7

331-7KFxx-0AB0及6ES7 331-7KBxx-0AB0)

请点击http://www4.ad.siemens.de/WW/view/en/18272332阅读在线FAQ。

14.2. 热电偶量程转换

各分度的热电偶量程转换表,请参见模板手册。

15. 连接热电阻到SM331模板

15.1. 热电阻测量原理及连接两线、三线、四线热电阻到6ES7 331-7Kxxx-0AB0 请点击http://www4.ad.siemens.de/WW/view/en/8460832阅读在线FAQ。

15.2. 量程转换

各分度的热电阻量程转换表,请参见模板手册。

常用的PT100热电阻量程转换表如下:

本文仅列出常用的Pt电阻的量程转换表,如果使用Cu电阻或Ni电阻,请参见模板手册。

15.3. 为什么用数字万用表测量不到SM331模板测量电阻值的电流

请点击http://www4.ad.siemens.de/WW/view/en/13963555阅读在线FAQ。15.4. 连接三线制热电阻到6ES7331-7PF00-0AB0的注意事项

在连接三线制热电阻到6ES7331-7PF00-0AB0这块模板时有一个注意事项,在模板手册中有一条说明:The resistance measurement for a three-conductor connection is performed every 5 minutes。也就是说,在三线制热电阻接入这块模板时,第一次从模板读到数据需要5分钟的时间,因为模板每5分钟计算一次热电阻的长线补偿值。

16. 连接HART协议仪表到SM331模板

16.1. 如何连接支持HART协议的仪表到SM331模板

16.2. 怎样用SM331(6ES7331-7TB00-0AB0)读HART仪表的数据

16.3. 连接HART 仪表到常规S7-300 模拟量输入模板

请点击http://www4.ad.siemens.de/WW/view/en/2043180阅读在线FAQ。

16.4. 6ES7331-7TB00-0AB0不用通道的设置

请点击http://www4.ad.siemens.de/WW/view/en/14034159 阅读在线FAQ。

17. 怎样设置并修改SM331的分辨率

请点击http://www4.ad.siemens.de/WW/view/en/42510阅读在线FAQ。

18. STEP 7 中用于读取模拟量的功能块

You can use the blocks FC 105 “SCALE” (Scale Value s) for reading analog values in STEP 7. You will find the FC in the standard library of STEP 7 in the subdirectory called “TI-S7 Converting Blocks” (for a description, refer to the STEP 7 Online Help for the FC).

19. 读出的模拟量值超限

请点击http://www4.ad.siemens.de/WW/view/en/11966082阅读在线FAQ。

通常,从SM331的通道中读出7FFF超限值的现象可以通过正确的外部接线避免,各种信号及各订货号模板的接线参见本文相关章节。如果在外部接线完全满足模板要求的情况下,仍然出现读数超限,则有可能是信号源接地不好、信号电缆敷设过程中有电磁干扰等原因造成M-与Mana间电势差Ucm过大。这种情况下建议采用有源信号隔离器。

20. SM331 SF灯亮

SM331 SF灯亮表明硬件故障。可能的原因如下:模板所需24VDC电源未正确接入;前连接器未插到位;总线连接器未连好;有硬件中断产生(断线、超限),量程卡所插的方向与

HW Config中的设置不符,等等。

在线察看模板信息的方法参见下图:

21. 直接将来自0区或1区的传感器信号接入S7-300

Ex(i) 模板

请点击http://www4.ad.siemens.de/WW/view/en/12346645阅读在线FAQ。

22. 与SM331有关的OB块

Type of Interrupt Organization Block Priority Class

(Default)

See also (STEP 7 Online Help)

Main program scan OB1 1 Organization Block for Cyclic Program

Processing (OB1)

Cyclic interrupts OB30

OB31

OB32

OB33

OB34

OB35

7

8

9

10

11

12

Cyclic Interrupt Organization Blocks

(OB30 to OB38)

OB36 OB37 OB38 13

14

15

Hardware interrupts OB40

OB41

OB42

OB43

OB44

OB45

OB46

OB47

16

17

18

19

20

21

22

23

Hardware Interrupt Organization Blocks

(OB40 to OB47)

Redundancy errors OB70 I/O Redundancy

Error (only in H

systems)

OB72 CPU

Redundancy Error

(only in H systems)

25

28

"Error Handling Organization Blocks

(OB70 to OB87 / OB121 to OB122)"

Asynchronous errors OB80 Time Error

OB81 Power Supply

Error

OB83 Insert/Remove

Module Interrupt

OB84 CPU Hardware

Fault

OB 85 Program Cycle

Error

OB87 Communication

Error

25

(or 28 if the

asynchronous

error OB

exists in the

startup

program)

Error Handling Organization Blocks

(OB70 to OB87 / OB121 to OB122)

Startup OB100 Restart

(Warm start)

OB101 Hot Restart

OB102 Cold Restart 27

27

27

Startup Organization Blocks

(OB100/OB101/OB102)

Synchronous errors OB121 Programming

Error

Priority of the

OB that

caused the

error

Error Handling Organization Blocks

(OB70 to OB87 / OB121 to OB122)

各OB块详细信息请参见STEP 7在线帮助。具体方法为:打开STEP 7 Help, 在Index中搜索关键字OBxx,即可查到该块的功能、可访问的临时变量等。

相关文档
相关文档 最新文档