11/19/2020 12:36 AM | |
Posts: 3 Rating:
|
Hi , I would like to know if there is a way to show a Dword (e.g.) VD 100 (from modbus) in a LOGO TDE? I mean , I have in VD 100 = 974389 and i need to show 97,4 %. Thank u in advance, Sorry but I dont know how can I start A new post.:( ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 11/19/2020 10:33:21New subject after splitting |
|
11/19/2020 11:12 AM | |
Joined: 2/22/2008 Last visit: 11/30/2023 Posts: 2698 Rating:
|
If you have enough resources in your Logo 8 program, then you can use a trick. You can sort the bits with network inputs and outputs to devide your number by 2 / 4 / 8 / 16 / 32 and so on to get a value max. 32767 for e.g. 100%. After this you can scale this value with the arithmetic to get the percent value as you want. If you are interested for an example, then tell us, which is the max, value you need, e.g. 100.0% ? Regards, Scorp P.S. See example in attachment for possible solutions. AttachmentDINT converter1.zip (224 Downloads) |
Last edited by: Scorp at: 11/19/2020 12:12:40 |
|
11/19/2020 12:19 PM | |
Joined: 10/1/2018 Last visit: 7/10/2022 Posts: 66 Rating:
|
Here is the solution to your problem. Although the Scorp version is more elegant) AttachmentDWORD on a sreen.zip (238 Downloads) |
Last edited by: Vsevolod1 at: 11/19/2020 12:40:37 |
|
11/19/2020 4:09 PM | |
Posts: 3 Rating:
|
Hi, Thanks all of you for your soon answer, I will try your solutions and I will let you know how it works. Best Regards. Lina FJ |
Follow us on