A002.西门子-S7COM
□ 支持西门子 S7-300/400 的 PROFIBUS/MPI 接口协议;
台式机使用 CP5611、CP5613 通讯卡,笔记本使用 CP5512 通讯卡;
监控系统集成 CP5611 卡驱动,CP5613 通讯卡驱动需要单独安装;
![e992d827e887613bf9bf0f04e41ec77a.png](https://i-blog.csdnimg.cn/blog_migrate/ef81ba32ad706e5b159456d774d96019.jpeg)
□ STEP7 编程软件,设置 PROFIBUS/MPI 接口的站号(如 2)和网络属性(如 1.5Mbps、Standard):
![d242d76d25d83db617f2a08b43475c80.png](https://i-blog.csdnimg.cn/blog_migrate/a8e455b81cd681d3d54282e3a11cdead.jpeg)
□ 打开"控制面板",执行其中"Set PC/PG Interface",使"S7ONLINE"对应为"CP5512(PROFIBUS/MPI)";
![aa07e365b17246ad0a4f5b988700f3cb.png](https://i-blog.csdnimg.cn/blog_migrate/f81c0b007f6f531deab86faf5de7b9ac.jpeg)
□ 选择 CP5512(PROFIBUS/MPI),执行[Properties]按钮,设置网卡通讯属性,须与 PLC 一致:
![9f97106ce1881819396f56f3ddbd01e0.png](https://i-blog.csdnimg.cn/blog_migrate/069a6e7ebb2868f2c7f0572642e7bb8e.jpeg)
□ 选择 CP5512(PROFIBUS/MPI),执行[Diagnostics]按钮,诊断通讯连接:
![12bd2e70d963c728d681b1ec83411251.png](https://i-blog.csdnimg.cn/blog_migrate/5f8c52e0b543ca7586b1757118d61360.jpeg)
□ 如果未出现"OK",或不能查询到 PC 和 PLC 站号,检查 PC 和 PLC 的参数是否一致、网线是否接好,直到能查询到 PC 和 PLC 的站号,说明通讯物理接通;
□ 安装驱动:
![a2fd1136cced39896a1b39cfd057a733.png](https://i-blog.csdnimg.cn/blog_migrate/0847f55aa65f53a172933877493b2f9d.jpeg)
□ 驱动参数:
![8acd704b9e103f9bc847795cefc71119.png](https://i-blog.csdnimg.cn/blog_migrate/4a861006be505282a90d0ba36729727d.jpeg)
![e51f378c605b89582ba3bf4e7de06357.png](https://i-blog.csdnimg.cn/blog_migrate/b2268c7e738cf54461d496ecf2e7d1e7.jpeg)
变量处理方式:
![ab72436fee381978da5c9a0248bb58d1.png](https://i-blog.csdnimg.cn/blog_migrate/048f08ab07683a1eaa00dd8aa18851cb.jpeg)
错误代码 - 描述
00CA :no resources available
00CB: configuration error
00CD: illegal call
00CE: module not found
00CF :driver not loaded
00D0 :hardware fault
00D1 :software fault
00D2 :memory fault
00D7: no message
00D8 :storage fault
00DB :internal timeout
00E1: too many channels open
00E2 :internal fault
00E7: hardware fault
00E9 :sin_serv.exe not started
00EA :protected
00F0 :scp db file does not exist
00F1 :no global dos storage available
00F2 :error during transmission
00F2 :error during reception
00F4 :device does not exist
00F5 :incorrect sub system
00F6 :unknown code
00F7 :buffer too small
00F8 :buffer too small
00F9 :incorrect protocol
00FB :reception error
00FC: licence error
0101 :connection not established / parameterised
010A :negative acknowledgement received / timeout error
010C :data does not exist or disabled
012A :system storage no longer available
012E :incorrect parameter
0132 :no memory in DPRAM
0201 :incorrect interface specified
0202 :maximum amount of interfaces exceeded
0203 :PRODAVE already initialised
0204 :wrong parameter list
0205 :PRODAVE not initialised
0206: handle cannot be set
0207 :data segment cannot be disabled
0300 :initialisiation error
0301: initialisiation error
0302 :block too small, DW does not exist
0303 :block limit exceeded, correct amount
0310 :no HW found
0311: HW defective
0312 :incorrect config param
0313: incorrect baud rate / interrupt vector
0314 :HSA parameterised incorrectly
0315: MPI address error
0316 :HW device already allocated
0317 :interrupt not available
0318 :interrupt occupied
0319 :sap not occupied
031A :no remote station found
031B :internal error
031C :system error
031D :error buffer size
0320 :hardware fault
0321 :DLL function error
0330: version conflict
0331 :error com config
0332 :hardware fault
0333: com not configured
0334 :com not available
0335 :serial drv in use
0336 :no connection
0337 :ob rejected
0380 :internal error
0381: hardware fault
0382 :no driver or device found
0384 :no driver or device found
03FF :system fault
0800 :toolbox occupied
4001: connection not known
4002 :connection not established
4003 :connection is being established
4004 :connection broken down
8000 :function already actively occupied
8001 :not allowed in this operating status
8101 :hardware fault
8103 :object access not allowed
8104 :context is not supported
8105: invalid address
8106 :type (data type) not supported
8107 :type (data type) not consistent
810A :object does not exist
8301 :memory slot on CPU not sufficient
8404 :grave error
8500 :incorrect PDU size
8702 :address invalid
D201 :syntax error block name
D202 :syntax error function parameter
D203 :syntax error block type
D204 :no linked block in storage medium
D205 :object already exists
D206 :object already exists
D207 :block exists in EPROM
D209 :block does not exist
D20E :no block available
D210 :block number too big
D241 :protection level of function not sufficient
D406: information not available
EF01 :incorrect ID2
FFFB :TeleService Library not found
FFFE: unknown error FFFE hex
FFFF :timeout error. Check interface