7/23/2009 9:15 AM | |
Posts: 10 Rating:
|
UPDATE : PROBLEM SOLVED Hi guys, just to keep you updated I solved the problem. As you mentioned MB_COMM_LD needed to be call just one time (at startup, in Startup OB). I made a mistake because in S7-200 you need to call port initialization every scan. Also I added few networks to catch done and error bit and status word. You need to careful how you are defining DB for data exchange, it need to be non symbolic and you need to know what data type slave is sending. In my case PAC3200 is sending floating point data so I used DB with struct of floating point variables. Once again many thanks for answers and help. Cheers Alen ******************************************************************************************************************** Hi guys, in my recent project I need to use Siemens S7-1214 controller to communicate with the Sentron PAC3200 device using the Modbus RTU network. Previously, for the same purpose, I was using S7-224XP controller and there were no problems, the communication was working spotless (instruction library blocks were used). Unfortunately with the new controller I’m not able to establish communication. On the beginning please let me introduce you with my hardware configuration. As mentioned, there is S7-1214 controller expanded with the CM1241 (RS485) communication module. The RS485 port is configured as a Modbus Master and connected with the Sentron PAC3200 device (expanded with the RS485 module).The TIA online diagnostic shows that controller and RS485 module are OK (healthy). Configuration of Modbus port on the S7-1214 controller is carried out using MB_COMM_LD library block according to the S7-1200 system manual, please find attached TIA project. According to the status word the port configuration is executed without any error. The CM1241 port baud rate is set to 19200, no parity, 8 bit per character and 2 stop bits which correspond to the settings of the PAC RS485 port (19200, 8N2). Please find attached simple TIA project which I was using for the Modbus communication test. In this moment I have no idea what to do next so I will appreciate if you have any suggestion or advice. Also please take a look on the TIA project which is attached to the post.Sorry for the long post. Regards Alen Attachmentfirst_start_1.zip (408 Downloads) |
Last edited by: Alen231 at: 7/24/2009 9:45 AM |
|
7/24/2009 4:15 PM | |
Joined: 11/26/2008 Last visit: 2/26/2025 Posts: 101 Rating:
|
Hi Alen, Good to hear you have your program working. I am working on a similar project. I can read 3 phases of the Instantaneous voltage, but i can't seem to monitor other values such as current etc. I tried expanding my array beyond 6 and transmittion of data stopped. Please see attached TIA project Have you any advice on how to monitor other values from the PAC? AttachmentPAC3200_S71200.zip (381 Downloads) |
7/25/2009 5:30 PM | |
Posts: 10 Rating:
|
Hi Abyrne, Attachmentfirst_start_2.zip (442 Downloads) |
This contribution was helpful to
1 thankful Users |
Follow us on