Click here to Skip to main content
15,884,013 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Comments
Richard MacCutchan 22-Oct-15 4:07am    
What is PLC? How is it connected? What interface does it use? Is there a reference documet?

1 solution

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:
VB
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)
 
Share this answer
 
Comments
Member 12077657 22-Oct-15 21:12pm    
Hi F.Xaver

It seems not use TCP/IP to connect PLC.
Do you have other method?

thanks
F. Xaver 23-Oct-15 3:02am    
then use ACTETHERLib.ActFXENETTCP

and _FX_Ethernet.ActHostAddress

RTFM ;)
Member 12077657 23-Oct-15 3:10am    
have you done similar project ?
if you can, please send some code to me.
I will appreciate you very much.
F. Xaver 27-Oct-15 4:26am    
I'm working on a class that does all the sends and reads I need. but it still got some problems with it
won't give out that code.

If you have Problems I will try to answer them ;)
Member 12077657 27-Oct-15 4:46am    
I am evaluating the project that i can complete and then buy all of devices.
My project as like yours that it need sends and reads.
Can I have your e-mail or skype? If I can , please send to my e-mail (w28220674@yahoo.com.tw).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900