PLC Software Trap?

Longhorn

Member
Join Date
Jul 2008
Location
Scotland
Posts
250
Just an off the cuff question. Ive heard of some programmers maybe experiencing an intermittant or random problem in a process, when they cant narrow it down to a single item causing the problem they sometimes create a "trap" so they can see whats causing the problem. I just wondered how you guys go about doing this, i suppose one simple way would be to set a bit or pass a value when a condition is met.

Thanks

LH
 
What I do, and I'm sure it's pretty much the same everywhere, is use Counters, Latch, Set, RTOs, etc. Anything that is not going to automatically reset itself once false.

Say I dunno what momentary bit is causing the fault to happen, because by the time I get to check it, it's already happened and gone. I just have the bits that I think the problem is each latch (Set) a seperate bit. This lets me see that yes, that bit was true during this time period, even if it was only true for 10milli seconds.

I'll use counters in the program to catch the number of times something happens during an offshift, since operators rarely communicate their issues across shifts, and it's easier for me to have the PLC tell me exactly how many times something occured.

I'll use retentative timers if I feel like knowing for how long certain things are happening, like an analog input inexplicably falling to 0, even though everything appears fine, for only a few milliseconds.
 
there are different ways to stop program execution in right condition. the most equipment out there is run by some sort of sequencer and this makes it very easy to set the trap and create step mode for example.
 
What I've done in the past is to write a little block of code that grabs and stores a set of data on the rising edge of a trigger bit. The data was stored as a record in a data block; when a new record was added, older records were rippled down and the oldest record discarded. This method can be left running and the results can be examined at leasure. I last used this system to diagnose a problem by modem with a machine 4000 miles away.

Nick
 
As stated above counters are great ways to trap events or bits that don't stay on long enough for the screen to refresh.
Sometimes I add rungs that are self latching with no reset, this lets me monitor those intermittent problems and I can check back later and see if that rung ever became true.
Just use logical thinking as to what might be happening and then try and figure out out to catch it.
 
Dido all of the above plus I've used CLx trends to capture errors.
The most complex of these had a trigger programmed and stored trend values several seconds before the error occurred.

Steve.
 
Quick Trap I used Yesteday

so I could do some fabricating instead of chasing wire

Quick_Trap_2.JPG
 
Last edited:

Similar Topics

Hello, As part of our project, we are using an M241 controller. This controller interfaces with an industrial computer and a router via a switch...
Replies
2
Views
76
I have downloaded COMMGR 1.15 software on my laptop. After downloading it works. When I stop and start the program again it doesn't work. It is...
Replies
2
Views
138
Hi everyone, I have a small project for an industrial site entry gate system. It's running on an old Melsec PLC, and I have a new Shihlin PLC...
Replies
1
Views
127
Hi All, How do I set a password to PLC using Proficy machine software 9.5-9.8 or some other way? I as using Emerson CPE305 CPU. Thanks.
Replies
2
Views
315
Hi everyone id like to start by saying im not a PLC programmer so my technical terminology is limited. i would like advice on what software is...
Replies
4
Views
293
Back
Top Bottom