1/21/2012 10:07 PM | |
Joined: 9/27/2006 Last visit: 9/15/2025 Posts: 12408 Rating:
|
Hello Jicco; I could be wrong, but I have experienced these 5-byte structures before, when dealing with Profibus-PA instruments. The first 4 bytes contained the value, in REAL format (32-byte, floating-point) and the 5th fbyte containing the status of the exchange. I think the discussion that I read on another forum on this same subjectcould give you some clues: http://www.plctalk.net/qanda/showthread.php?t=66064 The suggestion of using SFC14"DPRD-DAT"to read the 5 byte structure consistently seems to be aninteresting solution, if you then split the data into appropriate variables of the right type, Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 1/21/2012 10:13 PM |
|
This contribution was helpful to
1 thankful Users |
1/23/2012 6:41 AM | |
Joined: 10/7/2005 Last visit: 9/14/2025 Posts: 3049 Rating:
|
Hello Jicco I can only agree withdchartierconcerning the "make up" of your 5 Byte long Flowmeter AI value: "The first 4 bytes contained the value, in REAL format (32-byte, floating-point) and the 5th fbyte containing the status of the exchange." The above will hopefully (should) also be stated in the manual for the device, which won't hurt to get hold of. As you are using a CP342-5 as the DP Master, you will of course have to use DP_SEND/DP_RECVfor the I/O access and can not (nor need to) useSFC14. I hope this helps |
Cheers |
|
This contribution was helpful to
2 thankful Users |
Follow us on