8/20/2009 9:43 AM | |
Posts: 54 Rating:
|
Hi everybody, I have urgent problem now. In my system, Ihas S7 300 CPU 317-2, CP343-1, and 2 PAC3200, I had created 2 connection in NetPro with local port 2000, 2001 and remote portfor PAC3200 is 502, I also created DB for it and call FB for operationModbus TCP (You can see in my Project attachment). I can get almost data from PAC3200 to PLC one by one butI can not read all of 2 PAC3200 to PLC, there are some error, I still read 1 PAC3200, the other is always error with message: A008, A009, or A01E. I don't know why and how to solve it, anyone can help me? One more thing,I can not read these value: Active Energy, Apparent Energy,..(it was defined in PAC3200 manual thatregistersare DOUBLE,those're not FLOAT,They are always W#16#FFFFFFFF, pls help mehow to read itin PLC? Hope to hear from you soon, TuanNA. AttachmentNewhw3.zip (695 Downloads) |
8/20/2009 9:47 AM | |
Posts: 54 Rating:
|
Picture of error |
8/20/2009 10:34 AM | |
Posts: 15 Rating:
|
Hello anhtuan_ntc i checked your program and i did some small changes in OB1 and commented them. according to the error you receive in the second instance, it migth be the the second PAC sends some wrong data. Try the program i attached and let me know if it worked. Good luck Young_Soul AttachmentNewhw3.zip (853 Downloads) |
8/21/2009 10:55 AM | |
Posts: 15 Rating:
|
Hallo anhtuan_nc, The FB200 and Fb201 are not necessary, you can do the same directly in OB100. Ichanged this in your program and called the 2 insatnces of FB100 directly in the OB100. Please verify in the second PAC3200 that the IP address and the portnumber are the same as youconfigured in the second connection. afterward, try the program i attached. i think it should work so. Good luck! Young Soul AttachmentNewhw3_1.zip (807 Downloads) |
8/21/2009 2:00 PM | |
Posts: 54 Rating:
|
Hi Young Soul, Thank you very much for your support, I will test it in tomorrow morning, hope it will run well. And one more thing pls you help me that: You said in the other thread for me: Quote: "in the manual of the PAC2300 , these variable of type double are a 4-Register Variables. so if you want to read them you need to read the whole 4-Register. They are starting in the Offset 801, so to read the first Variable try it like following: Start_address=801; Length= 4; To read 10 of them : Start_address=801; Length= 40; If you wish to diplay hem in the VAT as double and not Hex, right mouse click=> Double" /tf/WW/en/Posts/33363#top Does this mean thatI must to callan other FB100 to read these data? because we can access to DB with maximum value data is DBx.DBDy (DWORD) and when we right-click in VAT to change type of data to display, we have only: HEX, DEC, Binary, Floating,... but not there is the Double datatype? Pls you help me more? Thanks so much, TuanNA. |
Follow us on