News:

  • April 17, 2024, 11:00:33 PM

Login with username, password and session length

Author Topic: Slave offline dropped PLC out of run mode  (Read 3757 times)

davidbgtx

  • Hero Member
  • *****
  • Posts: 215
  • Host be the Most
Slave offline dropped PLC out of run mode
« on: December 07, 2017, 10:05:00 AM »
If a slave is powered off and dst51 has a "3" for the value, should the CPU drop out of run mode (which is desireable)?
and if so can I clear dst51 and/or put cpu back into run mode from the program logic (say from my HMI)so the operator can reset without opening the panel?
I turned power back on to slave and cycled power to CPU, but cpu did not go back into run mode (switch set to term)
« Last Edit: December 07, 2017, 10:13:50 AM by davidbgtx »

Evilbeard

  • Hero Member
  • *****
  • Posts: 160
Re: Slave offline dropped PLC out of run mode
« Reply #1 on: December 07, 2017, 10:46:56 AM »
If a slave is powered off and dst51 has a "3" for the value, should the CPU drop out of run mode (which is desireable)?
and if so can I clear dst51 and/or put cpu back into run mode from the program logic (say from my HMI)so the operator can reset without opening the panel?
I turned power back on to slave and cycled power to CPU, but cpu did not go back into run mode (switch set to term)

Not with the program.


franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3658
    • Host Engineering
Re: Slave offline dropped PLC out of run mode
« Reply #2 on: December 07, 2017, 10:59:53 AM »
The default behavior is for missing I/O to cause a FATAL error (typically desired, as you stated).  However, if you want to switch it back to RUN, you have to use Designer w/Mode switch in Term position, or possibly powercycle the PLC with the Mode switch being in RUN position, but this has its own set of concerns (e.g. cannot change mode via Designer software until you move the switch back to TERM).

Another possibility is to change the missing I/O condition to be NON-FATAL error.  This can be done as part of your System Configuration.  HOWEVER, YOU ARE RESPONSIBLE FOR WRITING LOGIC THAT DETECTS THIS ERROR CONDITION AND HAVE YOUR PROGRAM BEHAVE ACCORDINGLY.

The PLC will stay in RUN mode and continue to run WITH FAILED I/O.  I do not know if this is acceptable for your application.  Even if it is, you have to realize that there can be different causes for failed I/O, but the PLC cannot distinguish between a bad comm cable, failed Ethernet switch, or bad hardware, or ...

Regardless, failed I/O is a critical situation and must be handled properly and safely.

Remember that minimizing or eliminating the failed I/O event would be the safest/best solution.

davidbgtx

  • Hero Member
  • *****
  • Posts: 215
  • Host be the Most
Re: Slave offline dropped PLC out of run mode
« Reply #3 on: December 07, 2017, 11:17:33 AM »
^Thanks to all.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 5984
  • Yes Pinky, Do-more will control the world!
Re: Slave offline dropped PLC out of run mode
« Reply #4 on: December 07, 2017, 11:19:10 AM »
You can put the switch in RUN to get the behavior you are wanting, but TERM remembers the last state. No way to affect RUN/STOP from an HMI...not sure how I feel about that.
"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

Mike Nash

  • Hero Member
  • *****
  • Posts: 636
Re: Slave offline dropped PLC out of run mode
« Reply #5 on: December 07, 2017, 11:21:58 AM »
You might be interested in this thread on AD regarding a similar situation.

https://forum.automationdirect.com/forum/general-applications/104135-domore-occasionally-starts-in-program-mode

Evilbeard

  • Hero Member
  • *****
  • Posts: 160
Re: Slave offline dropped PLC out of run mode
« Reply #6 on: December 07, 2017, 01:33:18 PM »
You can put the switch in RUN to get the behavior you are wanting, but TERM remembers the last state. No way to affect RUN/STOP from an HMI...not sure how I feel about that.

We're far too conservative as Engineers. Let's put the top down and put the petal to the metal sometimes! :P

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3558
  • Darth Ladder
Re: Slave offline dropped PLC out of run mode
« Reply #7 on: December 07, 2017, 01:36:04 PM »
Anything safety-critical should be hardwired anyway, right?
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 5984
  • Yes Pinky, Do-more will control the world!
Re: Slave offline dropped PLC out of run mode
« Reply #8 on: December 07, 2017, 03:02:20 PM »
Anything safety-critical should be hardwired anyway, right?

Please.
"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

davidbgtx

  • Hero Member
  • *****
  • Posts: 215
  • Host be the Most
Re: Slave offline dropped PLC out of run mode
« Reply #9 on: December 08, 2017, 02:46:58 PM »
The slave is only a washer to clean wire on the fabricating line (not safety critical), sooo I set slave to not drop cpu out of run and cpu is allowed to boot into run without slave online. BUT I do program line to stop and alarm if slave goes offline. It all started because maintenance didn't want to walk to other end of the line to shut down power to the panel with cpu, to clean the washer, only killing main power on the washer. The things I do to save someone else a few steps once a week. Thanks everybody

Evilbeard

  • Hero Member
  • *****
  • Posts: 160
Re: Slave offline dropped PLC out of run mode
« Reply #10 on: December 08, 2017, 05:25:58 PM »
The slave is only a washer to clean wire on the fabricating line (not safety critical), sooo I set slave to not drop cpu out of run and cpu is allowed to boot into run without slave online. BUT I do program line to stop and alarm if slave goes offline. It all started because maintenance didn't want to walk to other end of the line to shut down power to the panel with cpu, to clean the washer, only killing main power on the washer. The things I do to save someone else a few steps once a week. Thanks everybody

Savages.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 5984
  • Yes Pinky, Do-more will control the world!
Re: Slave offline dropped PLC out of run mode
« Reply #11 on: December 08, 2017, 05:43:34 PM »
The slave is only a washer to clean wire on the fabricating line (not safety critical), sooo I set slave to not drop cpu out of run and cpu is allowed to boot into run without slave online. BUT I do program line to stop and alarm if slave goes offline. It all started because maintenance didn't want to walk to other end of the line to shut down power to the panel with cpu, to clean the washer, only killing main power on the washer. The things I do to save someone else a few steps once a week. Thanks everybody

Savages.

Ambitiously lazy. The hallmark of a good engineer.
"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

deep6ixed

  • Hero Member
  • *****
  • Posts: 105
Re: Slave offline dropped PLC out of run mode
« Reply #12 on: December 11, 2017, 06:27:48 AM »
As the maintenance supervisor in our plant, we actually incorporate laziness into our safety designs now.  We had a compliance issue with lockouts where operators wouldn't lock a part of a machine out because the lockout point for a section of the machine was 150ft away from the area where they had to work and it took longer to walk down to lock out then it took to do the job. 

Several meetings later, after the only real discussions were about how to write people up for this, I simply asked if I could add another lockout to where the operator station was (and where the power for the other section of the machine came from).

$100 switch and 100% compliance now...  Now all the safety guys ask questions about things like this with every safety upgrade.