最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【整理】Softing的Profibus接口卡

Profibus crifan 3931浏览 0评论

Softing的Profibus接口卡

 

USB接口的Profibus:PROFIusb

网上找到USB接口的:

PROFIusb

其支持的协议和接口为:

PROFIBUS Protocol:

  • DP-V0 Master
  • DP-V1 Master: Acyclic C2 Services
  • FDL

Fieldbus Connection:Active Connection Cable (Approx. 120 cm) with 9-Pin D-Sub Connector

 

其中,参考:

Profibus

知:DP-V0和DP-V1,都是Master,而FDL==Field bus Data Link,是数据链路层的。

 

如何配置PROFIusb

把USB接口的PROFIusb连接到电脑上后,安装好驱动:

PROFIBUS Drivers and API Version 5.45.10

后,打开对应的配置工具

Softing PROFIBUS -> Drivers and API -> Runtime System -> Driver Configuration

softing profibus driver configuration

去配置:

系统正常的话,应该是可以在PROFIusb下面显示出对应的Node0,且是绿色的,表示正常的。

即,下图中,那个Node1,如果是绿色的,才是正常的:

profiusb node1 should green

 

即,应该是这种:

Application Note No. 15 Product: Softing PROFIBUS Interfaces

profibus board1 pb0 service and dpdata

可以看到的信息是:

Device Names:
\\.PROFIBUS\Board1\Board
\\.PROFIBUS\Board1\Pb0\Service
\\.PROFIBUS\Board1\Pb0\DpData

Alias Dev. Names:
\\.PROFIBUS\Node0\Board
\\.PROFIBUS\Node0\Service
\\.PROFIBUS\Node0\DpData

 

另外,对于上述地址,也找到了类似的代码:

http://62.20.65.89/redmine/projects/pwr/repository/revisions/3a2b3c5c7d7bee45d7f3e9aa97b3325a0eae7052/annotate/profibus/lib/rt/src/os_linux/Papi.c#L240

中的:

sprintf(DeviceName, "\\\\.\\PROFIBUS\\Board%u\\Pb%u\\Management",Board,Channel);

 

此处,我手上没有PROFIusb,所以打开时,显示的是空的:

profiusb master profistatck 6.23.1.00 release

然后可以手动去Add:

add node0 for profiusb

use auto mode for profiusb

由于此处没有实际的设备,所以显示信息都是unknown:

node0 for profiusb info all unknown

 

PCI接口的PROFIboard PCI

另外也找到了,PCI接口的,有好几种:

PB-IF-1S: PROFIBUS Interface Card: PROFIboard PCI (1-channel, slave)

PB-IF-1MS:PROFIBUS Interface Card: PROFIboard PCI (1-channel, master/slave)

PB-IF-2MS:PROFIBUS Interface Card: PROFIboard PCI (2-channel, master and master/slave)

 

配置PROFIboard PCI

如上,类似于PROFIusb,去:

Softing PROFIBUS -> Drivers and API -> Runtime System -> Driver Configuration

打开配置,找到,(好像是)

PBpro PCI/PBpro cPCI

pbpro pci pbpro cpci

可以看到,目前也是没有设备的,正常的话,去add出来一个node0/node1,应该就可以了。

add node1 for pbpro pci

根据:

use dp fdl master

PBpro pci use auto for channel

 

如果选的是:

PROFIboard PCI

则是:

profiboard pci add node2 next

根据文档:

NOTE:

PROFIcard / PROFIcard 2 supports only DP / FMS Master operating mode.


CAUTION:

Changing the operating mode causes the hardware driver to download the selected firmware

onto the PROFIBUS board. The existing firmware on the board will be overwritten!!!.

此处则只支持 DP/FMS Master:

only support dp fms master

auto for profiboard pci

结果是:

profiboard pci interface number 2 firmware type dp fms master

 

Profibus接口卡的驱动

后来, 关于驱动方面,也找到一个新闻:

Softing updates PROFIBUS driver software

支持很多种协议:

  • PROFIBUS DP-V0
  • PROFIBUS FMS
  • PROFIBUS DP-V1
  • PROFIBUS FDL
  • PROFIBUS DP-V2
  • MPI
  •  

    支持的平台:

  • Windows

    PROFIBUS Communication DTMs, PROFIBUS OPC servers, and S7/S5 OPC servers run on Softing’s Windows-specific architecture.
  • Windows CE
  • Linux
  • DOS
  • RTX
  • VxWorks
  • QNX
  •  

    总结

    先要去买合适的接口的,比如是USB还是PCI,然后安装驱动,然后去配置。

    配置好之后,才能继续:

    用配置工具,比如Softing Configuration Mangager?,去组态:

    然后才能去

    在配置工具中操作Slave设备

    用代码,调用Profibus 驱动的API去操作Slave设备。

    转载请注明:在路上 » 【整理】Softing的Profibus接口卡

    发表我的评论
    取消评论

    表情

    Hi,您需要填写昵称和邮箱!

    • 昵称 (必填)
    • 邮箱 (必填)
    • 网址
    85 queries in 0.150 seconds, using 21.99MB memory