Posted 4 Mar 2023 Hi I need to get data from a modbus rtu device to Omron PLC NJ501. I am using SCU32 or SCU42 as serial gateway. I have tried using sendcmd function, but I am having problrm with the DstNetAdr Here's my setup Cpu NJ501 1400 ID262 OD263 AD041 V1 EIP21 SCU32 My sendcmd parameter DstNetAdr.NetNo:=USINT#0 DstNetAdr.NodeNo:=USINT#4 DstNetAdr.UnitNo:=BYTE#16#84 senddata array 02 03 00 6A 00 02 E4 24 Anyone has any idea on how to do it? Share this post Link to post Share on other sites
Posted 5 Mar 2023 You're using FINS commands not Modbus commands. For Modbus you'll need to load a Modbus protocol into the card with CX-Protocol and use the Protocol Macro instructions. Share this post Link to post Share on other sites
Posted 5 Mar 2023 20 hours ago, photovoltaic said: You're using FINS commands not Modbus commands. For Modbus you'll need to load a Modbus protocol into the card with CX-Protocol and use the Protocol Macro instructions. Hi Thank you for replying, I really have no idea how to load the protocol with cx protocol. If it's not a bother, could you teach me how? This is my second time using Sysmac Studio. Can't sendcmd be used to send any serial command? I set my scu as serial gateway. Share this post Link to post Share on other sites
Posted 6 Mar 2023 Sent you an example program with the SCU and an NJ Share this post Link to post Share on other sites
Posted 7 Mar 2023 20 hours ago, photovoltaic said: Sent you an example program with the SCU and an NJ Thanks a lot @photovoltaic I will try your solution Share this post Link to post Share on other sites
Posted 13 Mar 2023 Any function block for using NJ with SCU card for modbus rtu ? Share this post Link to post Share on other sites