完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我是否知道如果有人知道如何使用VEE中的.NET通过RS-232对Omron的E5EK温度控制器进行编程?我正在使用System.IO.Ports命名空间中的SerialPort类。
虽然我设法成功打开了COM端口,但我不确定如何写入和读取E5EK。 我已附上E5EK手册以供参考。 请帮助:)谢谢! 以上来自于谷歌翻译 以下为原文 Hi, May I know if anyone knows how to use the .NET in VEE to program the Omron's E5EK Temperature Controller via RS-232? I'm using the SerialPort class in the System.IO.Ports namespace. I'm not sure how to write to and read from the E5EK, although I managed to open the COM ports successfully. I've attached the E5EK manual for reference. Please help :) Thanks! 附件 |
|
相关推荐
5个回答
|
|
本手册中有一个示例程序,介绍了一些测试用例(第6-16页)。
如果您打开了COM端口,请在该端口中写入您在示例中看到的字符串。 这应该设置,从单元读取状态等。你可以使用许多其他命令,但是一旦你尝试了这个例子,你应该能够找出其他的.Regards,Uday 以上来自于谷歌翻译 以下为原文 There is an example program in the manual that explains a few test cases (page 6-16). If you have a COM port open, write to that port the strings that you see in the example. That should set, read status etc. from the unit. There are many other commands that you could use, but once you try the example, you should be able to figure out the others. Regards, Uday |
|
|
|
感谢您的回复Uday。实际上,我确实完成了编程第6章并使用附加的VEE代码进行了尝试。
这个VEE代码是我成功用于其他设备的东西。 但是当我尝试使用serialport.readexisting()或serialport.readline()读取响应时,我不确定它为什么没有响应。 我要么以错误的方式发送命令,这就是为什么没有响应,或者我尝试读取响应的方式不正确。 你有什么主意吗? 以上来自于谷歌翻译 以下为原文 Thanks for your reply Uday. Actually I did go through the programming Chapter 6 and tried it using the attached VEE code. This VEE code was something that I had successfully used with another device. But I'm not sure why it is not responding when I tried reading the response using serialport.readexisting() or serialport.readline(). It's either I have sent the command in the wrong manner which is why there is no response, or perhaps the way I try to read the response is incorrect. Do you have any idea? 附件 |
|
|
|
对不起,我通常不读这个论坛;
我使用VRF邮件列表。 我浏览了你发送的程序。 手册说你必须包括一个CR。 我没有看到通过串口发送(除非有我错过的设置)。 你能检查一下你是否用命令包括CR吗? 问候,Uday 以上来自于谷歌翻译 以下为原文 Sorry, I don't usually read this forum; I use VRF mailing list. I looked through the program you sent. The manual says that you must include a CR. I don't see that sent through the serial port (unless there is a setting that I missed). Can you check if you are including a CR with the command? Regards, Uday |
|
|
|
您也没有在命令末尾使用“*”字符。 尝试包含该角色并在此之后发送CR。 我认为这应该有效。 问候,Uday 以上来自于谷歌翻译 以下为原文 You also did not use the "*" character at the end of the command. Try including that character and send a CR after that. I think that should work. Regards, Uday |
|
|
|
感谢Uday的反馈。 我实际上让它恢复了一段时间。 很抱歉没有更新,但你是对的! 有一些缺失的东西。 除了你提到的东西之外,还需要放入帧检查序列。 我已经为可能对此感兴趣的任何人附加了VEE文件。 以上来自于谷歌翻译 以下为原文 Thanks Uday for the feedback. I actually got it working some time back. Sorry for not updating earlier, but you are right! There are some missing stuff. Besides the things that you mentioned, it's also a requirement to put in the frame check sequence. I have attached the VEE file for anyone who may be interested in this. 附件 |
|
|
|
只有小组成员才能发言,加入小组>>
2099 浏览 1 评论
1855 浏览 1 评论
1714 浏览 5 评论
2582 浏览 3 评论
将设备连接到PC并通过asic格式读取数据然后我的网络分析仪挂起
1561 浏览 4 评论
504浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
363浏览 0评论
1412浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
272浏览 0评论
2259浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-26 12:39 , Processed in 1.055811 second(s), Total 77, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号