jackleggs

NJ501 SCU32/42 Modbus RTU

6 posts in this topic

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

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
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

Sent you an example program with the SCU and an NJ

Share this post


Link to post
Share on other sites
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

Any function block for using NJ with SCU card for modbus rtu ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now