read and write data in my plc

A

Thread Starter

Anonymous

I would like to read and write data to my PLC (Simatic s7-400) via Excell in VBA. I've tried it with the datacontrol, but i'm stuck. I don't excactly know how the methods e.g. writevariable, write multivariables works.
I want even if it is possible to read and write complete array in my plc. But I don't know which code to use.
 
Try using the Prodave software ( Siemens product) which includes all the libs to communicate with the PLC and any other programming language ( c++, VB)
 
Yes, You can read and write data in PLC, even array. You should use the OPC automation by writing vb code in your excel sheet.
 
I want to use my symbolic representation from a tagfile to read en write array to my PLC How should I do this and could you please give me an example of code in VBA to read and/or write.

kind regards Frank
 
Top