您当前的位置:五五电子网电子知识plc技术PLC入门西门子S7-300 150个问题解答之四 正文
西门子S7-300 150个问题解答之四

西门子S7-300 150个问题解答之四

点击数:7304 次   录入时间:03-04 11:56:05   整理:http://www.55dianzi.com   PLC入门
  为什么在FM350-1中选24V编码器,启动以后,SF灯常亮,FM350-1不能工作?
   要检查一下,首先在软件组态中要选择编码器类型(为24V),再检查一下,FM350-1侧面的跳线开关,因为缺省的开关设置为5V编码器,一般用户没有设置,开机后,SF灯就会常亮。另外,还可以看看在线硬件诊断,可以看看错误产生的原因,是否模板坏了。
  
  62: FM350-1的锁存功能是否能产生过程中断?
   FM350-1的锁存功能是不能产生过程中断,但是可以产生过零中断。
   FM350-1的装载值必须为零,随者锁存功能的执行(DI的上升沿开始),当前的计数值被储存到另一地址然后置为初始值零,产生过零中断,在OB40中可以读出中断并相应的锁存值。 锁存值也可以从FM350-1的硬件组态地址的前4个字节中读出。
  
  63: 在FM350-1中,怎样触发一个比较器输出?
   FM350-1中自带的输出点具有快速性、实时性,不必要经过CPU的映像区处理。输出点一般对应于比较器,首先在硬件组态中定义比较器输出类型,如:输出值为1或为脉冲输出,然后在程序中设置比较值。在FM350-1中,地址在通讯DB(UDT生成)块中为18(比较值1)、22(比较值2),类型为DINT,然后激活输出点28.0(DQ0)、28.1(DQ1),这样比较器就可以工作了。
  
  64:在FM350-2中,工作号的作用是什么?
   工作号是S7-300CPU与FM进行通讯的任务号,每次的交换数据只是部分数据交换,而非全部数据,这样可以减少FM的工作负载,工作号又分写工作号和读工作号,例如在FM350-2中指定DB1为通讯数据块,如果把写工作号12写入到DB1.DBB0中,把200写入到DB1.DBD52中,再调用FC3写功能,这样第一个计数器的初始值为200,这里工作号10的任务号是写第一个计数器的初始值,DB1.DBB0为写工作号存入地址,DB1.DBD52为第一个计数器装载地址区,同样读工作号100为读前4路,101为读后4路计数器,读工作号存入地址为DB1.DBB2。 但写任务不能循环写,只能分时写入。
  
  65:如果对于4-20 mA模拟量输入模块来说,小于4 mA后转换的数字量是多少?
   如果小于4ma,那么将会是输出负值,例如 -1对应的是3.9995mA,而1.185 mA 时,这个数值是-4864 (10进制)但是如果小于1.185mA,如果禁止断线检测,这个值是8000(16进制)如果有断线检测,会变成7FFF(16进制)。
  
  66:怎样对模拟量进行标准化和非标准化?
   可以使用以下功能块:
   1.在块FC164中,x和y都是整数。
   2. FC165中x是整数,y是实数。
   3. FC166中x是实数,y是整数。
   4. FC167中x和y都是实数。
  
  67:S7系列PLC之间最经济的通讯方式是什么?
   MPI通讯是S7系列PLC之间一种最经济、数据量最小的一种通讯,需要做连接配置的站通过GD通讯,GD通讯适合于S7-300之间,S7-300、S7-400、MPI之间一些固定数据的通讯。不用作连接的MPI通讯适用于S7-300之间、S7-300与400之间、S7-300/400与S7-200 系列PLC之间的通讯,建议在OB35(循环中断100ms)中调用发送块,在OB1(主循环组织块)调用接收块。
  
  68:整个系统掉电后,为什么CPU在电源恢复后仍保持在停止状态?
   整个系统由一个DP主站S7-300/400以及从站组成。而从站通过一个主开关被切断了电源。由于内部的CPU电压缓冲器,CPU 仍继续运行大约50ms到100ms。此阶段里 CPU 识别出所连接的从站的故障。如果没有编程OB86和OB122的话,CPU 就会因为这些有故障的从站而继续保留在停止状态。
  
  69:在点到点通信中,协议 3964(R)和RK 512 之间的区别是什么?
   这两个协议的主要区别在于消息报头和响应消息的不同。使用RK 512,提供有最高的数据完整性,程序 3964(R) 当传送信息数据时,程序 3964(R)将控制字符(安全层)添加到信息数据上。这些控制字符激活通信伙伴,检查数据是否全部接收,是否无错误。  
  70:当一个DP从站出故障,如何在输入的过程映像被清成“0”以前保存它们?
   当一个DP从站出故障时,OB86(通过S7-300/400)被调用。可用下列方法“保存”输入的过程映像:
   1. 把从站的所有输入循环地复制到一个独立的区里。
   2.如果从站出问题,则 OB86 被启动。在此 OB 里你可设一个标志位来可防止进一步的循环复制操作。
   3. 当从站返回总线后,你把 OB86 里的标志位复位。71:对模拟量模块而言,如何处理未使用的通道?
    如果模块带有MANA : 短接所有的未使用通道的M-到 MANA ,如果可能,连接MANA 到接地极,把模块的测量模式设置为: 0 - 20/ + -20mA. ,短接未使用的COMP+/COMP-. IC+ / IC-可以保持悬空。
    如果模块不带有 MANA : 把所有未使用的通道M-连接到使用通道的M-.等在输入端UCM > 2.5V 时,连接所有未使用的 M-到cpu的接地或系统的接地. 把模块的测量模式设置为: 0 - 20/ + -20mA. ,短接未使用的COMP+/COMP-. IC+ / IC-可以保持悬空。
    对于SM 331-7NF10-0AB0模块在4通道模式:禁止未用的通道,这些输入端悬空即可
    对于Ex模块SM 331-7RD:未使用的通道可以保持悬空72:上位机与plc进行通讯,硬件都需要哪些?
  可以参照下图:
  




  
  73:CP5511/5611 诊断测试后产生错误代码,代码的含义是什么?
  0x0300 Cannot find module:
  Please check whether the CP5511 is installed and slotted properly.
  Check the interrupt and address assignments. Information on further procedures is available also in the STEP 7 Online Help under "Setting the PG/PC Interface", in the paragraph on "Checking the interrupt and address assignments". More information is also available in the STEP 7 Readme file ("Start > SIMATIC > Product notes"), in section 4.4.1 under "Built-in MPI onboard and the MPI PC module -> Setting interrupts and addresses".
  
  0x0312 Incorrect configuration parameters:   Deinstall the CP5511 and reinstall it again. For this you click the "Select" button in the PG/PC interface (Fig. 1). Mark the CP5511 with the cursor in the right WINOOW (Fig. 3). Then click the "Deinstall" button. Now, (after restarting STEP 7) you can mark the CP5511 in the left WINOOW and click the "Install" button. For this activity you need to have administrator rights to your PC (see STEP 7 Readme file, section 3.1).
  
  0x0313 Baud rate does not correspond with network or incorrect interrupt:
  Check the transfer speed (Baud rate) in the PG/PC interface and in the hardware configuration. The Baud rate must not be greater than the Baud rate that is supported by the slowest user. The PROFIBUS addresses configured in the hardware configuration must match the addresses of the system configuration.
  Check the interrupt and address assignments. Information on further procedures is available in the STEP 7 Online Help under "Setting the PG/PC interface", in the paragraph on "Checking the interrupt and address assignments" (Index: Check interrupt assignment). More information is also available in the STEP 7 Readme file ("Start > SIMATIC > Product notes"), in section 4.4.1 under "Built-in MPI onboard and the MPI PC module -> Setting interrupts and addresses".
  
  0x0316 Hardware ressource already busy:
  If this error message occurs after the installation of the CP5511 in "Setting PG-PC interface
  
  0x031a Cannot find any active PB/MPI network:
  Activate the function "PG/PC is the only master on the bus" in the Properties of the PG/PC interface (see Fig. 4). This disables an additional safety function against bus faults. You get to this mask via the "Properties" button - see Fig. 1. The requirement is that the interface parameters used are set to "CP5511(MPI)".
  
  0x0318 Interrupt occupied:
  This message appears in most cases in WINOOWs NT. In the BIOS of your computer change the "PnP" setting to "No". You get to the BIOS of your computer by restarting your PC and hitting the F2 key.
  
  0x031b Synchronization error:
  Please check the bus parameters on the bus. These must match the bus parameters configured in the hardware configuration.  
  Check the installation of the bus cable.
  
  0x031c AMPRO2 system error:
  Activate the function "PG/PC is the only master on the bus" in the Properties of the PG/PC interface (see Fig. 4).
  Please check whether all the terminators for the PROFIBUS network are connected properly.
  It is also possible that the STEP 7 drivers are not installed or have been deleted or that an incorrect driver has been installed. In this case we recommend sending the CITAMIS.str file to Customer Support for checking.

[1] [2]  下一页


本文关键字:西门子  PLC入门plc技术 - PLC入门