SLC 5/05 SQO Instruction

I think they need a better way to trigger the 3 second timer. I was running this yesterday and the .POS did appear to jump from 2-4 and 4-6. That's probably due to it being emulated and in a VM that was probably running low on RAM. Running it today, I can see the steps more clearly.

OG
 
If the SQO output bits can be indirectly addressed, then why not the TON .PREset as well? The Start/Stop Circuit could be jazzed up to handle the additional logic, and the .PREsets in Data File N254 for steps 2, 4 and 6 would be 900s, 180s, and 300s (15min, 3min, 5min), respectively, but this does pretty much what OP's LAD 6 does.

xxx.png
 
Last edited:
If the SQO output bits can be indirectly addressed, then why not the TON .PREset as well? The Start/Stop Circuit could be jazzed up to handle the additional logic, and the .PREsets in Data File N254 for steps 2, 4 and 6 would be 900s, 180s, and 300s (15min, 3min, 5min), respectively, but this does pretty much what OP's LAD 6 does.

View attachment 61591

Back in my tire assembly days, we used a lot of sequencers and often we would use the position value and an array of elements with indirect addressing to load timers for things like maximum or minimum time in a step. Most of ours also used SQI. Eventually I figured out that I didn't like some of the restrictions of the SQI/SQO instructions so I started just using MVM with indirect addressing with external logic to manipulate the step number.

I think I uploaded a generic example to MrPLC many years ago.

Sequencers can be very powerful and were all but necessary to fit the control logic for a complex assembly machine into a PLC with only 4K ram back in the late 70s. But if you don't keep them "clean" and well documented, they can be a bear for the guy who has to troubleshoot them later.
 
Last edited:
If the SQO output bits can be indirectly addressed, then why not the TON .PREset as well? The Start/Stop Circuit could be jazzed up to handle the additional logic, and the .PREsets in Data File N254 for steps 2, 4 and 6 would be 900s, 180s, and 300s (15min, 3min, 5min), respectively, but this does pretty much what OP's LAD 6 does.

View attachment 61591


most Sequencers I work on include a timer or counter Preset for that specific step. All written to a single Cycle timer or counter.
 

Similar Topics

I am converting an old SLC 150 program to be used with a newer SLC 5/05. I have done this with other 150s, but I have some instructions that I am...
Replies
6
Views
8,336
I have a program that I've used 100 times. SQO settings: File N7:0, Mask 0FFFFh, Dest B3:1, Control R6:0, Length 8, Pos 2. Length & Position...
Replies
48
Views
969
I am building a traffic light simulator that I will be using to demonstrate PLC's at my sons' 5th grade elementary school as part of their STEM...
Replies
1
Views
1,754
Can you guys help me understand how the sequencer (SQO) on this program works, please. I see several files that are associated and then I see...
Replies
8
Views
2,717
Can anyone give me an example of using the SQO and SQC functions together Example 2 Pneumatic cylinders Cyl A ext Cyl B extend Cyl B retract Cyl...
Replies
2
Views
3,748
Back
Top Bottom