Schneider Electric PLC M221 - Detect changes from STOP to START mode on ladder

Paulo Balbino

Member
Join Date
Feb 2023
Location
Abu Dhabi
Posts
7
Hello,

I am trying to detect when the PLC changes from STOP to START mode. This can be considered an edge case scenario, but I would to analyze all potential problems on this approach.

Hardware: PLC Schneider Electric M221CE24R
Programming software: Ecostruxure Machine Expert Basic

Current scenario:

Assuming I have configured the "Fallback Behavior" to "Fallback values"

When the mode from PLC is changed to STOP mode (by manually switching the mode button of the PLC to STOP), all the (Q) outputs are disabled

Then when changed back to RUN it will set everything back to the previous state.



Assuming I have configured the "Fallback Behavior" to "Maintain values"

When the mode switch from PLC is changed to STOP mode, the (Q) outputs stays the same

Then when changed back to RUN it will continue processing the ladder normally



What problem I am trying to solve:

On this project, activation of outputs/relays are related to turning on high power systems. So there must be a delay between enabling each of the outputs (which is implemented on the ladder).

If the PLC during operation is switched to STOP mode, if configured to "Fallback values" when put to RUN again it will simply enable all the outputs (which will enable all the high power systems at the same time)

In case of "Maintain values" it will keep the values during STOP which is ok for some of these outputs (related to high power system activation) but for other parts of the operation for example a motor which is operating since the ladder is not executing no sensor (collision sensor/switches) input will prevent/stop the motor.

If I can have a way to detect this scenario (STOP to RUN mode) on ladder I can handle this case.

Another question: Should I care about this case? This case will only be a concern when someone physically opens the control panel and set the PLC to STOP mode. My main concern is safety.

Thanks a lot
Paulo
 
Most PLC's have a first scan bit that is on for the first scan i.e. from stop to run, this also applies if powered down then back up, so you could use this to do some logic tayloring it to your needs.
I believe it is system bit %S0 is first scan bit.
 
is there no "First Scan" bit in this PLC?

If not, could this be used to make a bespoke first scan bit?

... but for other parts of the operation for example a motor which is operating since the ladder is not executing no sensor (collision sensor/switches) input will prevent/stop the motor. ...

Relying on the PLC with no PLC-external physical collision logic ("hard stop") override sounds like a design problem to me
 
Most PLC's have a first scan bit that is on for the first scan i.e. from stop to run, this also applies if powered down then back up, so you could use this to do some logic tayloring it to your needs.
I believe it is system bit %S0 is first scan bit.

+1.

There is also a warm start bit: %S1.

There is also the %S13 bit which is set to 1 in the first cycle after the controller was started.

See here, bottom of the page.
 
Last edited:

Similar Topics

I am using a M221 PLC (TM221CE24R) which provides me 1 Rs485 port, which I am already using to communicate with a sensor (Rs485/Modbus). My...
Replies
1
Views
749
I need some help with a Schneider Electric TM221CE40R controller. A customer wants me to add a few level switches and do some basic programming...
Replies
3
Views
1,639
Hi. I am, in fact, not an specialist in PLC's but, in my work we remotely access a gear 500 kilometers away and we have observed, after some...
Replies
4
Views
2,531
Hi, Sir anybody know the link for the programming software Schneider electric LMC058. i NEED TO UPLOAD THE PROGRAM FROM LMC058 Motion...
Replies
1
Views
3,274
Dear sir, I've Schneider electric Quantum series hotstandby plc 140cpu67160 and unitypro XL 2.3V and OS loader 2.31V.I've problem that when power...
Replies
1
Views
6,879
Back
Top Bottom