Wincc添加C语言库,wincc调用自定义dll库

这篇博客介绍了如何在Wincc中使用C语言编写的DLL库。通过创建一个名为'T1_C.dll'的样本DLL,展示了如何在Wincc中调用其函数。DLL需在无调试信息的情况下编译,并在WinCC的C脚本中使用#pragma code指令引入。在按钮的鼠标点击事件中,展示了如何执行DLL中的'aufruf1'函数并传递Wincc标签的值。
摘要由CSDN通过智能技术生成

You want to use the functions of a user-created library in

WinCC. In this entry we show how a sample DLL is incorporated in

WinCC. At the moment, DLLs created in Visual Basic cannot be

incorporated in WinCC at Runtime with VBS

.More information on the use of DLLs is available in the WinCC

Information System under: "Working with WinCC >

ANSI-C for creating functions and actions > Using

DLLs in functions and actions".

No.

Procedure

1

Sample DLL:Use a C

compiler to create the library "T1_C.dll" from the following

program code.

You can download the ready-compiled DLL here.

a4c26d1e5885305701be709a3d33442f.png

T1_C.zip ( 17 KB )

extern "C" __declspec (dllexport) int a

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值