Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tatin

Pages: [1]
1
Open Discussion / Re: Driver Siemens with Snap7
« on: June 19, 2022, 04:19:37 PM »
I'm sorry but I have not used the driver again, it should work with the S7-300 but keep in mind that I have not tested it much, test it well because it may have errors because I am not an expert programmer.

2
Open Discussion / Re: Driver Siemens with Snap7
« on: July 20, 2021, 11:24:39 AM »
Hello, it is not necessary to write code to read a value from the PLC, you just have to open the example project, add the SiemensCom driver as explained by a colleague previously, insert a BasicLabel on the screen and finally put in the property PLCAddressValue for example DB1.DBW0. Well, don't forget to put the SiemensCom driver in the ComComponent property. As well as assigning the IP address to the driver.
In the source code of the driver are all the possible examples for DBs, but also if you change DB1.DB to M, I, Q you can access these memory areas.
Bear in mind that this driver forces you to define access to a DB as not optimized or something like that in the TIA Portal project.
I hope I have helped you with your question ...
Greetings...

3
Open Discussion / Re: Driver Siemens with Snap7
« on: May 20, 2021, 09:13:42 AM »
Hi, this functionality is not implemented in the driver, as it is based on Snap7, only the memory addresses can be accessed.

4
Open Discussion / Re: Driver Siemens with Snap7
« on: May 16, 2021, 08:02:46 AM »

5
Open Discussion / Re: Driver Siemens with Snap7
« on: May 16, 2021, 07:43:24 AM »
Hi, try changing DB1.DB to M: M0.0, MB0.0, MB0, MW0, MD0, ...  same with I(input), Q(output)

6
Open Discussion / Re: Driver Siemens with Snap7
« on: February 03, 2021, 05:32:55 AM »
Hi Lucky, I'm glad the driver works for you but in V3.99y the Write function returns an Integer to see if the writing has been done. Also, in the code of the BasicButton component, the value returned by the Write function is never used.

MfgControl.AdvancedHMI.Drivers.IComComponent.Write(startAddress As String, dataToWrite As String) As Integer

7
Open Discussion / Driver Siemens with Snap7
« on: November 08, 2020, 03:45:27 PM »
Hello, in case someone is interested, I leave a slightly more tested version of a communication driver for Siemens PLCs that uses Snap7.
To integrate it, you have to copy the files in the "AdvancedHMIDrivers" folder, within the project add the SiemensCom.vb file as an existing element, add the Snap7.net.dll file in "References" and finally copy the "snap7.dll" file. in the build folder of the project "AdvancedHMI \ bin \ Debug"

By the way, it works with the Tia Portal simulator via NetToPLCSim.

Cheers...

8
I hope this clarifies it, it is copied from the web http://snap7.sourceforge.net/

Siemens communications overview
 
Snap7, by design, only handles Ethernet S7 Protocol communications.
Why only Ethernet ?
Having said that we are not talking about the fieldbus, but we are focusing on PC-PLC communications, Ethernet has several advantages against Profibus/Mpi :
·         It’s faster, CP 1543-1 (for the newborn S71500) has a bandwidth of 1000 Mbps.
·         It's more simply to troubleshoot, in 50% of cases a "ping" is good enough to solve your problems.
·         It’s cheaper, you don’t need a special adapter to communicate (which, moreover, cannot not be used with any hardware and any virtual infrastructure as Snap7 does).
·         If you use Snap7Server, many more non-Siemens panels/scada can be connected with your software.
 
Siemens PLCs, through their communication processors (CP) can communicate in Ethernet via two protocols:
Open TCP/IP and S7 Protocol.
The first is a standard implementation of the TCP/IP protocol, it's provided mainly to connect PLCs with non-Siemens hardware.
TCP/IP is a generic protocol, it only states how the packets must be transferred, and it doesn't know anything about their content.
Finally, TCP/IP is stream oriented (though Siemens FC/FB needs to packetize the data stream into blocks).
As said, it is a standard, so you don’t need of Snap7 to use it, your preferred socket libraries are perfectly suitable.

9
Hello, I leave the link with the siemens driver using snap7, in front of any doubt I will try to help as much as I can since I am not an expert in .net programming, I do what I can. I have tested it with snap7's own simulator and with an S7-1500 PLC. (sorry my english is translated)

https://drive.google.com/open?id=1qkjWns0W4z6uQtiWrUeaWBJl4oHMxAaC

10
Hi, I have been developing a driver for siemens using Snap7, if anyone is interested in using/test it I can share.

11
You are right, that was the problem, the FINS protocol simulator that I am using creates a new connection to answer, I have changed it and it already works. Thank you very much for your help.

12
Hello,
Sorry for my English, it is translated by google translator.
I am trying to connect to an Omron cj2m (UDP) PLC but I also perform tests with a simulator on the PC (the same applies to both the simulator and the PLC). The problem is that the driver responds to me with the error EIPTransport.SendData-No Response (-123). Looking at the packages in the Wireshark seems all right, I have only managed to work from a virtual machine with Windows 7 but I do not find it special for it to work. I add packet capture.

Pages: [1]