6/4/2019 2:18 PM | |
Joined: 4/28/2015 Last visit: 7/7/2024 Posts: 15 Rating:
|
Good day Can anyone assist me with a way of sending boolean data from an s71200 plc to another s71200 plc. Regards Mzala |
6/4/2019 2:57 PM | |
Joined: 9/27/2006 Last visit: 3/21/2025 Posts: 12344 Rating:
|
Hello Mzala; It is true that PUT and GET would be the easiest way to exchange data between your 2 CPU over Ethernet, for example. But it does not directly allow to transfer boolean data between them. Look at the following discussion: https://support.industry.siemens.com/tf/ww/en/posts/put-get-example/167001?page=1&pageSize=10 The ANY pointers used in PUT and GET to select address ranges cannot request less than a byte. So you must transfer your boolean data to the different bits of the bytes you want to transfer by PUT and GET before the transfer, and then decode them in the receiving CPU. A different philosophy would be to connect (hardwired) a PLC digital output of one CPU to a digital input on the other, and so on for each transmitted boolean data. But that could lead to much wiring, depending on the number of boolean points you need to transfer. Hope this helps, Daniel Chartier |
This contribution was helpful to
1 thankful Users |
6/4/2019 4:19 PM | |
Joined: 1/1/2017 Last visit: 2/21/2025 Posts: 337 Rating:
|
Thanks to DChartier. One point I can also say that instead of using a PLC DO, you can use PLC Clock Pulse of 1Sec also for going out with the transmission of the Boolen Data. But as friend DChartier has pointed out, it will lead to some time taking logic making. Regards OmKris |
6/5/2019 11:11 AM | |
Joined: 4/28/2015 Last visit: 7/7/2024 Posts: 15 Rating:
|
thank u, i think i will have to hardwire because the PUT/GET instruction is greyed out on TIA 13 |
6/5/2019 1:41 PM | |
Joined: 9/27/2006 Last visit: 3/21/2025 Posts: 12344 Rating:
|
Hello Mzala; Physical hardwiring of input/output signals is one way of connecting the PLCs for boolean exchanges. However there are ,many ways of connecting the 2 CPUs using the integrated Profinet interface, Profinet being one. BSEND/BRECV was also mentionned in a previous post. You can search the site for example applications, using the search box at the right of this page. Or look at the following document: https://support.industry.siemens.com/cs/ww/en/view/38051505 Here for example is a basic TCP/IP link sample code between S7-1200 CPUs, from our friend Pegaia: S7-1200 TCP communication - Sample program Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 06/05/2019 13:42:10Last edited by: dchartier at: 06/06/2019 01:20:42 |
|
This contribution was helpful to
1 thankful Users |
Follow us on