Programming Tasks

Hello Guys,

I am looking for 6 examples of commonly used intermediate level programming techniques that can be programmed in between 2-10 networks (rungs, I’m actually aiming for the shorter end of the range). I want things that you as professionals would consider very important to know how to do but aren’t excessively complicated, something like detecting rotation direction using 2 prox sensors or determining speed using a counter, timer and a prox sensor, things like this. All LAD instructions are permissible, including word operations. I have found a few ok examples in textbooks, but I’m looking for examples that are real industry based. Any suggestions would be appreciated.

Thanks!
 
For rotation check which one of the sensors is switched on first and what is switch on after that. That determine rotation. (use a 60 degrees separation)
For speed locate the two sensor in a angle from center of rotation (you know the angle) start a timer when first sensor is switch on and stop the timer after second sensor is switch on. Time elapsed has to be multiplied by a number (i.e. if angle is 60 degrees time elapsed has to be multiplied by 6 to complete the circumference)this time is the time of a revolution, then you can calculate rpm.
You did not mention what plc you´re using, but take into account that my recommendations only work if rotation speed is slow, otherwise it will be a problem.
 
you try with control of two pumps with level setpoints. always first start one with less runtime hours.
(hint: do not allow pump alternation when one is started)

control automatic fine screen with pulse start command. start command must not last for more than duration of one cycle, and EM valve must open in the last 3sec after cleaner ended a cycle. cycle duration is 8s.
 
if you assume that the PLC is the main device - then look at the level of controls available
- basic logic
- advanced internal functions
- Add on PLC dedicated IO
- - analogue - HSC -
- Advanced comms

As Bobb said - what level is intermediate
- the common questions on this site are
- appart from the usual students wanting the answers for classwork
- interfacing methods - E/net - Modbus etc.

WHat level is advance
I have this new VSD - it uses a garbage comms module - how do we get it to work - what does R.T.F.M.
mean

we need to learn this when it is requested of us.
 
Guys, thanks for the responses.

Intermediate is, of course, subjective as BobB pointed out. I guess I should have said basic, that's why I gave a couple examples of the types of things I'm talking about. Nothing involving VFDs, just common programming techniques using bit logic (or words, shift, rotate, word logic) that are necessary for a wide number of industry programs.

The idea behind this is to go over with students some of the more common basic techniques that they should really know how to do because they will be useful for a majority of industry programs they would write. I'm talking about techniques that go beyond basic instructions such as timers/counters and bit logic, but maybe use these elements. Really simple examples would be things like latching and toggling. I'm looking for something slightly more complicated or something like those.

I hope that explains a little better what I am looking for. Again, any advice would be greatly appreciated.
 
I'm talking about techniques that go beyond basic instructions
One method that is very useful, but is not being taught, is how to set up the Start and Stop controls for a PLC-controled motor starter. I see too many jury-rigged latched bits, stop buttons that don't stop the motor except during special conditions, logic with no feedback seal-in contact from the motor starter, and so on. The students that show up here are completely ignorant about motor starter logic.
 
in following lancie's comments.
the expression 'WHAT HAPPENS IF?"
needs to be drilled into studens.
I was working for a company that builds control panels for simple pumping stations. And found that they were happliy putting the E/Stop directly into the PLC input - nothing on the output. - needless to say I corrected this
on a earliey post the comment 'EVIL MONKEY' was used (forgotton who - sorry) basically test for all posible faults - electrically bridge an output (fake a short) and see what happens when an e/stop is pressed
 
1) A bit based sequencer

2) An integer based sequencer

3) Debounce the same signal for both OFF to ON and ON to OFF

4) A toggle that alternates the state of an ouput for every Low to HIgh transition of an input.

5) A running average using 5 values.

6) Using the accumulated value of ONE timer to fire 3 or more outputs on and off at different times.

7) Use the above to make a coded audible alarm (think morse code)

8) Make a seal in starter circuit (like Lancie mentions above) that has a set of "local" start and stop buttons as well as a set of "remote" start and stop buttons. Stipulate that it has to be done with one rung. Stipulate that the physical start button is a NO contact and the Stop button is a NC contact.

9) Create a simple Y=mX+b type scaling using function blocks that can be used to scale and offset for example a value in user units to for example 4-20mA (whatever that works out in bits on the cards you are using). Add limiting code to make sure the output has minimum and maximum bounds as well.

10) A simple set of five alarms that latches the alarm, has an acknowledge, reset, and prevents restarting until it is fixed, and prioritizes the alarms for display.

11) Create a one-shot to behave like a --|P|-- and --|N|--

12) Create a two stage counter. One where once another count reaches its max, another register starts keeping track of the larger ticks. Make sure it works counting both positive and negative.

13) Make a simple 3 consecutive bad parts causes a fault structure. Keeping in mind that one good part will reset the count.

Stipulate with all of the above that --(R)-- and --(S)-- coils may not be used.

I don't know that the above are necessarily the best examples, and I could probably come up with hundreds of them if I kept going, but I can say that if they can't figure out the above or find any of them extrememly difficult they will struggle mightily in the "real" world.
 
3 tips:
A common mistake done by juniors is not using hysteresis on analog limit signals.
Another is comparing directly if real values are equal, not using a 'window'.
Make a simple lowpass filter.

Kalle
 
Guys, thanks for the responses.

Lancie: Already covered.

Iant: exactly, this point is drilled into the students and incorporated into every single programming assignment that they are required to do (and they're only programming real systems we have in-house). A lot of what I cover is directly related to my posts and responses from the members of this board.

Damian: Awesome thank you, this is along the lines of what I was looking for! Most important to me is that they are actually useful for applications and not just textbook tasks for the sake of programming.

Kalle: thanks, looks like a couple topics to make sure I cover.

Very much appreciated!
 
As a rookie myself I feel like I can do several of these but not all. I would love to see some examples of these as I'm sure there are countless ways to do them. Now I'm off to try working on some of these.

Kraken Fan #69
 

Similar Topics

We have some Z-312J board PLCs, there is a project to integrate Cobots, and the PLC program needs to be modified, How can we get the software for...
0
Replies
96
Views
First I would like to thank everyone who helped me back in February to obtain AB6200 software. I have installed it on my laptop within a Dosbox-...
27
Replies
1,194
Views
Hi all, I'm Cosma from Erqos, and our EQSP32 was covered this week in an article on the editorial side of PLCtalk. In our experience, letting an...
107
Replies
4,103
Views
Hello out there, I'm trying to get a head-start with some offline programming of a motion slide component. The customer wants to set a low...
18
Replies
677
Views
Hi Eveyone, Does anyone know a good place to get a better understanding of this seal in step style programming. Maybe a video you can point me...
17
Replies
1,126
Views
Top