2007-06-26
评论14
楼主 2006/4/27 8:33:20
如果模块带有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:未使用的通道可以保持悬空
楼主 2006/4/27 8:34:22
可以参照下图:

楼主 2006/4/27 8:35:01
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 window (Fig. 3). Then click the "Deinstall" button. Now, (after restarting STEP 7) you can mark the CP5511 in the left window 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 Windows 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.
Another possible cause might be that the hardware is defective.
0x0320 Cannot find DLL/VXD as file:
On your PC please find the file specified in the Windows Explorer via "Tools > Find > Files/Folders". Either the file is not on your computer or it is found twice. Please rename the file in the Windows system directory and then restart Windows.
In the Registry, the references to the files are missing. Access to the required parameters from the Registry is not possible. Perhaps you don't have the required access rights or the system database is damaged.
The drivers are not compatible with the operating systems.
楼主 2006/4/27 8:35:42
如果安装了相应的软件后包含“Set PG/PC Interface …”组件,那么这些软件都含有CP5511,CP5512,CP5611,RS232 PC-Adapter 的驱动,只需在“Set PG/PC Interface …”->“Select…”->选择相应的驱动,然后“Install-->”即可。
具体的软件有Step7,Step7 MicroWin,Simatic Net,WinCC,Protool,Flexible,PCS7。
楼主 2006/4/27 8:36:08
74:当试图通过TeleService建立PRODAVE MPI和样列程序之间的通讯时,为什么会出现出错消息4501?
调制解调器没有响应,并产生了出错消息4501。在这个情况下,工作站的规范不正确。 在TeleService对话框中检查工作站的名称和工作站(standort)规范。此处可能有个不正确的缺省设删除“station”(“standort”)域中的缺省名,或输入正确的工作站名。那么就可以使用调制解调器在PRODAVE MPIY和TeleService之间建立连接。
楼主 2006/4/27 8:36:30
75:是否可以将数据块的当前值作为初始值从AS传送到项目中?
可以。从AS中“ONLINE,打开相关数据块(DB).使用软盘图标“OFFLINE”保存DB.
通过“File > Generate Source”在DB中产生STL源代码. 通过手动操作将BEGIN和END_DATA_BLOCK行之间的当前值与相应的声明(初始值)逐行 连接起来,从而得到下列声明语句:
STRUCT
wordVar : WORD := W#16#ABCD;
...
END_STRUCT ;
编译STL源代码。
楼主 2006/4/27 8:56:02
在启动型OB(如用于S7-300的OB100和用于S7-400的OB100和OB101)和循环模式OB(OB1)中,必须调用数据通讯或程序管理(把PLC切换到STOP或RUN)所需的所有SFB。 OB100是启动型OB,并在重新启动CPU时运行。例如,在该OB中,用标记M1.0和M0.1来释放第一个通讯触发器。
楼主 2006/4/27 8:56:31
一个位、字节或者字符域的尺寸是按照字节限制排列的——在所有其它情况下是按照字对齐的。表T6-1中给出了一个域的存储示例。操作系统计算域中单个元素末端位置的位地址。域被分配到从下一个字地址(或字节地址)。下一个数据类型从下一个整字开始(或者整字节).
声明部分:
在声明部分,必须定义一个与将被间接寻址的ARRAY有着同一结构的ARRAY。不一定非要将ARRAY声明为IN-OUT变量;也可以声明为TEMP、IN或OUT变量。
网络:
域宽度(OFFSET)在网络中定义。ARRAY中的单个元素的最小常规数据宽度是一个字节;即使在两个变量之间定义一个BOOL。有必要确定相关的域的宽度和确定下一个期望域的起始地址。可使用下面的算法: 地址(指数):b = 元素长度*(指数 - 1)
创建具有不同数据类型的结构时,必须注意,在特定的环境下可能会自动插入填充字节。
保存ARRAY数据类型
示例:ARRAY [1..2,1..3] OF 整数 将生成下列域:
多维域是按照顺序保存的。在本例中整数 [1,1]后面是整数 [1,2],整数 [1,3]后面是整数 [2,1]。
楼主 2006/4/27 8:56:55
STEP 7以 6 个字节保存POINTER参数。表4-1显示了用于保存POINTER参数类型的内存区域以及每个字节中保存的数据。POINTER参数类型保存了下列信息: DB号(如果DB中没有保存任何数据时为0)。 CPU中的内存区域(表格中列出了不同内存区域的十六进制代码)。
数据的地址(按照Byte.Bit格式)。
如果将形式参数声明为POINTER参数类型,则只需要指定内存区域和地址。STEP 7自动将输入项目的格式转换为指针格式。
楼主 2006/4/27 8:57:30
激活(首次调用)报警块Alarm(SFB33)、A larm_8(SFB34)和Alarm_8P(SFB35)比简单地执行作业检查需要多花费 2 到 3 倍的运行时间。当传送告警时,块的运行时间也会同样长。 然而警报通常不会成群发生,当编程时,需要注意警报块的首次调用,因为此处用到的所有块需要很长的运行时间,因此被调用OB的运行时间在某些情况下将显著增加。将警报块的首次调用移动到OB 100/101/102,可以将较长的运行时间转换到启动过程。此处处理时间也会较长,但是由于与模块的参数设置同时进行,启动时间不会太长。