关于Profibus-DP检测的问题 点击:1861 | 回复:6



蓝色月光

    
  • 精华:0帖
  • 求助:0帖
  • 帖子:11帖 | 133回
  • 年度积分:0
  • 历史总积分:611
  • 注册:2004年3月22日
发表于:2006-07-04 10:34:00
楼主
各位大侠,现小弟遇到一个问题:siemens的S7-300系统由5个伺服DP站加一个IM153-1通讯站组成,目前想要使机组具有实时检测所有对应DP站运行信息的功能。请问哪位做过类似的系统,给我指点一二。CPU为CPU315-2DP。



ANSALDO

  • 精华:0帖
  • 求助:0帖
  • 帖子:30帖 | 224回
  • 年度积分:0
  • 历史总积分:730
  • 注册:2005年5月25日
发表于:2006-07-04 13:45:00
1楼
你所指的运行信息是什么意思~?

蓝色月光

  • 精华:0帖
  • 求助:0帖
  • 帖子:11帖 | 133回
  • 年度积分:0
  • 历史总积分:611
  • 注册:2004年3月22日
发表于:2006-07-05 13:03:00
2楼
至少是要求提供是否有故障和故障类型的信息。

如云

  • 精华:0帖
  • 求助:0帖
  • 帖子:4帖 | 194回
  • 年度积分:0
  • 历史总积分:296
  • 注册:2006年4月13日
发表于:2006-07-05 21:08:00
3楼
我明白你的意思,可我没做过。实时检测模块的I/O点可以吗?
关注此帖

蓝色月光

  • 精华:0帖
  • 求助:0帖
  • 帖子:11帖 | 133回
  • 年度积分:0
  • 历史总积分:611
  • 注册:2004年3月22日
发表于:2006-07-06 14:05:00
4楼
我的问题实质上是装配人员不用心——DP线老是接触不良,有时伺服DP模块的损坏,再加上用户不会根据简略信息查错。我原来使用报警OB块,提供给用户表示“系统出错”的信息,但他们不能全明白什么叫“机架故障”。所以希望可以通过HMI显示出来一些更详细的故障列表。但西门子公司的系统似乎一定要加外部硬件才可以检测,问题是我希望不加载硬件的。

ANSALDO

  • 精华:0帖
  • 求助:0帖
  • 帖子:30帖 | 224回
  • 年度积分:0
  • 历史总积分:730
  • 注册:2005年5月25日
发表于:2006-07-06 15:16:00
5楼
我理解你的意思了~OB86里的那些内部变量是不是可以~


The operating system of the CPU calls OB86 whenever the failure of an expansion rack (not with CPU 318), a DP master system, or a station is detected in the distributed I/Os (both when entering and outgoing event).

If OB86 has not been programmed, the CPU changes to the STOP mode when this type of error is detected.

You can disable or delay and re-enable OB86 using SFCs 39 to 42.

Local Data for the Rack Failure OB

The following table describes the temporary (TEMP) variables for the rack failure OB. The variable names are the default names of OB86.


Variable Type Description
OB86_EV_CLASS BYTE Event class and identifiers:B#16#38: outgoing eventB#16#39: incoming event
OB86_FLT_ID BYTE Error code:(possible values B#16#C1, B#16#C2, B#16#C3, B#16#C4, B#16#C5, B#16#C6, B#16#C7, B#16#C8)
OB86_PRIORITY BYTE Priority class; can be assigned via STEP 7 (hardware configuration) 
OB86_OB_NUMBR BYTE OB number (86)
OB86_RESERVED_1 BYTE Reserved
OB86_RESERVED_2 BYTE Reserved
OB86_MDL_ADDR WORD Depends on the error code
OB86_RACKS_FLTD Array [0 ..31]of BOOL Depends on the error code
OB86_DATE_TIME DATE_AND_TIME DATE_AND_TIME of day when the OB was called
If you want to program OB86 dependent on the possible error codes, we recommend that you organize the local variables as follows:

Variable Type
OB86_EV_CLASS BYTE
OB86_FLT_ID BYTE
OB86_PRIORITY BYTE
OB86_OB_NUMBR BYTE
OB86_RESERVED_1 BYTE
OB86_RESERVED_2 BYTE
OB86_MDL_ADDR WORD
OB86_Z23 DWORD
OB86_DATE_TIME DATE_AND_TIME
The variables whose contents are dependent on the error code have the following meaning:


Error code Meaning
B#16#39C1: OB86_MDL_ADDR: OB86_Z23: Expansion rack failureLogical base address of the IMContains one bit for each possible expansion rack:Bit 0: always 0Bit 1: 1st expansion rack:Bit 21: 21st expansion rackBit 22 to 29: always 0Bit 30: Failure of at least one expansion rack in the 
SIMATIC S5 areaBit 31: always 0
B#16#38C1: Expansion rack operational again
Meaning: when the event occurs, the expansion racks that caused OB86 to be called are reported as having failed (the bits assigned to them are set). Expansion racks that had already failed earlier are no longer indicated. When the failure is eliminated, the expansion racks that are active again are reported in the error code (the bits assigned to them are set).


Error code Meaning
B#16#C2:
OB86_MDL_ADDR: OB86_Z23: Expansion rack returned with discrepancy between expected and actual configuration.Logical base address of the IMContains one bit for every possible expansion rack, see error code B#16#C1. Meaning of a bit when set (for the expansion rack concerned):- Modules with an incorrect type ID exist- Configured modules missing- At least one module is defective.
B#16#C3:


OB86_MDL_ADDR: OB86_Z23: Distributed I/Os: Failure of the master system. (Only incoming event causes the start of OB86 with error code B#16#C3. Leaving the state starts OB86 with the error code B#16#C4 and event class B#16#38. 
The return of every DP slave station starts OB86.)Logical base address of the DP master.DP master system IDBit 0 to 7: reservedBit 8 to 15: DP master system IDBit 16 to 31: reserved
B#16#C4:B#16#C5:
OB86_MDL_ADDR: OB86_Z23: Failure of a DP station.DP station disturbed
Logical base address of the DP master.Address of DP slave affected: Bits 0 to 7: number of DP stationBits 8 to 15: DP master system IDBits 16 to 30: logical base address of an S7 slave or diagnostic address of a  standard DP slaveBit 31: I/O identifier
B#16#C6: OB86_MDL_ADDR: OB86_Z23: Expansion rack operational again but error in module parameter assignmentLogical base address of IMContains a bit for every possible expansion rack:Bit 0: always 0Bit 1: 1st expansion rack:Bit 21: 21st expansion rackBit 22 to 30: reservedBit 31: always 0Meaning when bit set (in expansion rack concerned):Modules with incorrect type identifiers existModules with missing or incorrect parameters exist
B#16#C7: OB86_MDL_ADDR: OB86_Z23: Return of a DP station, but error in module parameter assignmentLogical base address of the DP masterAddress of the DP slave affected:Bits 0 to 7: No. of the DP stationBits 8 to 15: DP master system IDBits 16 to 30: Logical base address of the DP slaveBit 31: I/O identifier
B#16#C8:
OB86_MDL_ADDR: OB86_Z23: Return of a DP station, however discrepancy in configured and actual configurationLogical base address of the DP masterAddress of the DP slave affected:Bits 0 to 7: No. of the DP stationBits 8 to 15: DP master system IDBits 16 to 30: Logical base address of the DP slaveBit 31: I/O identifier

蓝色月光

  • 精华:0帖
  • 求助:0帖
  • 帖子:11帖 | 133回
  • 年度积分:0
  • 历史总积分:611
  • 注册:2004年3月22日
发表于:2006-07-10 09:39:00
6楼
谢谢!

热门招聘
相关主题

官方公众号

智造工程师