ImageVerifierCode 换一换
格式:DOC , 页数:3 ,大小:143KB ,
资源ID:1039120      下载积分:50 文钱
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,省得不是一点点
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.wenke99.com/d-1039120.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: QQ登录   微博登录 

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(Toolkit for asynchronous DLLs with RTE interface.doc)为本站会员(心***)主动上传,文客久久仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知文客久久(发送邮件至hr@wenke99.com或直接QQ联系客服),我们立即给予删除!

Toolkit for asynchronous DLLs with RTE interface.doc

1、Description of the interface for asynchronous calls of functions located in DLLsfrom IEC-Program (PLC-program)1. Intruduction1.1. OverviewThe realtimeextension of 3S-company for WindowsNT4.0 consists of a kernel-part and an applicationpart. The kernelpart is a krnelmodedriver, which works as a tasks

2、cheduler and a PLC. With the programmingsystem CoDeSys, tasks can be programmed and configured to work in realtime. Within these tasks, realtime-dedicated functions can be managed. This means, for example, no Windows-API-calls are possible, IOs are updated by direct hardwareaccess and so on.The appl

3、icationpart is implemented as systemservice, means here we can do all the things, which need Windows-API-calls, like networking and others.Now there is a need to start these jobs from the PLC (running in the kernel, in our realtimetasks). So we implemented an interface, which allows us to call funct

4、ions within DLLs.In the IEC-Program (CoDeSys) the call to a library-functionblock leads to a call of a DLL-function in usermode (Windows-API).The work of the DLL-function is done in the context of an own thread for each call. So more than one call can be active at a time and all the calls are contro

5、lled by timeouts and exceptionhandlers.1.2. Which DLLs are loadedUsed DLLs are made visible to the system by registry-entries:InHKEY_LOCAL_MACHINESoftware3S Smart Software SolutionsCodesys SPRTPLCExternal DLLsthere must exist a value for each DLL that should be used. The form is:Valuename: Dllx, whe

6、re x is a number starting from 0.Value: The filename of the DLL, with or without (if located in system32) path.All these Dlls (no matter how many) are loaded to memory with Start system, and unloaded with Stop system.Example for an entry:Dll0 d:WorkspaceAsynchDllAsynchDll.dll2. The interface and the

7、 toolkitAll the functions in a DLL can be called through the library functionblock DllCall aufgerufen werden.The parameters are : bEnable At a rising edge the job is started.szFunktionName The name of the function to be called.ulSizeIn Size of the inputbuffer in bytes.ulSizeOut Size of the outputbuf

8、fer in bytes.pAdrIn address of the inputdata (address of a structure in IEC.)pAdrOut address of outputdata (address of a structure in IEC.)The returnvalue of iStatus is one of:STATUS_NOTENABLED,STATUS_PROCESSING,STATUS_READY,STATUS_ERROR,STATUS_TIMEOUT,STATUS_EXCEPTION,STATUS_USERTERMINATEDThe funct

9、ionblock must be called cyclic, to make changes of enable visible to the PLC and give the PLC the possibility to set the current state.The functionblock is part of the library DllCall.lib.The library DllCall.lib is based on the library SysLibSystemCall.lib, which must be included manually into the p

10、rogram.The functions within the DLL, must fit the following prototype:typedef BOOL (_cdecl *PFCUSTOMDLLFUNCTION)(char* pBufferIn, int iSizeIn, char* pBufferOut, int iSizeOut);The returnvalue maintains the states STATUS_ERROR (returnvalue FALSE) or STATUS_READY of DllCall.The communication between the PLC and the DLL is implemented with sharedmemory-channels and is limited to 100bytes (total) input- and outputdata.The name of the function must not be longer than 80 bytes.

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。