You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old June 24th, 2019, 03:35 PM   #16
Ken Roach
Lifetime Supporting Member + Moderator
United States

Ken Roach is offline
 
Ken Roach's Avatar
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 14,739
The problem is that the Micro 800 tags are mapped to Modbus "Output Coil" addresses that begin with the prefix digit "0", rather than Modbus "Holding Registers" that begin with the prefix digit "4".

The test driver (and presumably any other HMI drivers) is configured to use Modbus Function Code 0x03, which is "Read Holding Registers".

The Micro 800 doesn't have any Holding Registers defined, so it replies with a "invalid address" error code.

First, try using Modbus Function Code 0x01 in the Simply Modbus test tool, which will read Coil type data.

Then either configure your HMI to to read "Coil" addresses, or configure the Micro 800 to use "Holding Register" addresses.

EDITS:

Yes, I meant Modbus/TCP on Port 502, not 503.

I wrote my post before seeing the error code when attempting to read Coils, and will take a look at that next.

Last edited by Ken Roach; June 24th, 2019 at 03:39 PM.
  Reply With Quote
Old June 24th, 2019, 03:59 PM   #17
Ken Roach
Lifetime Supporting Member + Moderator
United States

Ken Roach is offline
 
Ken Roach's Avatar
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 14,739
Simply Modbus is a runner-up in bad interface design to RealTerm.

"First Coil" =1 and "minus offset" = 1 results in an actual Coil offset value of zero.

00 2E 00 00 00 06 01 01 00 00 00 06

I believe that the CCW software identifies the first Coil, with offset = 0, as "000001", so that ought to work.

Have you tried a single frame that will read all twelve of the defined Coils, instead of just six of them ?

The Micro 800 really is rejecting this request from the Modbus TCP client, I just can't figure out why.
  Reply With Quote
Old June 24th, 2019, 05:34 PM   #18
damica1
Member
United States

damica1 is offline
 
Join Date: Aug 2015
Location: Illinois
Posts: 695
When you add MQTT Gateway to the network everything become "Tag-Based"!
__________________
David M. Camp

Unlocking the power of IOT in Oil & Gas!
  Reply With Quote
Old June 24th, 2019, 05:59 PM   #19
Ken Roach
Lifetime Supporting Member + Moderator
United States

Ken Roach is offline
 
Ken Roach's Avatar
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 14,739
I respectfully submit that nothing is as simple as Modbus, and that simple solutions should be tried before complex ones.

It's fine that you're enthusiastic about MQTT and edges and gateways and Internets made up of Things. But this is a Modbus addressing mistake.
  Reply With Quote
Old June 24th, 2019, 08:00 PM   #20
damica1
Member
United States

damica1 is offline
 
Join Date: Aug 2015
Location: Illinois
Posts: 695
Ken - Point well taken!
__________________
David M. Camp

Unlocking the power of IOT in Oil & Gas!
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Modbus TCP vs UDP; Modbus TCP vs RTU over RS-485 danw LIVE PLC Questions And Answers 6 March 18th, 2018 07:49 PM
Inductive Automation Ignition Scada package KEN_KACEL LIVE PLC Questions And Answers 8 July 14th, 2014 02:08 AM
Inductive Automation Ignition Issues curlyandshemp LIVE PLC Questions And Answers 0 March 22nd, 2011 08:25 PM
MODBUS TCP gurus cjh LIVE PLC Questions And Answers 1 August 19th, 2004 06:18 AM
Profibus - Modbus TCP translator ewm3 LIVE PLC Questions And Answers 5 May 6th, 2004 11:31 PM


All times are GMT -5. The time now is 03:02 PM.


.