7/7/2018 9:03 PM | |
Joined: 4/25/2017 Last visit: 1/22/2025 Posts: 8 Rating:
|
Dear all, I try to use PLC S7-1200 CPU (1211C DC/DC/DC, firmware 4.1) and module CM 1241 (RS422/485, firmware 2.1) for communicate with frequency inverter TECO L510 by Modbus RTU protocol. After days of trials have no idea what is wrong. From beginning. I tryed connect these devices by 1m plain Ethernet cable, without shield, terminated on both sides by resistors 120 Ohm. Inverter has Ethernet plug, so terminating resistor I connected by welding it before plug. Some times I had communications, but always with error (frame error, no response error etc.). Many times I changes program, try with examples from forum etc. After hours of attempts communication does not work properly. I decided to change cable to Industrial Ethernet cat 5e and plugs to Siemens Profibus and Siemens Profinet. At this time I have 2m Industial Ethernet cable, on PLC side connected to Profibus plug and terminated by 120 Ohm resistor (build-in resistor on plug is off, this is different resistanse?), and Profinet plug with resistor at inverter side. From few hours I don’t have any response from slave. I bought Modbus receiver connected to USB to test the devices. When I try connect to inverter, it work properly. Using “IO Ninja” or “APBModbus Test” programs I can send and receive data from inverter. But when I connect to CM 1241 I don’t have any communication. In PLC I send data, and “IO Ninja” software should receive and show it, but this is not happening, as if no data is sending. What is important, one times I received response for loop test, but I don’t have any idea why this not work all times. I am beginning to suspect damage to the CM 1241 module, but why… I have already read all threads on the forum, trying solutions, but no success. Normaly I try with this parameters:
After read some posts I change to 2 Stop Bit, in inverter and PLC. Tx diode on CM 1241 module blinks, Rx diode not. Some time ago I had at least error on slave, now nothing. All time I have error 808C (“The slave does not respond within the set time /Check the data transmission rate, parity and wiring of the slave.”). I'm worried that despite the flashing diode I do not get any data on the USB receiver, it's possible that this data is not sent at all? Here Siemens TIA V13 project and PDF with screenshots and program: [snip] Someone has an idea? EDIT 08.07.2018: Here attached project on older library (in TIA communication is new Modbus RTU and older Modbus): [snip] Communication still does not work, the same symptoms. I downgrade firmware on module CM1241 to v2.0, it also did not help. AttachmentFiles.zip (548 Downloads) |
Last edited by: at803 at: 7/8/2018 5:15:46 PMLast edited by: Jen_Moderator at: 7/9/2018 2:03:35 PMDeleted links and added files as an attachment. |
|
7/9/2018 5:11 PM | |
Joined: 4/25/2017 Last visit: 1/22/2025 Posts: 8 Rating:
|
Ok, I tried:
In RealTerm serial capture program i have no data. In Serial Port Monitor I have some data: [snip] I don't know how read that, this is not Modbus frame... AttachmentSerial Port Monitor-20180710T052933Z-001.zip (574 Downloads) |
Last edited by: Jen_Moderator at: 7/10/2018 7:30:35 AMDeleted link and added file as an attachment. |
|
Follow us on