Home > Software engineering >  VB use winsock control and Siemens PLC communication
VB use winsock control and Siemens PLC communication

Time:11-13

I am beginner VB, want to use VB to write a PLC, PC monitor, using winsock control and PLC to do communications, hope to have a tall person to give some examples and comments to learn,

CodePudding user response:

Recommendations have to learn to use the original poster caught software such as wireshark
And then in the baidu search "Winsock VB6 code"

CodePudding user response:

PLC haven't played, 51 and ARM and some experience, but next bit machine communication protocol is also written by yourself, relative to the communication protocol of custom is very important, if you in a function with the writing of the communication protocol, VB this piece should not difficult also ah, can be written in a similar way,

If you are on the architecture has a problem, you can also ask architecture scheme,
If you are on the communication protocol has a problem, you can also ask communication protocol customization scheme,
If any problem when you are in the use of VB, you can directly ask specific questions,
You ask very fan, it is difficult to get the accurate reply,

CodePudding user response:

I don't know what to write sample
Winsock1. SendData publishes the event "hello"
Such?

CodePudding user response:

Don't know how many predecessors in the TCP Socket
Send (many) send (less) send (wealth)
Has been so much illness recv (), recv (wealth)
Inside the trap!
http://bbs.csdn.net/topics/380167545

CodePudding user response:

PLC manufacturer agreement is generally not publicly, but manufacturers have to provide a high-level language development solution:
Mitsubishi: http://blog.sina.com.cn/s/blog_16d7d3ecb0102x6wj.html
Omron: http://blog.sina.com.cn/s/blog_16d7d3ecb0102x3qi.html
Siemens: http://blog.sina.com.cn/s/blog_16d7d3ecb0102x1z5.html
Schneider: http://blog.sina.com.cn/s/blog_16d7d3ecb0102x7ui.html
Panasonic: http://bbs.gongkong.com/d/201708/724563_1.shtml
Rockwell: http://bbs.elecfans.com/jishu_1646448_1_1.html
.

CodePudding user response:

PLC manufacturer agreement is generally not publicly, but manufacturers have to provide a high-level language development solution:
Mitsubishi: http://blog.sina.com.cn/s/blog_16d7d3ecb0102x6wj.html
Omron: http://blog.sina.com.cn/s/blog_16d7d3ecb0102x3qi.html
Siemens: http://blog.sina.com.cn/s/blog_16d7d3ecb0102x1z5.html
Schneider: http://blog.sina.com.cn/s/blog_16d7d3ecb0102x7ui.html
Panasonic: http://bbs.gongkong.com/d/201708/724563_1.shtml
Rockwell: http://bbs.elecfans.com/jishu_1646448_1_1.html
.

CodePudding user response:

Use ModbusTCP, look at me this, even the winsock saved at https://blog.csdn.net/bakw/article/details/50487609

CodePudding user response:

upstairs to dig the grave

CodePudding user response:

From the simple routines to start, try a little bit

CodePudding user response:

VB and Siemens PLC Ethernet communication, there are a variety of ways, one is to use Prodave, one is using the Siemens protocol, one kind is to use a custom protocol, the three I have been used, with the agreement of Siemens is the most simple, no third party software, can read and write bytes,,
  • Related