vb.求函数LoadConnection的详细解释(各个参数),请见下描述,谢谢。

vb.求函数LoadConnection的详细解释(各个参数),请见下描述,谢谢。,第1张

谢邀。

 

前提声明,没做过 Prodave,以下来自谷歌到的部分说明文档。

 

● LoadConnection_ex6

    The basic LoadConnection_ex6 function initializes the adapter, checks if the

driver is loaded, initializes the addresses that have been assigned parameters and

activates the selected interface

    LoadConnection_ex6 is used to set up a transport connection via MPI/PB- or IP

addresses (TCP/IP protocol)

int LoadConnection_ex6 (int ConNr, char pAccessPoint, int ConTableLen,

CON_TABLE_TYPE  pConTable);

● Parameters

>> ConNr

    Number of the connection (max 64 connections)

>> pAccessPoint

    Access point (zero-terminated) of the driver used, eg "S7ONLINE" for the MPI

driver or 0 (default)

>> ConTableLen

    Length of the table of connections provided by the user in bytes

>> pConTable

    Pointer to address list of connected users; ‘Adr ==0’ is taken as the end mark of

the list

 

 

翻译过来大致是:

LoadConnection_ex6:连接PLC *** 作。

参数:

    连接号(0-63);

    常值"S7ONLINE"或0;

    待连接plc地址属性表长度(字节为单位,常值9);

    待连接plc地址属性表。

s7_api要运行在SimaticNet环境下,可以参见下载中心的《SIMATICNETS7ProgrammingInterface》,支持的硬件配置、软件协议非常丰富,速度也较快。prodave提供动态链接库给WINDOWS的高级语言接口函数,使高级语言能对PLC存储区的数据进行读写,支持硬件配置较少,只支持MPI,PPI协议。 查看原帖>>

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/13494005.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2025-09-01
下一篇2025-09-01

发表评论

登录后才能评论

评论列表(0条)

    保存