8/22/2014 4:15 PM | |
Posts: 3 Rating:
|
OK, here is my simple code, I’m presently just trying to send with BSEND without reading. When I switch the Modbuis repeater (TRV00211) to 10bits communication and 19200baud rate I can see the Tx/Rx lights on the PLC and the Schneider TRR00210 module running very quickly. This shows me that the PLC sends and the Schneider answers but any way when I debug the program I receive fail each time PLC sends a message (the Rx/Tx lights are running all the time because as you see my code I have a cycle which sends again and again each time DONE or ERROR status is present). BSEND function returns ERROR after each send telegram and never return DONE. The error is number 02 which stands Negative acknowledgment, function cannot be executed, for example, link partner does not respond or sends negative acknowledgment in the BSEND description. As I see that Schneider is sending something I suppose may be the problem is Negative acknowledgment or some fail with the baudrates or something else. As I read the manual once again, and I described earlier I haven’t declared any communicational partner if you see in the Connections in the Step7 project, I just made an Undefined ptp connection, may be that is also one part of the problem? And one mote check point, I don’t have any Modbus terminators as I have just one communication partner now, I don’t know how critical the termination resistor is when I have the repeater and Modbus slave connected together on a backplane. And do I need a terminator resistors on the cable between PLC and Modbus repeater ? If you have some more ideas, please write. Attachmentfield connection.pdf (206 Downloads) |
8/25/2014 9:34 AM | |
Posts: 3 Rating:
|
I'm getting error 2 on BSEND, as I said I'm just using BSEND as I never have come to DONE status I have not yet used BRCV. I can see some times it comes error 19 too, but this error number was not described in the manual for BSEND error codes. Can you plese tell me how to open SYSTAT for status, I couldn't find any particular description. R_ID as I understood is some index of the send job, which I need to use in receive job to get the correct data, or ??? I have misunderstood? I'm attaching a simple copy of my test Project. AttachmentModbus_1.zip (199 Downloads) |
Follow us on