Jump to content

Help sending Modbus ASCII command by serial gateway


Recommended Posts

Posted
I am trying to replicate a Modbus ASCII command I can send through my Modbus simulator with the CMND function block. My setup: CJ2M CPU 34 with SCU41-V1 v1.3 unit #0. I have setup the SCU port 2 to User settings, Serial gateway, 9600, 1 stopbit no parity. According to the function block PDF I think I have setup the parameters correctly, and if I monitor the command word data it also looks ok. Not sure if I have the no. of bytes parameters setup correctly, I was not sure if I should also include the FINS header and command. All I get is error 0401: Command not supported... Any suggestions / help welcome! Modbus ASCII by CMND instruction.pdf _CPU012_SendCommand.pdf

Posted
Serial Gateway only passes Modbus commands from one serial port to another serial port transparently. You cannot originate a Modbus CMND from a PLC memory map. PMCR should be able to help you with this.
Posted
Hi Jay, I know questioning you is like doubting the earth is round, but are you sure? Because I turned to our Omron distributor to ask if they had a Procotol Macro for Modbus ASCII and they suggested I would use CMND for this. And if I read this from manual W336, it looks like the Modbus command is originated from the PLC...
Posted
I concede. Need to catch up on my manual reading. Send a private message to PMCR. I'm sure he can help you out.
Posted
I got a call from my Omron helpdesk, and apparantly I have set the SCU unit identifier incorrect, they could confirm it should work when this is set correctly. I will test again net week and post my findings!
Posted
When sending a FINS command to a specific port on an SCU card, you use the following formula for the 'Unit' destination. Port 1: 128 + (4 * SCU Unit dial) Port 2: 129 + (4 * SCU Unit dial).
Posted
Thanks PMCR, after changing the SCU unit/port identifier it works like a charm!

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
×
×
  • Create New...