10/24/2019 5:16 PM | |
Joined: 9/27/2006 Last visit: 4/26/2024 Posts: 12257 Rating: (2665) |
Hello; Your screenshot shows that your flowmeter has been configured as an IO Device to your Profinet IO controller, and the Profinet configurator has reserved addresses for your process values. As you stated, the first 4 bytes, as a REAL (IEEE 754 floating-point value, see https://en.wikipedia.org/wiki/IEEE_754), contain the process value you want to read, the 5th byte shows a status identifier you must decode from the E&H manual. So read in the process value (as a peripheral address, if it is outside the input image table range of your CPU) and transfer it to a DB address (for example) that has been defined as a REAL; try this STLcode, for example: L %ID401:P //read peripheral address of volume flow T DB10, DBD0 // Volume flow value as a decimal L %ID405:P T DB10.DBD4 //Mass flow as a decimal ... L%ID441:P T DB10.DBD40 //Velocity_2 as a decimal Hope this helps, Daniel Chartier |
This contribution was helpful to1 thankful Users |
10/24/2019 5:47 PM | |
Joined: 2/5/2019 Last visit: 4/3/2024 Posts: 65 Rating: (0) |
Daniel, Thank you very much! |
My parents named me AutoGen_3114983 after my great-uncle. |
|
10/1/2020 3:12 AM | |
Posts: 2 Rating: (0) |
Have you implemented a block that does this? Could you share it please? |
Follow us on