(1)| 10/31/2023 10:43 AM | |
|
Joined: 12/20/2021 Last visit: 9/5/2025 Posts: 24 Rating:
|
Hi there, I'm using an IO-Link 0-10 Volt converter that returns 2 bytes (Low and High byte). The conversion range is 0-10 Volt --> 0-65535. First I concatenate the two byte usign a byte merkers and move to a DB as word merker. Secondo a wrote a FB to convert the digital value into the analog one usign the furmula: VAnalog= (10 V * Digital) / 65535 AttachmentScreenshots.zip (269 Downloads) |
Last edited by: Jen_Moderator at: 10/31/2023 13:50:21File added from closed topic. |
|
| 10/31/2023 10:55 AM | |
|
Joined: 12/20/2021 Last visit: 9/5/2025 Posts: 24 Rating:
|
Hi Stefan, thank you very much! Problem solved!
|
| 10/31/2023 11:45 AM | |
|
Joined: 12/20/2021 Last visit: 9/5/2025 Posts: 24 Rating:
|
Hi Frink, is there a way to round the output to two devimal point? Thank ypou very much for your time.
|
| 10/31/2023 12:36 PM | |
|
Joined: 5/6/2022 Last visit: 11/27/2025 Posts: 589 Rating:
|
Hi fedex03, I am going to share with you below a link to a video created by Siemens that may be of interest and may help you in the configuration you mention in the post. I think you might find it interesting from minute 4.30 onwards. I recommend you take a look at it. I hope it can help you. Best regards!
|
|
If this Information really helps, you could use the Rate function |
|
Follow us on