Is not very common, but sometimes is needed to communicate our PLC´s directly to PC.
The typical applications use to be testing machines, who needs accurate response time, or complex machines who use the PLC to easy control over simple parts of the machine.
And some times (why not) because our PLC’s are cheaper than a digital/analog I/O PCI Cards!
Because of that we create some libraries and examples in the most updated PC programming software to help you on this.
On the following compilation, you will find Examples in Visual Basic, VBNet, and CSharp.
PC-PLC communication Library
Delta DLL library
Delta Comunication Protocol definition
Feel free to download and use them for your applications.
February 2, 2021 at 11:31 am
I am trying to communicate with delta PLC using c# but while executing the program just com1 light is blinking ……..but the Out light isnt blinking…………can i get any solutions regarding this without using modbus??
PLC- Delta DVP 32ES2
January 10, 2021 at 9:58 am
Hello Dear, How can we check this program on the PC with the virtual COM?
January 10, 2021 at 9:07 am
Hi
It seems that the file download links don’t work.
Could you modify them?
January 10, 2021 at 5:34 am
Hello
Is it possible to send/receive data by serial communication in a C# program without Modbus protocol?
I mean just using rs232 standard instead of Modbus data standard to send and receive.
PLC model: DVP12SE11R
September 18, 2020 at 12:30 pm
suggest the software to do it please!
August 11, 2020 at 10:36 am
Hello, Im using DVP PLC communicating with ethernet cable. Whenever i try to communicate with PLC getting error “No Socket Error”. Did anyone got this error. How to rectify this error? Hope i will get help from you. Thanks
November 11, 2019 at 12:27 pm
Guys, I am basically an IT person, bit involved in Software Development, and bit involved in Network Administration. Basically I work for a company involved in providing consultancy in field of Vibration Analysis, Condition Monitoring, and predictive maintenance. I am currently facing a problem which can be described as below:
I have a Vibration monitoring software+Hardware combination. This combination can visually be shown as following:
Sensors Conversion Device Application software installed on PC
Brief Description:
Sensors: are connected to H/W (motors, turbines, etc) to collect different type of data like sound, temperature, RPM etc
Conversion Device: It is an electronic device which receives raw data from sensors and convert this raw data into a format which can be read and understood by the Application software.
Application Software: is the one used for analysing this data generated by Conversion device. This software, based on the analysis, raise alarm, generates multiple different type of reports etc.
I now have a client which needs the post-analysis data generated by the application software to be exported to a PLC/Scada device using either “Modbus RTU” or “OPC” protocol. My problem is that I have never done this before. I, therefore, have a few queries:
1. What is the step-by-step procedure to follow?
2. Is it possible at all?
3. Do we have any programming language available to program a PLC/Scada device in such a way that it accepts data generated by a software via Modbus RTU or OPC? If yes, then I would greatly appreciate it if I can be given the same.
4. Are their any free PLC/Scada simulator software available to test communication between software and PLC /Scada? If yes, then kindly let me know.
Please do let me know in case if I am missing something, or if am going in a completely wrong direction.
March 23, 2020 at 2:59 pm
Dear Subodh I will give you Delta PLC how to communicate with Delta PLC Pls send your emain address
RegardsAshutosh
August 19, 2019 at 12:35 pm
How to communicate DELTA PLC with ASDA B series servo Drive using RS 485 ?
Also is it possible to communicate servo drive with a laptop using RS 485 TO USB Converter?
August 3, 2019 at 7:38 pm
Mi PLC tiene un error que flachean los LED de run y error y no me deja comunicarme a mi PC y no puedo descargar el programa
August 3, 2019 at 7:35 pm
Hola disculpe alquién me puede ayudar tengo un PLC dvp28 delta y no puedo comunicarme por un error que tiene el plc
July 26, 2019 at 3:57 pm
I am using a ES2 PLC. It has a ISPsoft program, I am trying to upload the program with WPLsoft software.
I can not connect with the PLC with my PC. I get a message “reset PLC Memory” but when I try to reset I gat a message telling me that I am not connected. I have tried the ethernet connection cable, and the RS232 with the USB connector UC-PROG020-12A, I have the COMMGR software running. I can not find anything on utube that is in English to get help. Any suggestions. I am a new user.
September 5, 2019 at 10:39 am
Hi! I’m having a problem like you don’t know if you’ve done it yet. Can you share me to be wide. Thanks very much
December 18, 2018 at 4:19 pm
Hi all
I am new to Delta PLC ,currently I want to gather data from DVP 20sx211R in plc for sql server.I am totally blank how to do it.Kindly help me in this matter .
August 25, 2018 at 2:03 pm
how to closeSocket
we got this error PInvoke restriction: cannot return variants
June 21, 2018 at 11:34 am
how can i read and write multiple data register and coil
June 22, 2018 at 7:22 am
Refer Delta Plc communication Protocol documents.
January 29, 2018 at 10:29 am
Hi Delta,
Thanks for the Library. It’s good. I’ve been using it for a long time now. Recently I had a difficulty where customer is using double word on D500 variable and I’m unable to read it. Would be kind enough to guide me. I’m using ASCII Rs-232 interface and I’m using “DMT Wrapped Function Code” to get the data.
The data in variable is 1lakh and when i try to read it gives me 10. I’ve tried reading it via ReadHoldRegs32W but it gives me Error.
Please help me…
January 11, 2018 at 5:30 pm
kindly I was hope you to assist me with below questions :
1- how to connect my PLC unit to web service or to send & Receive data by PLC ?
2- how to physically connect my PLC unit to the internet (hardware) ?
3- There is any library that can be show/provide connection between PLC to web service
… if there is a any link or video or library that can help me in this topic please send it to me …. with best regards
August 22, 2018 at 12:50 pm
revert me back with code OpenModbusTCPSocket(port, ipaddr)
After 32 oeration working stop but
CloseSocket(port)
not working
September 19, 2017 at 9:28 am
Thank you! Where was this the first time I started using Delta DV12SE !?! :) At least it’s here now :) Thank you!
May 19, 2017 at 10:10 am
My PLC has IP address 190.150.100.1 & Port is 502. I want to communicate(Modbus TCP) PLC with two applications at the same time from one ethernet PC port? Is it possible? Because when I start communication either one application doesn’t work or sometimes it reads the message of others application.
May 5, 2017 at 2:28 am
hi Delta
you help me error COM1 communication plc DVP 32es2. It no auto detect plc
March 23, 2017 at 12:39 pm
dear sir ….
kindly I was hope you to assist me with these 3 questions :
1- how to connect my PLC unit to my android app or to make an interface between them ?
2- how to send and receive data by PLC to web service ?
3- how to physically connect my PLC unit to the internet (hardware) ?
… if there is a any link or video or library that can help me in this topic please send it to me …. with best regards
February 14, 2017 at 10:54 am
Please send me how to send data from PLC to Advantech SCADA. Please explain me with example
February 14, 2017 at 5:59 am
Please give me some ideas how to remove PLC error without communication to PLC I have DVP sv2 PLC error is there but PLC not communication
January 10, 2017 at 12:09 pm
Hi
Can you send me DMT version for WIN7 64bit?
I have problem with run DMT on VBNet2015.
Thanks in advance
January 29, 2018 at 10:35 am
Hi,
There is no separate version the same DMT2.2 works for me on both x86 and x64 applications
November 13, 2016 at 7:21 am
How to communicate with Delta DVP SV2 plc using VB.Net. Please give examples to read write registers using vb.net
November 11, 2016 at 6:03 pm
I want to read data from DVP28SV PLC with vb.net. i can read the data but can not convert properly from Hex to Decimal. Values on HMI & with my code are different. I used code to convert hex to decimal is system.convert.ToInt32(HexData, 16) , how can I read negative values??
May 9, 2016 at 2:20 pm
HI,
I am using VB6 program to communicate Delta PLC on TCP IP. Application runs for 10-15 mins and suddenly getting issue EXE stop working. Code written is correct, System used is Win 7 64 bit. Is DMT.dll is compatible with 64 bit system/There is any other version for the same.
June 24, 2016 at 5:34 am
hi Naresh,
which DMT.dll file you are using, the one available in delta site ah. i also tried same issue. if possible send ur coding to info@iwell.co.in with the driver
February 27, 2016 at 10:59 am
Can anybody give vb.net code example to communicate with plc using tcp/ip?
April 24, 2015 at 9:15 pm
hi
i am a bigginer in VB
i have VB6 and vbnet 2012
can any one give lessons and exampels to reading data from Delta PLC
using the DMT library
please if any one can help me start
with thanks
November 12, 2014 at 7:59 am
HI DELTA
I HAVE A GOOD EXPERIENCE OF PC/PLC COMMUNICATION WITH VB THROUGH RS232/485.
NOW I WANT TO READ PLC REGISTER VALUES THROUGH ETHERNET, DVPEN01 MODULE USING VB.PLEASE HELP.
THANK YOU.
January 16, 2016 at 12:46 pm
hi mkashifk
Can you help me with source code for pc-plc communication to read/write register vales using rs-232 serial communication..
May 28, 2016 at 12:25 pm
please send me your email address.
you can also download source code of VB from delta website.
mkk
July 13, 2016 at 2:09 pm
Please Send VB code with exp. PC – PLC Communication
January 27, 2017 at 10:50 am
sorry, i was away. do you still need the code? please replay on mkashifk@mail.com
October 6, 2016 at 7:11 am
Hi Mkashifk
i am sending my mail id for rs-232 serial communication code. Kindly send vb code to my mail gopi8688@gmail.com
January 27, 2017 at 10:48 am
sorry dear , i was away. do you still need code. please replay at mkashifk@mail.com
February 1, 2018 at 9:04 pm
please,could you send me VB source code to read data registers from Delta PLC (12SE), I’appeciate it! jchiesa@distritec.com.ar
January 27, 2017 at 10:50 am
sorry, i was away. do you still need the code? please replay on mkashifk@mail.com
September 4, 2014 at 8:37 am
I planning to use Delta PLC dvpsx311r and dvp02lc-sl for my project, will this DMT modbus able to process real time data display in VB.NET (VB Express 2010)??
August 28, 2014 at 8:22 am
I am using ispsoft ladder programming software and dvp14ss211r.
I am reading register d1000 from pc (modscan) to plc.
i am using ascii mode of modbus
So how to do that ?
In modscan it is need to enter register address and i have m1000 and e1000 also.
so to read d1000 what address should i need to enter in modscan.
April 24, 2014 at 2:48 pm
hi,
is there a DMT.dll for 64-bit application ?
January 2, 2014 at 4:32 pm
Getting “Failed” error trying to download the “PC-to-PLC Communication Library”. Have tried 4-5 times!
January 7, 2014 at 12:20 am
Try with different browser than IE.
Is windows trouble, tested!
November 16, 2013 at 6:33 am
i am in need of the code for PC to PLC direct communication by using RS232 SERIAL INTERFACE.
November 21, 2013 at 5:26 pm
you will find code at the top of this page. or search on net, code project.
Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived
dim newReceivedData as string = “”
If SerialPort1.IsOpen = False Then SerialPort1.Open()
newReceivedData = MAINPRFSP.ReadLine
Me.Invoke(New MethodInvoker(AddressOf Display)) ………. send data to process & display
End Sub
Private Sub Display()
………. code to process data
……….. code to display data
WriteToPort(query) . . .. . . send next query to plc here or with timre or as per your application need
End Sub
Private Sub WriteToPort(ByVal txttosend As String)
If SerialPort1.IsOpen = False Then SerialPort1.Open()
txttosend = startcharacter & StingToSend & checksum & endcharacter
SerialPort1.WriteLine(txttosend)
End Sub
January 23, 2014 at 7:25 pm
hai dipti… did you got any information on direct serial rs 232 communication of delta plc … if you got any pls mail to messagesomu@gmail.com
October 22, 2013 at 7:10 am
I am new to PLC. I want to connect DVP12SA11R plc with vb.net. Can you please send me code to connect plc to PC?
August 5, 2013 at 8:14 am
In the modbus example I am unable to write 32bit register. I know that the program is just an example for further development, but I am stuck with this problem in spite of all my effort. I get the response 008607. Unable to fix the “07” exception. Appreciate any tip or help.
Thanks
July 1, 2013 at 9:04 pm
I have another problem with the DMT´s library. I´m running a VB6´s program in a Windows 7 enviroment and a few minutes later it crash. In the program I only read a Y0 output from a DVP12SA2 with a DVPEN01.
Very easy stuff but it doesn´t work.
Any thought ??
June 21, 2013 at 8:23 pm
I need it
June 13, 2013 at 5:05 pm
Hi, I´m using the DMT´s library and it works great. But I have a problem when I want to read a Data Access register.
I tried to read a D0 but the response give me the error code 008102.
The request data code is 00 01 1000 0001
So if anybody can help me i will be very grateful !!
Bye
June 15, 2013 at 2:56 am
Your response data is 008102 i.e. there is an error in your request code. check device id & / OR OTHER parameters of protocols in
00 01 1000 0001 . 8 in response data indicates request data is not correct.
Try 00 03 1000 0001 . 03 is to read D.
July 1, 2013 at 8:54 pm
Thank you!!! That was the problem!!
May 11, 2013 at 12:30 pm
I have a doubt that whether we can communicate with PLC from PC using MODBUS protocol if we connect PC and PLC using RS 485?
Or is there any other way we have to use to communicate when using RS 485? Kindly point me in right direction or refer any document
March 11, 2013 at 7:28 am
Hi
i am need of the code for PC to PLC direct communication by using RS232 SERIAL INTERFACE.
March 9, 2013 at 3:46 am
How to test vb programming with delta Plc software but with out Plc ( simulation)
December 13, 2012 at 9:21 am
Dear Delta,
I am trying to PC -PLC communication.
I am using DVPEN01, DVP-12SA2 & DOP-B07E415.
I am able to read data from PLC & HMI in vb.net. But, When trying to write FC16 to PLC, getting an error in response is function code-144 & error code-7 NAK.
When i am write FC16 to HMI, there is no problem.
Please request to suggest solution.
Regards,
T Shri
December 13, 2012 at 8:12 am
Dear Delta,
I am using DVPEN01 & DVP-12SA2 with DOP-B07E415. I am able to read data from HMI & PLC in VB.net. But, when i am sending write command FC 16 to PLC, getting an error in response which is Error Code-07 Communication error (NAK negative-acknowledge).
When I am sending write command to HMI, there is no problem.
Please request to suggest the solution.
Regards,
T Shri
November 27, 2012 at 8:39 am
Adding further to my above post :-
There is no problem in Modbus.dll or PLC port or Communication cable or anythings else that causes communication problem.
What I am trying to correct is that in case of any problem in communication, VB.net application that uses Modbus.dll HANGS , BECOMES UNRESPONSIVE , ERROR CATCHING , THREADS , TRY CATCH , etc everything STOPS.
So , if we make a thread for communication that can gracefully exist throwing an error things will be OK. And this has to be done in the Modbus.dll. Obviously this can be done only by developer of Modbus.dll .
Otherwise as Mr Ashutosh has pointed out , make your own dll .
In that case what is the use of Modbus.dll ?
I hope I made myself clear .
Regards,
Shriram Pendse
November 30, 2012 at 3:17 pm
Hi Shriram,
Delta dll are just examples, to help you to develop your own application.
The example work in basic simple mode, but don´t ask for time out or any other feature, due it´s just a sample.
I do not recommend to us them like they are for real applications.
For real applications it needs debug and deep test in any specific demand of the application, an because the sample is general, don’t have this.
December 1, 2012 at 6:01 am
OK , Fine .
I am already using another one in my VB.net PC based monitoring systems.
Those can read 48 registers in one go , have debug info and proven in industrial use.
Well, Thanks .
July 24, 2013 at 5:31 pm
Shriram,
Which one are you using?
Thank you
November 26, 2012 at 10:20 am
Hi,
In real world situation there are many reasons why PLC PC communication fails. In this case VB application should gracefully exit the thread doing communication and GUI thread should continue running.
I am trying to solve the problem in Delta Modbus.dll but no joy. Delta technical support has replied to me that……
“”” What do you mean “if PLC does not communicate ” , if PLC does not communicate , application hangs is reasonable … “”””
Well is it OK ? . Then what is the point in posting communication program on site that does not work, let it be removed from Delta site.
Once again I request concerned person to provide timeout or exception in read functions so that what is posted can be utilized for fruitful purpose.
Regards,
Shriram Pendse
November 9, 2012 at 5:59 am
Hi,
At this point execution stops and application becomes unresponsive hence evaluating timer is out of question.
ret = ReadHoldRegsW(comm_type, conn_num, slave_addr, addr, dev_qty, data_from_dev, req, res)
November 18, 2012 at 4:20 pm
Actually i am not using Modbus.dll ; better u can make your own dll or a program that communicates with PLC, There is one more thing how u will process the received data or pass the data to process & display? are u using USB to RS232 converter? .net framework version? how you open & close the port? These are some points that may hangs your pc.
November 7, 2012 at 7:31 am
The latest Modbus.dll library and VB.net application connect well and read / write is all OK. But there is serious flaw in the dll that no time out or exception handling is provided. Application simply hangs if PLC does not respond due to any reason. Delta Tech support must check this and provide time out for functions in dll.
November 7, 2012 at 8:23 am
I´ll resend your comentaries to the proper people, thanks for the feedback
November 8, 2012 at 2:51 am
When you send a query to plc & waits for reply start timer ; if you didn’t get reply means no communication (message can pop up) accordingly further action can be taken.
November 8, 2012 at 7:35 am
start timer after sending query to plc; if within time you get the reply stop timer else popup message or another action.
November 2, 2012 at 10:43 am
I am developing VB.net application & am not getting the protocol to check whether PLC is active or not. How can I get the version & other info of PLC ?
November 5, 2012 at 1:30 pm
Use WPLSoft or ISPSoft and click on PLC Information
October 8, 2012 at 10:08 pm
Hello
as you know many people have some problem in modbus connection with delta PLC (use communication between Delta PLC and another brand with MODBUS protocol)
you can use this software for converting delta dvp series register address to standard modbus address.
see this links for download:
http://servo.ir/download/delta-modbus-ascii-converter.html
http://www.4shared.com/file/8BvG6FD0/delta_modbus_ascii_converter.html
July 5, 2014 at 3:56 am
Welcome, Mr. ali I carried the program of 4shared but disengagement pressure requires a password and can you help me or do you have the password, please give me it
September 5, 2012 at 10:21 am
Anyone tried the VB.net example? , I tried but read / write registers not possible, all other parameters , cable , port settings etc checked ok. but No joy.
Tried hex address , decimal address, still cannot read write .
If anyone could post tested version on VB.net or Vb2010 , it would be great help.
Thanks,
Shriram Pendse
Pune (India)
August 21, 2012 at 6:12 pm
Hello I am Arun.
I am new to PLC. But I knew vb.net. I want to connect DVP12SA11R plc with vb.net. I am learning PLC programming. Can you please send me code for access registry of plc and change it in real time. And also ladder logic code.
I have asked details about this to my local delta dealer. But told that, they only give password protected code. I want to learn and build my self. Please help me.
August 26, 2012 at 2:20 am
Don’t understand!?
The examples attached are exactly to do this.
August 27, 2012 at 9:25 pm
Thanks for reply
Vb6 coding working fine. But Visualbasic 2008 [vb.net] files not working.
I cant make port open using DMT.dll files.
Can you give me any working sample for vb.net 2008/2010 like vb6?
Thanks in advance
May 24, 2012 at 3:01 pm
I’d like to try PLC-PC comm library but ftp seems to be down. Is there another possibility to get the file ?
May 24, 2012 at 4:07 pm
It is not!
I tested few seconds ago…¿?
April 20, 2012 at 12:53 pm
Hello, We still do not use Twitter (too much work, you know…)
But thanks for following us ;)
April 18, 2012 at 10:11 am
Good day! Do you use Twitter? I’d like to follow you if that would be okay. I’m undoubtedly enjoying PC – PLC Communication (PLC control without SCADA) | Delta Automation Tips & Tricks and look forward to new posts…
April 18, 2012 at 2:15 am
Good day! Do you use Twitter? I’d like to follow you if that would be okay. I’m undoubtedly enjoying PC – PLC Communication (PLC control without SCADA) | Delta Automation Tips & Tricks and look forward to new posts…