SLC500 sequence instructions

chrisflint

Member
Join Date
Aug 2005
Location
Norfolk
Posts
22
Hi all,
I can do PID instructions but am having difficulty with trying to program an 8 output sequencer. What i am trying to do is run each output for 6 seconds one after the other and then keep working in a continues loop i.e. 0>1>2>3>4>5>6>7>0>1>2 and so on. I would be most gratefull if anyone could assist me with the instructions or even some sample code. Many thanks Chris
 
another way to skin the cat ...

Greetings Chris ...



while the SQO (Sequencer Output) instruction mentioned by my distinguished colleague Bob_O might be exactly what you were looking for, attached below is another programming technique that you might find helpful ...



it’s sort of a “cookie cutter” approach that I’ve used to help beginner programmers several times in the past ... usually this works well for someone who has invented a widget-maker in his home workshop and just wants to sequence the thing from one well-defined step to the next - based solely on elapsed time ... suddenly he finds that the PLC everyone recommended to control his new-fangled mousetrap isn’t nearly as “user friendly” as the salesman made it sound ... back in my working-for-a-distributor days, I was able to turn several irate customers into satisfied programmers in less than an hour by guiding them through this simple approach ...



the example I’ve posted only has three steps, but once you see how it’s done, it’s very easy to cut and paste in as many additional steps as you desire ...



notice that the various functions (time, transfer, control) are kept in separate sections ... keeping the same pattern helps makes it easy to add in more steps ...



many programmers would tend to use only one timer - with comparison instructions to control the duration of each individual step ... personally I’ve found that timers are cheap - and using a separate one for each step makes it very easy for a technician with only limited knowledge of ladder logic to go in and tweak the amount of time required for each individual step ...



yes, there are more elegant ways of writing the program - but this way is simple and straightforward enough for use in many cases where the personnel who are maintaining and adjusting the equipment are less familiar with PLCs ...



along the same lines of keeping things simple, notice that I've started numbering with T4:1 and bit B3/1 for Step ONE - and used T4:2 and B3/2 for Step TWO ... etc. ... if you start out numbering with the more customary T4:0 and B3/0 as most programmers do, you'll set up a trap for many technicians with limited PLC knowledge who will "miss it by one" ... for example, they'll often try to adjust the time duration of Step 2 - by mistakenly tweaking the value of timer T4:1 ... yes, they should know better - but skipping one timer, etc. while writing the program will often make things a lot easier for the guys in the field ... like I said, timers are cheap ... downtime is expensive ... most humans (at least the non-programming variety) usually start counting the "steps" of operation at ONE and not at ZERO ...




hope this helps ...
 
Last edited:
AB's sequencers are a bit cryptic, IMHO.

A not inconsiderable plus of Ron's approach is that six months down the road when YOU are asked to expand or modify logic built on Ron's example, it's a lot easier to get back up to speed about how to do it.

.02
 
Hi Ron,
Many thanks for your idea's and attached code.
I will try and program this over the weekend to evaluate it.
I take on board about Bob's suggestion and feel he may be right as already it looks as if there are mods gonna happen, i.e minimum/maximum timers, also stepping to next output if a tempertaure differential no longer exists.

Regards Chris


Ron Beaufort said:
Greetings Chris ...



while the SQO (Sequencer Output) instruction mentioned by my distinguished colleague Bob_O might be exactly what you were looking for, attached below is another programming technique that you might find helpful ...



it’s sort of a “cookie cutter” approach that I’ve used to help beginner programmers several times in the past ... usually this works well for someone who has invented a widget-maker in his home workshop and just wants to sequence the thing from one well-defined step to the next - based solely on elapsed time ... suddenly he finds that the PLC everyone recommended to control his new-fangled mousetrap isn’t nearly as “user friendly” as the salesman made it sound ... back in my working-for-a-distributor days, I was able to turn several irate customers into satisfied programmers in less than an hour by guiding them through this simple approach ...



the example I’ve posted only has three steps, but once you see how it’s done, it’s very easy to cut and paste in as many additional steps as you desire ...



notice that the various functions (time, transfer, control) are kept in separate sections ... keeping the same pattern helps makes it easy to add in more steps ...



many programmers would tend to use only one timer - with comparison instructions to control the duration of each individual step ... personally I’ve found that timers are cheap - and using a separate one for each step makes it very easy for a technician with only limited knowledge of ladder logic to go in and tweak the amount of time required for each individual step ...



yes, there are more elegant ways of writing the program - but this way is simple and straightforward enough for use in many cases where the personnel who are maintaining and adjusting the equipment are less familiar with PLCs ...



along the same lines of keeping things simple, notice that I've started numbering with T4:1 and bit B3/1 for Step ONE - and used T4:2 and B3/2 for Step TWO ... etc. ... if you start out numbering with the more customary T4:0 and B3/0 as most programmers do, you'll set up a trap for many technicians with limited PLC knowledge who will "miss it by one" ... for example, they'll often try to adjust the time duration of Step 2 - by mistakenly tweaking the value of timer T4:1 ... yes, they should know better - but skipping one timer, etc. while writing the program will often make things a lot easier for the guys in the field ... like I said, timers are cheap ... downtime is expensive ... most humans (at least the non-programming variety) usually start counting the "steps" of operation at ONE and not at ZERO ...




hope this helps ...
 
Hi Bob,
Thanks for your reply and link. Already they are looking for mods like minimum/maximum timers, also stepping to next output if a tempertaure differential no longer exists. so a sequencer may be best. problem is, i know nothing about sequencers. if you have any *.rss code or ladder logic available so i can take a good look at the nuts and bolts i would be most grateful.

Regards Chris


Bob O said:
Look in this thread and you may jump to Ron's post #10 and see if that helps.
http://www.plctalk.net/qanda/showthread.php?t=731&highlight=sequencer
 

Similar Topics

I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
10
Views
248
can the slc500 5/05 send a email and text over Ethernet ?
Replies
3
Views
185
Hello, did anybody know, if there exist an converting cable like the1492-CM1746-M01 (for an 1746-IB16 to an 5069-IB16), for an 1746-HSCE to an...
Replies
3
Views
388
Customer is buying several spare 504 CPU's to have one handy when there's an issue with the ones in operation. Having them on the shelf for years...
Replies
15
Views
2,826
You have to go offline to create the 'Trend' but do you have to download the program to go back Online with the Trend ?
Replies
0
Views
341
Back
Top Bottom