7/21/2015 1:13 PM | |
Posts: 63 Rating: (1) |
Hello. I have an ET 200SP with a CM PtP (6ES7 137-6AA00-0BA0) that I need to communicate with over Modbus with several third-party modules. I have been looking online for example codes and the only thing I can find is examples where the slave devises are also Siemens. I have been following this article: https://support.industry.siemens.com/cs/attachments/68202723/68202723_S7-1500_ModbusRTU_DOKU_V1d1_en.pdf and I am using that sample code that is being described there. It seems very confusing but I think I am getting it somewhat. J I’m not quite sure how I retrieve the data. I have for an example two devise o the same kind that are: Half duplex Must allow up to 500ms for response Minimum read-request interval is 100ms or longer Mudbus ID: 45 and 52 19200 baud rate 8 data bits Even parity 1 stop bit Big-endian, MSB first order The first data entry in this device starts at 0x2000. The data I need to retrieve is 0x2016 all the way up to 0x202D. So my questions are: How do I setup other devises then Siemens in TIA PORTAL, Devises and Networks? (See picture Device & Networks) Where do I setup the response time and read-request interval? What do I put in "Comm_Data".Slave[1]."PORT"? (See picture OB100) Do I use the EN on the Slave block to start retrieving data? (See picture OB1) Do I retrieve the data from the slaves in the Comm_Data? (See picture Comm_data)
I hope I am somewhat on the right track here and someone can help me. Best Regards, Ari AttachmentModbus Pic´s.rar (690 Downloads) |
Last edited by: Min_Moderator at: 7/21/2015 2:27:35 PMEdit link |
|
7/24/2015 11:39 AM | |
Posts: 63 Rating: (1) |
Hi. I have now been trying everything with no luck. I am running a very simple program. i have a Comm_Loader in an OB100 and one Maser bloc in OB1. I was getting a 818B error that got solve by unchecking the Optimized block access on the DB tha i use for DATA_PTR. that seemed to do the trick i was suddenly getting no errors (7002) and the Tx light was blinking. Then after i tried switching the cables at T/RA- and T/RB+ and turned the PLC back on then the Master block started blinking between 7000 and 8281. Even though I swiched the cables back. (I swiched them to start with because i wasn't shout whether or not it was A to A and B to B or vice versa.) But now i have found out that if i have the comm_Loader block in the OB1 then I am back to having no errors and the Tx light is blinking. I am getting very desperate to finding a solution.... I put the two versions in to a Dropbox link along whit the Modbus info that came with the slave devise I am trying to connect to. If anyone could help me out i would appreciate it a great deal Regards Ari |
5/27/2016 11:37 AM | |
Joined: 8/18/2011 Last visit: 9/9/2022 Posts: 14 Rating: (0) |
Thanks for posting now my modbus is working.. |
Follow us on