How to Configure Real-time Microsoft Excel WRITE Communication to Rockwell Controllers (VBA)

  Рет қаралды 41,885

RealPars

RealPars

Күн бұрын

Пікірлер: 57
@ChristoffelTensors
@ChristoffelTensors 2 жыл бұрын
This is simply one of the best controls engineering videos i have ever watched.
@realpars
@realpars 2 жыл бұрын
That's amazing to hear!
@glennrager3684
@glennrager3684 2 жыл бұрын
Thanks for this video. I used your code to read/write SCADA values to a CompactLogix controller every minute using a timer in VBA instead of command buttons (I used the buttons to enable/disable the timer). Works great after enabling the new DDE options in Excel 365 Trust Center, Windows 10. Also, we (a Wastewater Utility) had to purchase a license for RSLinx Classic Gateway, because the free Lite version doesn't support DDE even though it allowed me to configure a topic. Anyway, I appreciate your easily understandable video. Big help!
@realpars
@realpars 2 жыл бұрын
Thanks a million for your support, Glenn! We appreciate that.
@Gustavoparaense
@Gustavoparaense 4 жыл бұрын
I have been using Visual Basic 6 for over 10 years using the OPC Server DA protocol, the Korean brand LS PLC provides the driver for free
@halitekmekci8304
@halitekmekci8304 4 жыл бұрын
I really like this channel, very informative and helpful. Good job!
@realpars
@realpars 4 жыл бұрын
Amazing, Halit! Thanks for your support.
@DuneKraftwerk
@DuneKraftwerk 4 жыл бұрын
Wow... DDE, I use that 25 years ago on a PLC5 PLC. What about OPC UA ?
@maqsudaxhmedov8006
@maqsudaxhmedov8006 4 жыл бұрын
Thanks RealPars for everyvideos
@realpars
@realpars 4 жыл бұрын
You are very welcome!
@PabloSanFerARI
@PabloSanFerARI 2 жыл бұрын
Wow, so useful to integrate IT with OT
@realpars
@realpars 2 жыл бұрын
Glad to hear that, Pablo!
@kalaivanan.l4147
@kalaivanan.l4147 4 жыл бұрын
Quit superb, explain more about VBA.
@realpars
@realpars 4 жыл бұрын
Thanks for your support!
@thaddeusthomas3237
@thaddeusthomas3237 Жыл бұрын
This is fantastic, thank you Is it possible to use this DDE methodology to similarly interact with PLCs from other Microsoft programs. Access or SharePoint for example?
@realpars
@realpars Жыл бұрын
Not all Microsoft products support DDE. Excel and Access do. SharePoint does not. DDE is being phased out in favor of other technologies, such as OPC.
@phuocanh19811
@phuocanh19811 3 жыл бұрын
It's so clear training
@realpars
@realpars 3 жыл бұрын
Glad to hear that!
@amjadhelo3598
@amjadhelo3598 4 жыл бұрын
skilled engineer , thank realpars
@kalybaizhalgasbai376
@kalybaizhalgasbai376 4 жыл бұрын
Hello RealPars, can tell what kind of software do you use to make such kind of videos??
@realpars
@realpars 4 жыл бұрын
Hi Kalybai, Thanks for your comment! I am actually not sure about this as this is done by our graphic and animation department.
@guweizhao3430
@guweizhao3430 2 жыл бұрын
how can Excel read CLX dynamic data in a certain time intervals automatically? and write to CLX?
@realpars
@realpars 2 жыл бұрын
Great question! This would make for an interesting video course, I will go ahead and pass this on to our course developers as a topic suggestion. Many thanks for sharing and happy learning!
@lwke1296
@lwke1296 2 ай бұрын
What is the difference between RSLinx Classic and RSLinx Classic Gateway? They seemed to be used interchangeably in this video, even the program is named different things in the windows search box vs the program title.
@realpars
@realpars 2 ай бұрын
Hello @lwke1296 . Thank you for your question. Here is a link to learn more about it. rockwellautomation.custhelp.com/app/answers/answer_view/a_id/545290/~/differences-between-rslinx-classic-gateway-and-rslinx-classic-oem- Happy learning from RealPars!
@bighorse416
@bighorse416 3 жыл бұрын
Great channel. What type of programming language do you use to write to the plc in your excel file
@realpars
@realpars 3 жыл бұрын
There is no PLC programming done in Excel. OIn the video. Visual Basic for Applications (VBA) was used in macros to open a DDE communication channel between the: PC and the PLC communication driver. RSLinx, so that data can be shared with the PLC.
@teamofdigital8890
@teamofdigital8890 4 жыл бұрын
Thanks for sharing this lesson with us
@realpars
@realpars 4 жыл бұрын
You are very welcome!
@christopher8220
@christopher8220 4 жыл бұрын
If I wanted to write successive data, say down a column, for post test data analysis, what command would I use in the excel file?
@realpars
@realpars 4 жыл бұрын
You would need to write a VBA script to reference the cell location you want to populate. I would usually have a button control that when pressed, would start at a specified cell execute the method that will write the data in the cell to the PLC. Then after the write is confirmed, the script would increment the row number by one, and the write would proceed again, and so on. There are many powerful things you can do in scripting, which is the utility for automating manipulations in Excel. As a programming aid, when you record a macro, you are allowing Excel to do a lot of the programming work for you, as long as what you want to do is repetitive.
@procontrolautomation2299
@procontrolautomation2299 4 жыл бұрын
Very very good job! I appreciate this help.
@realpars
@realpars 4 жыл бұрын
Great to hear that!
@prestigiuseppe2659
@prestigiuseppe2659 5 ай бұрын
Is it possible to do the same thing with Tia Portal from Siemens?
@realpars
@realpars 4 ай бұрын
Thank you for your question. Yes, you can! Here is a link to Siemens TIA and other product information for your learning experience. support.industry.siemens.com/cs/document/109744173/documentation-for-simatic-controller?dti=0&lc=en-WW Happy learning!
@mohsenparizi2631
@mohsenparizi2631 11 ай бұрын
Hi thanks. is it possible with pcs7 too?
@realpars
@realpars 11 ай бұрын
Hi Mohsen, Thank you for your question. Yes, you can. Siemens has been doing this since 2012 or earlier. Below are two links you can explore for your learning. support.industry.siemens.com/forum/WW/en/posts/collecting-data-on-an-excel-sheet-using-dde-network/68902/?page=0&pageSize=10#top support.industry.siemens.com/cs/document/761667/dde-channel-to-excel-locally-on-a-computer?dti=0&lc=en-WW Happy learning!
@husamshalash8789
@husamshalash8789 3 жыл бұрын
thanks for the sharing. could u make it simple for amatures like me and make videos for this important subject from the fundementals(Basics)?
@jaikumar2682
@jaikumar2682 4 жыл бұрын
can u make more videos about allen bradley plc and RS logix software
@realpars
@realpars 4 жыл бұрын
Hi Jai! Thanks for your comment and your suggestion. I will pass this on to our course developers! Thanks for sharing and happy learning!
@pascalbradette3613
@pascalbradette3613 3 жыл бұрын
DDEPoke dont work. No error, but notin write in PLC? Cant you help me? I use Office 365 desktop application. Thank you.
@pascalbradette3613
@pascalbradette3613 3 жыл бұрын
Ok, I find! It does not seem possible to directly pass a value for writing ... The only way that seems to work is to pass through a cell. Thanks for the very educational video!
@realpars
@realpars 3 жыл бұрын
Glad to hear that you have been able to resolve it, Pascal! If you have any other questions along the way, please feel free to reach out.
@Danyl96
@Danyl96 4 жыл бұрын
Thanks for your videos!!! Pls, make video about DNP3.
@realpars
@realpars 4 жыл бұрын
Hey! Thanks for your comment and your suggestion. I will pass this on to our course developers! Thanks for sharing and happy learning!
@casaautomation6107
@casaautomation6107 4 жыл бұрын
GOOD
@phuciendj1572
@phuciendj1572 4 жыл бұрын
This is higher level than my level. 😭😭😭😭😭
@superezbz
@superezbz 3 жыл бұрын
I was under the impression that Windows 10 no longer supports DDE.
@glennrager3684
@glennrager3684 2 жыл бұрын
Microsoft fixed it recently. New security options in Trust Center for DDE.
@superezbz
@superezbz 2 жыл бұрын
@@glennrager3684 That's great news!
@glennrager3684
@glennrager3684 2 жыл бұрын
@@superezbz I've been using it all week at work. Windows 10, Excel 365. It works great, same code as in this video. The only problem is we had to purchase a license for RSLinx Classsic Gateway, because all we had was the free Lite version.
@superezbz
@superezbz 2 жыл бұрын
@@glennrager3684 That's definitely the biggest thing. Although I do like being able to do HMI and historian data on the cheap this way.
@glennrager3684
@glennrager3684 2 жыл бұрын
@@superezbz Agreed. On the cheap. I've been doing Excel/VBA for data, graphics and charts for years, but never with live data. This opens up a whole new world for free HMI. Plus, I can write to Access for a free historian. Only thing missing is ability to serve multiple network clients with web pages. Someone smarter than me can probably figure that out with javascript, etc.
Real-time Data Logging Using RSLinx OPC and Excel
13:56
PLCGurus.NET
Рет қаралды 51 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
How to Program a Basic PID Loop in ControlLogix
13:12
RealPars
Рет қаралды 385 М.
Read and Write Data in MS Excel, using RSLinx to and from ControlLogix
15:27
Robotics & Automation - Electro-Mechanical
Рет қаралды 39 М.
What is Ethernet/IP?
8:06
RealPars
Рет қаралды 512 М.
What is DeviceNet?
10:17
RealPars
Рет қаралды 215 М.
How to get A-B PLC data values into MS Excel using RSLinx
8:48
Insights In Automation
Рет қаралды 65 М.
What are the Most Popular PLC Programming Languages?
9:31
RealPars
Рет қаралды 696 М.
How to Wire Discrete DC Sensors to PLC - Part 1
13:58
RealPars
Рет қаралды 345 М.
What is an Electrical Control Panel? (PLC Panel Basics)
7:47
RealPars
Рет қаралды 717 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН