News:

  • June 10, 2026, 06:51:33 AM

Login with username, password and session length

Author Topic: HMI com error  (Read 18374 times)

ssutton

  • Newbie
  • *
  • Posts: 8
HMI com error
« on: April 05, 2016, 11:22:20 AM »
I have a EA1-S6ML panel connected to the serial port on a H2-DM1E PLC. I am using DV-1000CBL to connect the 2 devices. I keep getting a PLC timeout on the HMI. It does not do this all the time, it may run fine for 10-15 minutes or so and work perfectly. Then all the sudden the HMI will seem to freeze and then a timeout error follows. I have tried 2 different cables and HMI's. The HMI's have been configured using C-More micro software version 3.61 and I have updated the firmware on both screens. The PLC has been configured and using Do-More 1.4.3 and the firmware was updated.

The Do-More port:
Do-More Programming
Baud 19200
Parity None
Stop bits 1
Data Bits 8
Transmit control Unconditional
RTS control off

The HMI port:
Automation Direct Do-More Serial
Baud 19200
Parity None
Stop bits 1
Data bits 8
Timeout 40
Poll time 0
memory version 1

I have tried various baud rates. The faster the baud rate the more frequently the error occurs. But even down to 9600 I still and getting errors every few minutes. Any thoughts, AD support suggested updating the firmware which I did a couple of days a ago.

Thanks,
Scott Sutton

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: HMI com error
« Reply #1 on: April 05, 2016, 12:27:58 PM »
I don't know anything about the comm protocol implementation, but 40ms timeout seems way too short for 19200. That's only about 80 character times. It should be plenty for the PLC to turn around, but if the protocol handler is waiting until all expected data is in the buffer before doing anything, 40ms won't be long enough for anything non-trivial.
"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

ssutton

  • Newbie
  • *
  • Posts: 8
Re: HMI com error
« Reply #2 on: April 05, 2016, 01:58:25 PM »
The timeout is at its maximum at 40, the software will not allow me to configure it for any longer?

Thanks for the response.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: HMI com error
« Reply #3 on: April 05, 2016, 02:01:12 PM »
40ms is the longest for serial?!? If that's milliseconds, that seems too short. Need to ask around a bit...
"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

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: HMI com error
« Reply #4 on: April 05, 2016, 02:10:25 PM »
The '40' is a multiplier times the base timeout of 100 ms.
An output is a PLC's way of getting its inputs to change.

ssutton

  • Newbie
  • *
  • Posts: 8
Re: HMI com error
« Reply #5 on: April 05, 2016, 02:13:27 PM »
Yes, Carlton is correct I just confirmed it. So it should have plenty of time. Still original issue persist.

Scott

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: HMI com error
« Reply #6 on: April 05, 2016, 04:10:06 PM »
Like I said, I know nothing about the implementation. ;)

Yes, that is plenty of time, in fact, I bet your display "freezes" for 4 seconds. It won't cure the issue, but reducing that to 10 or less, maybe even 6, will greatly reduce the freeze while still providing a reasonable timeout.

Grounding, noise, and cable placement/quality are responsible for 99% of serial comms issues.
"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

Dean

  • Sr. Member
  • ****
  • Posts: 73
Re: HMI com error
« Reply #7 on: April 06, 2016, 12:25:43 PM »
Quote
Grounding, noise, and cable placement/quality are responsible for 99% of serial comms issues.

Just got a Harvard education on this topic myself. Have essentially the same setup as described. I started getting steady Read errors on the HMI. Guess what, the ground lug on the PLC and the ground wire on a RJ12 RS232 pigtail were connected but not super secure, (certainly not as tight as the day I installed them). Tightened them up, and viola! not a single comm error since. Took about 3 months for them to loosen up enough to start causing problems.
10 Lather
20 Rinse
30 GOTO 10

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: HMI com error
« Reply #8 on: April 06, 2016, 12:30:57 PM »
I have had Serial Comm issues that were actually grounding issues in my cushy-office here at Host Engineering.

Hey, I'm a bit-weenie (although I did take Physics III (Electricity and Magnetism) in college as an elective; and I do stay at a Holiday Inn Express whenever I visit Automation Direct ;D).

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: HMI com error
« Reply #9 on: April 06, 2016, 01:03:03 PM »
Just got a Harvard education on this topic myself. Have essentially the same setup as described. I started getting steady Read errors on the HMI. Guess what, the ground lug on the PLC and the ground wire on a RJ12 RS232 pigtail were connected but not super secure, (certainly not as tight as the day I installed them). Tightened them up, and viola! not a single comm error since. Took about 3 months for them to loosen up enough to start causing problems.

I have an LED light bulb in a lamp in my family room that will honest to goodness completely unscrew itself. Takes weeks, but eventually while walking across the floor or flopping on the couch the lamp will blink, and upon checking the bulb, it has removed itself. Spring terminals are not well loved in automation, but don't suffer from those issues.
"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

ssutton

  • Newbie
  • *
  • Posts: 8
Re: HMI com error
« Reply #10 on: April 07, 2016, 10:45:26 AM »
All good thoughts and much appreciated! Now suspecting that this is a noise issue I unplugged the 24VDC power cable on the back of the HMI and let it operate directly in low power mode from the 5 volts on the port. Panel is dim as expected but no more comm errors. Will be scoping the 24 volts to see what is going on. Normally I bond the 24 volt common to earth ground on the machine chassis. Is this advisable? In the past this has solved some noise issues but I guess it all depends on the quality of the earth ground coming to the machine.

Scott

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: HMI com error
« Reply #11 on: April 07, 2016, 11:27:20 AM »
I would bond the 0V leg of the 24 VDC supply. I would only let it float when there was a specific reason for doing so.
Circumstances don't determine who we are, they only reveal it.

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

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: HMI com error
« Reply #12 on: April 07, 2016, 05:51:56 PM »
Yes, you should always ground the 24VDC return unless specified otherwise (and even in that case I'd dedicate a separate supply for the equipment that wanted floating and keep the rest properly grounded, plus asking if you could ground through a resistor or something).  Electronics can be damaged by a high common mode voltage on the DC power.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.