Jump to content

Recommended Posts

Posted

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?


Posted

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.

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...