3/21/2010 5:46 PM | |
Joined: 1/28/2009 Last visit: 10/6/2024 Posts: 6852 Rating: (1365) |
Hi While connecting S7-400 as a master to 315-2DP as slave and using SFC14 &15 to exchange consistent data, How can we find LADDR of the slave?Please check the sample project published by SIEMENS as the attachment. Best regards hdhosseini AttachmentFaq.zip (73 Downloads) |
Last edited by: hdhosseini at: 3/21/2010 5:48 PM |
|
This contribution was helpful to1 thankful Users |
3/21/2010 9:59 PM | |
Joined: 10/7/2005 Last visit: 10/7/2024 Posts: 3024 Rating: (1054)
|
Hello hdhosseini LADDR = Logical Address, in this case it means the Input or Output Start address of the I/O Module in the DP Slave and you'll find this in HWconfig. Since your Example is using a CPU as an I-Slave(Intelligent DP Slave), you'll need to double click on the DP Slave and have a look at the Congfiguration tab. Note that the "PartnerAddress" column has the LADDR addresses for usage of SFc14/15 in the DP Master and the "Local Address" column has the ones for the DP Slave CPU (you are looking at the Properties of a DP Slave, it's Partner is the DP Master). Last but not least, the I/O addresses are in decimal form, SFC14/15 however need the correspondinghexadecimal value. Have a look at the attached pic which should help in making sense out of the above (the FAQ example quite rightly uses 103 decimal = 67hex for SFC15 in the DP Master to send 5 Bytes of consistent data to the Output module in "Slot" 5 of the DP Slave. The logic in the DP Slave CPU uses 3 decimal = 3 hex to read these values consistently via SFC14). I hope this helps |
Last edited by: fritz at: 3/21/2010 10:04 PMCheers |
|
11/11/2014 4:03 PM | |
Joined: 7/26/2009 Last visit: 6/19/2024 Posts: 16 Rating: (0) |
dear fritz Hi I tested faq sample in plcsim and the program work correctly. But there is no data communication betwen to cpu. does plcsim support data exchange betwen cpu or can we seen the sending data from cpu 400 in cpu 315. thanks for advance |
11/11/2014 9:07 PM | |
Joined: 1/28/2009 Last visit: 10/6/2024 Posts: 6852 Rating: (1365) |
Hello sina20795, PLCSIM is not capable of reproduce a Master/Slave communication(over PROFIBUS) depsite all program execution without any error.For a exact test, you need real hardware in which master generates request telegrams and Slave provides proper responses in correct time over bus.
PLCSIM supports data exchange between 2 communication parteners via S7-Connection.Check the following links: How do you simulate communication between two CPU modules? Global Data communication with PLC SIM5.4 SP5 I hope this helps, Hamid Hosseini |
Last edited by: hdhosseini at: 11/11/2014 9:27 PM |
|
Follow us on