1、SM331 INFORMATION COLLECTIONSLC A&D CSApril 2004SM331 Information CollectionSLC A&D CS Page 2 of 15 1. 如何获得西门子自动化与驱动产品的资料及在线技术支持 42. 西门子技术支持热线 .43. 需要 SM331 的产品手册 .54. 标准及认证 55. SM331 搬运、存储、运行的环境要求 .56. SM331 常用信息 .67. 缩写词含义 68. 如何使用 SM331 .69. 在 STEP 7 的硬件目录里找不到想要配置的硬件 710. SM331 上不使用的通道的接线 811. 如何
2、在 STEP 7 中设置 SM331 的参数并访问其通道 811.1. 如何在 HW Config 中设置 SM331 的参数 .811.2. 在程序中对模拟量输入的访问 .912. 如何连接传感器及外部电源到 SM331 模板 .1013. 连接二线制变送器到 SM331 模板 .1013.1. 两线制信号(2DMU)与四线制信号(4DMU) 的区别 .1013.2. 如何连接两线制变送器到只能接入四线制信号的模板 .1013.3. 两线制信号与四线制信号接线的注意事项 .1013.4. 不同类型传感器到 SM331-7Kx0x 的接线实例 .1014. 连接热电偶到 SM331 模板 11
3、14.1. 为什么要用补偿盒对 SM331 进行外部冷端补偿及怎样补偿 (6ES7 331-7KFxx-0AB0 及 6ES7 331-7KBxx-0AB0)1114.2. 热电偶量程转换 .1115. 连接热电阻到 SM331 模板 1115.1. 热电阻测量原理及连接两线、三线、四线热电阻到 6ES7 331-7Kxxx-0AB01115.2. 量程转换 11SM331 Information CollectionSLC A&D CS Page 3 of 15 15.3. 为什么用数字万用表测量不到 SM331 模板测量电阻值的电流 12请点击 http:/www4.ad.siemens.
4、de/WW/view/en/13963555 阅读在线 FAQ。 .1215.4. 连接三线制热电阻到 6ES7331-7PF00-0AB0 的注意事项 .1216. 连接 HART 协议仪表到 SM331 模板 1216.1. 如何连接支持 HART 协议的仪表到 SM331 模板 .1216.2. 怎 样 用 SM331(6ES7331-7TB00-0AB0)读 HART 仪 表 的 数 据 1316.3. 连接 HART 仪表到常规 S7-300 模拟量输入模板 .1316.4. 6ES7331-7TB00-0AB0 不用通道的设置 .1317. 怎样设置并修改 SM331 的分辨率 .
5、1318. STEP 7 中用于读取模拟量的功能块 1319. 读出的模拟量值超限 .1320. SM331 SF 灯亮 .1321. 直接将来自 0 区或 1 区的传感器信号接入 S7-300 Ex(i) 模板 1422. 与 SM331 有关的 OB 块 .14SM331 Information CollectionSLC A&D CS Page 4 of 15 1. 如何获得西门子自动化与驱动产品的资料及在线技术支持首先,建议您访问 Siemens A&D 的产品与技术支持网站 http:/www4.ad.siemens.de/ 或者,致电 010-64721888 转 3785 索取资
6、料。如需设备选型及订货,请联系当地西门子分销商。分销商联系方式可致电 010-64719990 获得。2. 西门子技术支持热线如有无法自行解决的技术问题,请拨打西门子技术支持热线 010-64719990 登记,等待西门子技术支持工程师回复。我们会在 8 小时内予以响应。请注意在登记问题时尽量准确地描述所使用产品的类型,以便尽快得到负责该产品的工程师的帮助。SM331 Information CollectionSLC A&D CS Page 5 of 15 3. 需要 SM331 的产品手册请点击 http:/www4.ad.siemens.de/WW/view/en/8859629 下载。
7、4. 标准及认证1. CE approval2. UL approval3. CSA approval4. FM approval5.6. Identification for Australia7. IEC 611318. Shipbuilding approval详细信息请参见模板手册。5. SM331 搬运、存储、运行的环境要求标准模板运行状况下要求的气候条件参见下表:SIPLUS S7-300 模板应用于扩展的环境条件下,扩展的环境条件描述如下: Operation possible at temperatures from 25C to +60CSM331 Information C
8、ollectionSLC A&D CS Page 6 of 15 Occasional, brief condensation permitted Increased mechanical stress permissible详细信息请参见模板手册。6. SM331 常用信息SM331 模板是西门子 S7-300 系列 PLC 中的模拟量输入模块,常用模板的信息请参见“SM331 Characteristics“7. 缩写词含义FAQ: Frequently Asked Questions 经常问到的问题M +: Measuring lead (positive) 信号线(正)M: Measu
9、ring lead (negative) 信号线(负)MANA: Reference potential of the analog measuring circuit 模拟量输入回路的参考电势M: Ground terminal 接地端L +: Terminal for 24 VDC supply voltage 24VDC电源接线端UCM: Potential difference between inputs and reference potential of the MANA measuring circuit 信号输入端与M ANA间的电势差UISO: Potential diff
10、erence between MANA and M terminal of CPU MANA与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 420mA 手册。使用 SM331 的基本步骤如下:SM331 Information CollectionSLC A&D
11、CS Page 7 of 15 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
12、to module 连接传感器到模板6. Commission configuration 调试7. If commissioning was not successful, diagnose configuration 如调试出错,做相应的诊断9. 在 STEP 7 的硬件目录里找不到想要配置的硬件如果在 STEP 7 的硬件目录中找不到想要配置的硬件,解决办法如下:1. Installing Hardware UpdatesAs of STEP 7 V5.2, you can subsequently install components for the Hardware Catalog.
13、 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 download
14、ed 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
15、网站上下载 STEP 7 的补丁程序,如 SP6 for STEP 7 V5.1 或 SP1 for STEP 7 V5.2 并安装,如果仍然找不到想要配置的硬件,就必须找当地的分销商升级 STEP 7 软件到最新的版本。目前 STEP 7 的最新版本为 V5.3。SM331 Information CollectionSLC A&D CS Page 8 of 15 10. SM331 上不使用的通道的接线请点击 http:/www4.ad.siemens.de/dnl/DkxODg4MQAA_42382/besch_e.pdf 了解详细信息。或参考下文: 。“unused channel w
16、iring“11. 如何在 STEP 7 中设置 SM331 的参数并访问其通道11.1. 如何在 HW Config 中设置 SM331 的参数通常,在硬件配置中 SM331 的属性设置包括 General, Addresses, Inputs 三项,见下图:在 General 中包含对模板信息的描述。在 Addresses 中定义该模板各通道在系统中的 I/O 地址,在程序中可以用 PIW 的方式访问,如 PIW218。在 Inputs 中包含诊断中断、硬件中断、断线检测、测量类型、测量范围、量程卡等的相关设置与信息,详细描述请点击右下角Help 键。SM331 Information C
17、ollectionSLC A&D CS Page 9 of 15 其中一个参数需要注意:Integration Time/ interference frequency suppressionThe 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 powe
18、r frequency (50 Hz or 60 Hz)The integration time implicitly determines: The interference frequency suppression The resolutionThe following table illustrates this relationship:11.2. 在程序中对模拟量输入的访问在程序中对模拟量输入的访问分为直接地址及过程映像两种。直接地址即直接访问在 HW Config 中定义的地址,如该通道地址为 120,则在程序中访问 PIW120(PI: Peripheral Input)即可。
19、过程映像则是在程序中直接访问 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
20、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 avai
21、lable. 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.SM331 Information CollectionSLC A&D CS Page 10 of 15 12. 如何连接传感器及外部电源到 SM331 模板请参见模板手册中相应订货号的模板的外部接线图。13. 连接二线制变送器到 SM331 模板13.
22、1. 两线制信号(2DMU)与四线制信号(4DMU)的区别参见 2线 制 传 感 器 和 4线制 传 感 器 说 明 FAQ或点击 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
23、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. 不同类型传感器到
24、 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。SM331 Information CollectionSLC A&D CS Page 11 of 15 14.2. 热电偶量程转换各分度的热
25、电偶量程转换表,请参见模板手册。15. 连接热电阻到 SM331 模板15.1. 热电阻测量原理及连接两线、三线、四线热电阻到 6ES7 331-7Kxxx-0AB0请点击 http:/www4.ad.siemens.de/WW/view/en/8460832 阅读在线 FAQ。15.2. 量程转换各分度的热电阻量程转换表,请参见模板手册。常用的 PT100 热电阻量程转换表如下:SM331 Information CollectionSLC A&D CS Page 12 of 15 本文仅列出常用的 Pt 电阻的量程转换表,如果使用 Cu 电阻或 Ni 电阻,请参见模板手册。15.3. 为什
26、么用数字万用表测量不到 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。也就是说,在三线制热电阻接入这块模板时,第一次从模板读到数
27、据需要 5 分钟的时间,因为模板每 5 分钟计算一次热电阻的长线补偿值。16. 连接 HART 协议仪表到 SM331 模板16.1. 如何连接支持 HART 协议的仪表到 SM331 模板“HART Config for S7-300/400“SM331 Information CollectionSLC A&D CS Page 13 of 15 16.2. 怎 样 用 SM331(6ES7331-7TB00-0AB0)读 HART 仪 表 的 数 据怎 样 读 HART仪 表 的数 据16.3. 连接 HART 仪表到常规 S7-300 模拟量输入模板请点击 http:/www4.ad.s
28、iemens.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 Values) for reading analog
29、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 超限值的现象可以通过正确的外部接
30、线避免,各种信号及各订货号模板的接线参见本文相关章节。如果在外部接线完全满足模板要求的情况下,仍然出现读数超限,则有可能是信号源接地不好、信号电缆敷设过程中有电磁干扰等原因造成 M-与 Mana 间电势差 Ucm 过大。这种情况下建议采用有源信号隔离器。20. SM331 SF 灯亮SM331 SF 灯亮表明硬件故障。可能的原因如下:模板所需 24VDC 电源未正确接入;前连接器未插到位;总线连接器未连好;有硬件中断产生(断线、超限) ,量程卡所插的方向与HW Config 中的设置不符,等等。SM331 Information CollectionSLC A&D CS Page 14 of
31、15 在线察看模板信息的方法参见下图: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 Processi
32、ng (OB1) Cyclic interrupts OB30 OB31 OB32 OB33 OB34 OB35 OB36 OB37 7 8 9 10 11 12 13 14 Cyclic Interrupt Organization Blocks (OB30 to OB38) SM331 Information CollectionSLC A&D CS Page 15 of 15 OB38 15 Hardware interrupts OB40 OB41 OB42 OB43 OB44 OB45 OB46 OB47 16 17 18 19 20 21 22 23 Hardware Interr
33、upt 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 OB82 Diagnostic
34、Interrupt OB83 Insert/Remove Module Interrupt OB84 CPU Hardware Fault OB 85 Program Cycle Error OB86 Rack Failure 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 (W
35、arm start) OB101 Hot Restart OB102 Cold Restart 27 27 27 Startup Organization Blocks (OB100/OB101/OB102) Synchronous errors OB121 Programming Error OB122 Access 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,即可查到该块的功能、可访问的临时变量等。