Hi,
Recently I posted a query on how to set up a master/slave configuration using two CPU 314 C- 2 DP PLCs and I received a fantastic link:
http://www.automation.siemens.com/fea/html_76/down_module.htm
and used “PROFIBUS DP with Master CPU 315-2 DP / Slave CPU 315-2DP” module D6. I followed the manual and I am still struggling to get the master and slave to communicate.
At the moment my aim is very basic in that I would like to switch on an input contact with a switch directly connected to an input on the Master PLC (or by using Wincc) to switch on an output contact in the slave PLC and vice versa. Similar to a program I constructed in block OB1 in the master program.
I can switch on an input contact in Wincc for example, M120.0 to switch on an output contact Q120.0 in the slave but I can not get any output contacts to switch on in the master PLC using a similar Wincc input.
The master configuration was downloaded to the MPI port in the master and the slave to configuration to the slave PLC using MPI then the profibus network was connected to both PLCs and both PLCs could be read on the network in the diagnostics of the CP 5613 PCI.
From the above manual, the code
L IB 0
T QB 40
L IB 40
T QB 4
was placed at the start of the program in both OB1 of the master and slave (I don’t know if this is needed).
I’m not sure if the contacts need different operators to be used for the slave for example, instead of using I124.0.
I have set the I/O contacts in the slave as I120..I122 and Q120..Q121 and have left the master I/O addresses as I124..I126 and Q124..Q125.
Sorry about persisting with this topic,
Thanks.
Recently I posted a query on how to set up a master/slave configuration using two CPU 314 C- 2 DP PLCs and I received a fantastic link:
http://www.automation.siemens.com/fea/html_76/down_module.htm
and used “PROFIBUS DP with Master CPU 315-2 DP / Slave CPU 315-2DP” module D6. I followed the manual and I am still struggling to get the master and slave to communicate.
At the moment my aim is very basic in that I would like to switch on an input contact with a switch directly connected to an input on the Master PLC (or by using Wincc) to switch on an output contact in the slave PLC and vice versa. Similar to a program I constructed in block OB1 in the master program.
I can switch on an input contact in Wincc for example, M120.0 to switch on an output contact Q120.0 in the slave but I can not get any output contacts to switch on in the master PLC using a similar Wincc input.
The master configuration was downloaded to the MPI port in the master and the slave to configuration to the slave PLC using MPI then the profibus network was connected to both PLCs and both PLCs could be read on the network in the diagnostics of the CP 5613 PCI.
From the above manual, the code
L IB 0
T QB 40
L IB 40
T QB 4
was placed at the start of the program in both OB1 of the master and slave (I don’t know if this is needed).
I’m not sure if the contacts need different operators to be used for the slave for example, instead of using I124.0.
I have set the I/O contacts in the slave as I120..I122 and Q120..Q121 and have left the master I/O addresses as I124..I126 and Q124..Q125.
Sorry about persisting with this topic,
Thanks.