3/2/2007 9:02 AM | |
Posts: 2 Rating: (0) |
Good day, I don want create new topic, i think better idea is collect all Modbus problems and solutions in one place to help such "rookies" like me ;) Im trying to configure Modbus connection first time. Im using S7-300 class PLC with 341-1CH01-0AE0 module, unfortunatelly i do have problem. At start im trying to send some data, but function P_SND_RK is in continous state of error (1 at "error" output), strange is that function is generating error even before i try send anything. Its coming into error state right after turning PLC on. Status information have number 1e0d i checked that in manual but "Request aborted due to complete restart" is not telling me anything. Have anybody idea what can be reason of such error and how to eliminate it ? Im attaching my project also for examination (Modbus send function have number FC17) Thank you in advance for any help Greg AttachmentModbus_prob.zip (189 Downloads) |
Last edited by: Blue Moderator at: 03.03.2007 22:00renamed thread |
|
3/3/2007 1:59 PM | |
Joined: 1/7/2006 Last visit: 12/23/2024 Posts: 2705 Rating: (320)
|
Dear Greg, A good idea to work further on one MODBUS thread First of all I have download your program, then I have to switch with Windows to Polish.... start the computer new and then I could open the project. The first that are directly seen by me are that FB7 and FB8 are not up-to-date, FB7 V2.2, FB8 V2.7, this blocks are coming with the newest program to program the serial cards. Download CD "CP340, CP341, CP440, CP441", version: V5.1+SP7 When looking in "Blocks" --> "Check Block Consistency..." you may see that there are some errors with the instance datablocks, I see that you do a send and don't have the information in the datablock, it is necessarry to place the data right behind the header with the FunctionCode that you want to send. Normally the receive is also need to get the data of the slave back (see also my example in the first page of this thread). When placing the updated FB7 and FB8 and compiling them in the "Check Block Consistency..." then all errors are gone. You have now only to make the software as described in my example. I think you also need a Receive to get the data back. Please let me know if you need the receive..... thanks |
I hope that the answer will help, if you have still questions, don't hesitate to ask me. |
|
2/29/2016 2:55 PM | |
Posts: 87 Rating: (1) |
I found problem: wrong connection - pins + and - to slave. Can reseting by power off. |
This contribution was helpful to1 thankful Users |
Follow us on