Xiang Posted October 13, 2020 Report Share Posted October 13, 2020 Hello guys, I have pull somes data from power meter to plc by using modbus 485 via visilogic. Power meter data is two 16bits integers (MI), MI0 is + value and MI1 is - value. If I want to combine MI0 and MI1 convert to MF, which function I need to use? I found some people's topic say that need to use Struct function and Float convert function. But I don't know how to use its. Can someones show me example to do that? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted October 13, 2020 MVP 2022 Report Share Posted October 13, 2020 Moved to the correct forum. Quote Link to comment Share on other sites More sharing options...
MVP 2022 kratmel Posted October 13, 2020 MVP 2022 Report Share Posted October 13, 2020 you must see this You must place this two MI value to vector ->>>> This is followed one by one MI. Then use idea posted in this topic. Quote Link to comment Share on other sites More sharing options...
Xiang Posted October 14, 2020 Author Report Share Posted October 14, 2020 10 hours ago, Flex727 said: Moved to the correct forum. Thank you guru Quote Link to comment Share on other sites More sharing options...
Xiang Posted October 14, 2020 Author Report Share Posted October 14, 2020 5 hours ago, kratmel said: you must see this You must place this two MI value to vector ->>>> This is followed one by one MI. Then use idea posted in this topic. I see this topic before. but I have no idea how to use Struct Block, even trough see the help file in program still not understand yet. Can you explain how to use this block. Quote Link to comment Share on other sites More sharing options...
MVP 2022 kratmel Posted October 14, 2020 MVP 2022 Report Share Posted October 14, 2020 SAMPLE project MI_TO_MF.vlp Quote Link to comment Share on other sites More sharing options...
Xiang Posted October 14, 2020 Author Report Share Posted October 14, 2020 8 hours ago, kratmel said: SAMPLE project MI_TO_MF.vlp 222.9 kB · 1 download Thank you kratmel, My problem was solved by using your example. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.