如何连接MELSEC PLC(FX3U)? [英] How to connect MELSEC PLC (FX3U)?
本文介绍了如何连接MELSEC PLC(FX3U)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用MFC或VB从远程端连接PLC?我非常感兴趣的是如何连接,如何阅读和写谁...
我需要什么样的PLC模块? FX3U-ENET-ADP ??
如果可以,请给我示例代码给我,我将非常感谢你。
谢谢
How to connect my PLC from remote side using MFC or VB? I am very interested for part of how to connect , how to read and who to write...
and what's PLC modules I need ?? FX3U-ENET-ADP??
if you can , please give me example code to me,I will very appreciate you.
thanks
推荐答案
从三菱主页下载MX组件。
包含COM .dll以通过COM / USB / EtherNet连接到PLC
它们使用起来非常稳定且更容易写作自己沟通的东西。 (完成)
非常基本的例子:
Download MX Component from the Mitsubishi Homepage.
there are COM .dlls included to connect via COM/USB/EtherNet to the PLC
they are very stable to use and much easier as writing that communicating stuff on your own. (done that)
very basic example:
Dim _FX_COM As New ACTPCCOMLib.ActFXCPU
_FX_COM.ActBaudRate = 115200
_FX_COM.ActControl = 7
_FX_COM.ActCpuType = 520 'FX3U
_FX_COM.ActTimeOut = 100
_FX_COM.open
Dim value as short = 123
_FX_COM.w_write("D100", value)
这篇关于如何连接MELSEC PLC(FX3U)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文