![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|
#1 |
|
Member
|
My last project in this PLC-I class is to utilize the
SQO instruction for a car wash sequence. I finally got the job done, but I had a problem with the RSLogic-500 (SQO) instruction set up. Below is the B3:0 file I used for the stepper file.
The problem I had is this; On start up of the program, the sequencer would start at the “Start” word (B3:0). After it stepped through step-4, it would not return to the start word but jump right to the step-1 word. I finally got it to run by adding another start word before step-1. Is this just a glitch in the program or did I do something wrong? |
|
|
|
#2 |
|
Member
![]() Join Date: Apr 2002
Posts: 3,170
|
Your sequencer DOES return to START... How else can it get to Step-1?
I suspect that you are causing the reset properly, but at the same time, I think you are "Stepping" the sequencer. This would cause a "Reset-to-Start" and a "Step". Take a closer look at the control code you are using for Step-Control. Make sure that the step-control-code is inactive until you want to step. |
|
|
|
#3 |
|
Member
|
Terry, I don’t fully understand what you are referring to.
Here is how I set up the SQO.
|
|
|
|
#4 |
|
Lifetime Supporting Member
|
Are you saying that Outputs 12,13,14, and 15 Do not flash off?
Do Outputs 0,1,2,& 3 go on once and then never go on again? I think that maybe you just don't see it. Do you have a timer running concurrent? |
|
|
|
#5 | |
|
Member
![]() Join Date: Jun 2003
Posts: 121
|
Re: SQO instruction
Quote:
Length is the number of steps of the sequencer file starting at position 1. Maximum = 255 words (104 words when using the MicroLogix controller). Position 0 is the startup position. The instruction resets (wraps) to position 1 at each cycle completion. For example, placing a 6 in this parameter means 6 elements beyond the starting address (total of 7 elements). A length value that points past the end of the programmed file causes a runtime major error to occur. |
|
|
|
|
#6 |
|
Member
|
Gbradley,
No GB, I’m not. What was happening, was when I loaded the program and set it to run, no lights were on at the start. (The outputs are lights) When I pushed the input button once, it step to step-1 and turned on lights 1,2,3 and 4. Pushing the input again turned off the first set of light and turned on 5,6,7, and 8. This correctly goes on until I push the input one final time which is supposed to turn off 12,13,14, and 15, so that all lights are off indicating a stopped condition. This final step reverts to turning the first set of light back on and running through the sequence from there. Doug_P, I went back and re-read the chapter in the text book to see if I missed something. After looking at your msg, I see that the first word (B3:0) in the bit file is always going to be a start position, and the looping sequence will restart a current run at the second word (B3:1). I do not have the RSLogic prgm here at home, so I couldn’t look in the help file. Thanks for sharing. I know this seem like a stupit-simple project, the author of this text does'nt seem to know how to communicate his thoughts. By the way, Are the instruction set for the PLC-5 and SLC-500 pretty much the same? I can get a set of the PLC-5's books, but we are using the SLC-500 at school. |
|
|
|
#7 | |
|
Member
|
Quote:
"A sequencer does not have a designated data file like a timer or counter. Since there is no designated data file to store information and status bits associated with the sequencer instruction, the control data file (file 6) will be used. Data file R6 was created for instructions that do not have specific data files assigned." I understand that the sequencer needs a bit file to operate from, but from this info above, I have no idea how it works or how to correct a control code error. barry
__________________
Barry Last edited by BDKuhns; November 7th, 2003 at 01:18 AM. |
|
|
|
|
#8 | |
|
Member
![]() Join Date: Jun 2003
Posts: 121
|
Quote:
The control code is the ladder logic which triggers the sequencer to advance to the next step. The control data (register) is the PLC structure which manages the internal operation of the sequencer - stuff like incrementing the position word, setting the done bit, etc. You can get a pretty fair idea of what the sequencer is doing by building one from scratch. You don't need much, a counter, a file of words to hold the step output states, a word set aside to receive the sequencer output, and a MOV instruction to transfer the state words to the output word. Setting up something like this may give you the AHA! experience, since you're controlling the details of the thing. |
|
|
|
|
#9 |
|
Lifetime Supporting Member
|
I see now. I remember having to move all of my bits down in the past.
Sometimes I would have a timed sequence, and the timer value was all screwed up, because I thought it was returning to the starting point. It just seems that if you start at B3:0, it should wrap back to b3:0, not b3:1. Go figure! There is probably a method to the madness?
|
|
|
|
#10 |
|
Member
![]() Join Date: Sep 2003
Location: US
Posts: 398
|
The "benefit" to ignoring the initial step during operation is that you can maintain a "startup / alarm" state that is different from all "operational" states.
The simplest ways around your problem are either: Adding a separate step as you already have done (though I would put it as "Step 5" rather than a "new start step" so that your first transition works properly). Or moving a -1 into the .POS of your control when you reach the last step and are ready to transition to the "start". Good luck, Marc |
|
|
|
#11 |
|
Member
|
msinclair
I see the light and understand. Thanks for the inputI'll go back and flip-flop the added word to the end of the step list before I present it.
__________________
Barry |
|
|
|
#12 |
|
Member
![]() Join Date: Sep 2003
Location: US
Posts: 398
|
Glad that helped.
Marc |
|
|
|
#13 |
|
Lifetime Supporting Member
|
Off Topic
Barry-
I like your Avatar I originally thought that the Jet was hiting the sound barrier. In fact the guy who took this ![]() picture swears that he heard the sonic boom when he snapped the photo. The effect can happen at subsonic speeds. THe B2 we know cannot break the sound barrier in level flight, but here is a picture of a B2 with the same vapor cloud. Heres a good link on the subject. |
|
|
|
#14 |
|
Member
|
gbradley,
Thanks for the links! I found this one while studying Physics. The topic was sound and wave forms. The question I presented (which we were not able to answer) was; What is the shape of the cloud on the back side? This particular conndensation cloud looked as if it were the nose end of a conic shape shock wave. This is why I thought it was produced by "High Pressure Shock Wave" that is present when objects pass through and beond Mock-1. During the calc phase of the exercises, we were able to prove that this effect could happen at lower velocities due to increased humidity and lower saturation temperatures.
__________________
Barry |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Topics
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OSF Instruction with SLC 50/4 | Craig | LIVE PLC Questions And Answers | 11 | April 2nd, 2003 06:33 PM |
| Using FSC instruction in Controllogix | ettikudiappan | LIVE PLC Questions And Answers | 2 | October 21st, 2002 05:07 PM |
| PLC-2 SQO Instruction | mwatkins | LIVE PLC Questions And Answers | 9 | September 20th, 2002 04:53 PM |
| Sqo Instruction With Rslogix500 | brent41m | LIVE PLC Questions And Answers | 2 | September 18th, 2002 03:28 PM |
| Sqo Instruction | JAYALA | LIVE PLC Questions And Answers | 7 | June 26th, 2002 09:02 AM |