Posted 15 Aug 2021 Dear All. I have the issued with NX1P2 when read data from Modbus RTU. the Slave data using 2 INT for Real data. but in the Sysmac Studio I get the data is OK, 2 INT but can not convert to Real data. Can you pls help me to solve this issued. also I want to convert from Real to 2 INT to send the setting to salve. Many thanks. Share this post Link to post Share on other sites
Posted 16 Aug 2021 Have a look at the CopyRealToDword and CopyDwordToReal functions. You may need to do a byte swap, depending on the byte order Modbus is communicating. Share this post Link to post Share on other sites
Posted 17 Aug 2021 Depending on the manufacturer I have seen REALs come in either byte swapped or completely backwards. If a straight CopyDwordToReal doesn't work use ToAryByte and shuffle things around then use AryByteTo and move 4 bytes into a REAL. Share this post Link to post Share on other sites
Posted 17 Aug 2021 1 hour ago, photovoltaic said: Depending on the manufacturer I have seen REALs come in either byte swapped or completely backwards. If a straight CopyDwordToReal doesn't work use ToAryByte and shuffle things around then use AryByteTo and move 4 bytes into a REAL. Dear Friend. I just do same your advise and it work OK for me. and I build 2 Block AOI for easy to using. Many thanks, Share this post Link to post Share on other sites