Hello,
I try to do the communication between a Siemens PLC and a B&R PLC through TCP/IP connection. I've no experience in this field, and I'm completely stuck with a problem.
The Siemens is used to manage a circulation system and the B&R to control a plotting module, that's why Siemens is the server and B&R the client. The Siemens must give a array of characters to the B&R which informs this one about a filename that it has to search on another server, so we just want to transfer a array of char from the Siemens to the B&R...
Below is the source code in SCL for S7:
I checked the IP and ports for the both PLC and they match, I used the code from an example I found in Internet for S7, and for B&R it was directed in the IDE from the manufaturer.
For S7 I've the status for TCON with this number:80B3
which means it could be error from 80A0-80A2, 80A4, 80B4-80B9 which doesn't help...
S7 function block code (used in OB1-main, no problem with that)
with its source code will be put at the next post.
**************************************
For B&R, I used that code, the program runs between step 0-5-10-40 and loops again, if I change the port number in the step 10 at the line: Client.TcpClient_0.portserv := 12000;
it loops between 0-100 which means the communication with this port should work.
The code for B&R will be display at the over next post... (so long for only one)
Thanks for your help
I try to do the communication between a Siemens PLC and a B&R PLC through TCP/IP connection. I've no experience in this field, and I'm completely stuck with a problem.
The Siemens is used to manage a circulation system and the B&R to control a plotting module, that's why Siemens is the server and B&R the client. The Siemens must give a array of characters to the B&R which informs this one about a filename that it has to search on another server, so we just want to transfer a array of char from the Siemens to the B&R...
Below is the source code in SCL for S7:
I checked the IP and ports for the both PLC and they match, I used the code from an example I found in Internet for S7, and for B&R it was directed in the IDE from the manufaturer.
For S7 I've the status for TCON with this number:80B3
which means it could be error from 80A0-80A2, 80A4, 80B4-80B9 which doesn't help...
S7 function block code (used in OB1-main, no problem with that)
with its source code will be put at the next post.
**************************************
For B&R, I used that code, the program runs between step 0-5-10-40 and loops again, if I change the port number in the step 10 at the line: Client.TcpClient_0.portserv := 12000;
it loops between 0-100 which means the communication with this port should work.
The code for B&R will be display at the over next post... (so long for only one)
Thanks for your help