News:

  • June 07, 2026, 05:23:15 AM

Login with username, password and session length

Author Topic: DoMore Logger when using an ECOM100  (Read 12296 times)

Scot

  • Sr. Member
  • ****
  • Posts: 78
DoMore Logger when using an ECOM100
« on: April 07, 2016, 10:40:38 AM »
I am going to need to record emissions data electronically for the state DEP.
My DoMore systems have multiple racks for each PLC system so each processor has it's own isolated network with all of its expansion rack EBC cards and the DoMore alone on their own networks. Each DoMore has an ECOM100 card in the last slot of rack 0. That ECOM100 card is connected to the plant network so the C-More screens can all see each processor. I do this because the plant network is quite busy with 6 C-More screens and 7 DoMore's and 2 PCs for programming (and Peerlink communications between the ECOM cards). The DoMore's connections to their expansion racks need to be rock solid. That's why they are isolated.

I am trying to use the DoMore Logger on one of the PCs to record data but I've discovered that it will only work when connected directly to the DoMore, not through the ECOM card. It does work beautifully connected to the DoMore though.

Is there any way to broadcast the DMLogger data through the ECOM card?

If not I do have a backup plan using Peerlink and the one DoMore that has no expansions and is directly connected to the plant LAN.

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: DoMore Logger when using an ECOM100
« Reply #1 on: April 07, 2016, 10:47:17 AM »
You will have to use the on-board Ethernet port to log.
Maybe Host will eventually be able to allow us to do the fun stuff with ECOM's, but for now in does not work.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: DoMore Logger when using an ECOM100
« Reply #2 on: April 07, 2016, 11:04:46 AM »
Actually, I think it may be possible to get the ECOM100 to send out packets, but I don't remember the magic handshake. It won't be as easy as doing a STREAMOUT to the logger device, but we may be able to get close. Lemme check on it.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: DoMore Logger when using an ECOM100
« Reply #3 on: April 08, 2016, 06:11:51 PM »
I have been informed that you can coax the ECOM100 into sending packets to DMLogger. GregK has it documented and will post the details here shortly.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: DoMore Logger when using an ECOM100
« Reply #4 on: April 18, 2016, 12:13:28 PM »
@Scot: Sorry for such a long delay in getting this to you.

Basically to get the H2-ECOM100 to send to Do-more Logger you have to make it do what we call an RBE (Report By Exception). This is something that was done with the ECOM100 long ago, way before Do-more. It was done to allow the ECOM100 to send raw data to a PC. To get it to do that you have to set a block of memory in Do-more and form the IP header and raw data and then tell the ECOM100 to send this as raw data. That is accomplished by making the ECOM100 utilize a special Module ID (90). The old RBE document is located here (http://www.hosteng.com/HW-Products/ECOM/Ecom_ReportByException.zip), just keep in mind it was written for DL-PLCs so the V-memory in the charts is in octal not decimal like you will be using in Do-more. If all you want to do is send raw data to Do-more Logger, then there really is no need to read that old RBE document. Here's an example of what to do.

1. On the H2-ECOM100, turn dipswitch #7 ON. This makes Module ID 90 special.
2. Based on the RBE document, you'd setup a memory block in Do-more (I chose Do-more V-memory) as shown in the Data View pic. Notice that the raw data begins at V16 and I chose to send 3 words (6 bytes) of ASCII 0x41 (the letter "A"). The header is broken down into the following parts:

  • V0 (Version) = 0
  • V1 (Function) = 1 (Comm Function SEND)
  • V2 (Media) = 1 (Ethernet 802.2; irrelevant)
  • V3 (Protocol) = 1 (UDP/IP)
  • V4 (Flags) = 1 (ACK is not required)
  • V5-7 (zero) = 0 (reserved)
  • V8-10 (PC's Ethernet Address) = 90.b1.1c.66.d3.8b. This is my PC's MAC address. You can see your PC's Ethernet Address by going to a command prompt and typing in "ipconfig /all" (without the quotes) and pressing <ENTER>.
  • V11-12 (PC's IP Address) = 10.0.0.171. This is my PC's IP Address. You can see yours by going to command prompt and typing in "ipconfig"
  • V13 (UDP Port #) = 0x7272 for DMLoader
  • V14-15 (zero) = 0 (reserved)
  • V16-18 = actual data you want to send

3. Program a DLWX and use Module ID 90 and send the whole block. You'll have to count the BYTES (not words) and enter that in as the "Number of Bytes" parameter in the DLWX. You can see my ladder example in the attached pic.
4. Start DMLogger and execute the ladders. You can see my result in the DMLogger pic.

The first thing to note is you got more than the raw data. The string in front of the data is the Host Application Protocol stuff. You'll have to ignore this... it will be the first 13 bytes (characters).



« Last Edit: April 18, 2016, 03:19:58 PM by Greg »
There are two types of people in the world; those that can extrapolate from incomplete data sets.

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: DoMore Logger when using an ECOM100
« Reply #5 on: April 18, 2016, 12:22:54 PM »
There is an older application called Viewer.EXE (included in that RBE zip file download) that will listen to UDP Port # 0x7777. It's only advantage over the Do-more Logger is that it strips off the "HAP" stuff in front of the raw data and just displays the raw data. And, of course, you'd have to change V13 from 0x7272 to 0x7777 to send it to that application instead of Do-more Logger. Picture is attached.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

Scot

  • Sr. Member
  • ****
  • Posts: 78
Re: DoMore Logger when using an ECOM100
« Reply #6 on: May 05, 2016, 04:43:18 PM »
Thanks for the help. I'm sure we'll figure something out with this.