Industry Online Support
Technical Forum
12/29/2009 11:16 AM | |
Posts: 2 Rating:
|
Hi all, I've created a sample project using P_SND_RK and P_RCV_RK blocks. After loading the program in PLC, none of these blocks generate error messages but P_SND_RK does not return a 1 at DONE pin. Also the TXD LED of the corresponding CP 341 does not blink. On the other hand, the initialization block of CP 341 slave (MODBUS) does not perform normally and returns an error. I attach the archieved project. Please tell me if anybody knows how to make the program correct. Regards AttachmentMdbtst88.zip (187 Downloads) |
12/30/2009 5:27 AM | |
Posts: 382 Rating:
|
Hello myssamk, I don't know how much I can help you. But lets try. First just to ensure a few things on the setup side which i think you have already done 1] install the simatic PtP software 2] install the donggle license keys into the both CP341 [slave & master in your case] 3] download the modbus master & slave settings to CP341 4] pin connection for CP341 [pin4 (+), pin11(-) and pin8 (GND)] Secondly, i suggest to troubleshoot one thing at a time as you facing problem in both yourmaster and slave CP341 setup. lets put aside the master, we can troubleshoot the slave setup first. I have modified your program to left with the salve setup. Download the progam, use a modbus scan tools to poll/pull data from the CP341 slave. Ensure the modscan tool baud rate, stop bit, slave address and other parameters set the same as your CP341 salve. Once you are able to get your slave communication up without error, then you can add on FB8 and FB7 program and setupyour master CP341. Hope this helps! with regards, how come AttachmentMdbtst88_test.zip (184 Downloads) |
12/30/2009 5:37 AM | |
Posts: 382 Rating:
|
Hello, I post this modscan toolsincase you need it for testing with regards, how come AttachmentInstaller_CAS Modbus Scanner.zip (203 Downloads) |
12/30/2009 10:45 AM | |
Posts: 2 Rating:
|
Hi, I used your code but FB80 is still returning error number 2. I don't know what to do. |
12/31/2009 7:42 AM | |
Posts: 382 Rating:
|
Hello, Please try this example. I have tested and the result should be as shown in the sreenshot given in the attachment. In the test configuration I have put the modbus slave CP341 in slot 4 and buad rate is 19200. You may modify to slot 5 as per your configuration and try it. Remember if you are using theRS485/RS232 converter that connected between the CP341 and your PC should also configure as the same baud rate as the CP341 card. Good luck and happy new year with regards, how come AttachmentExample 1.zip (222 Downloads) |
Last edited by: how come at: 12/31/2009 7:44 AM |
|
This contribution was helpful to
1 thankful Users |
Follow us on