Sqo

Dai_Ly

Guest
D
Hi,

I have on a rung SQO #B39:0 0FFFFH B35:0 R6:0 20 0.

1) With each scan, this rung is activated. Is that a true statement?
2) If so, does the next scan of this rung start at position 0 again?
3) If not, then would you need to advance the position pointer in a different part of the logic (ie the last variable of SQO)?

Thanks,
Dai

[email protected]
 
The SQO instruction is edge triggered so you need a false to true transition leading up to it to get the instruction to do anything. I have seen people try to cheat edge triggered instructions by putting them on a rung unconditionally and unlatching the .EN bit in a branch after the instruction. I don't know if that will work here. But as a general rule you need something on the rung before the SQO to give it a false to true transition.
The position pointer will incrememnt by one for every false to true transition. The pointer resets to one on the transition when the pointer equals the length. That's one to be a bit careful of. The position resets to 1, not wht is in the position field when you program the instruction.

Keith
 
Dai_Ly said:
3) If not, then would you need to advance the position pointer in a different part of the logic (ie the last variable of SQO)?

[email protected]

Yes. What you've got here is a 'one-of-twenty one' data selector. Set up as it is you can selectively (read randomly) bring out any of the file words to the output and you don't need and transition logic in front of it to do this. Using the instruction with conditional logic to trigger it you can only advance the POS value of the R6 register.
 

Similar Topics

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
952
Hello I am trying to make a program work with a sqo instruction .The process has 5 steps ,and a starting step of zero.There should be 8 sec...
Replies
17
Views
1,046
I am working on a machine that is using the SQO instruction to step through a cycle, but I am getting lost following it. I have not worked with...
Replies
18
Views
3,456
I have an air press that I built ages ago, and it has been running forever. It was originally designed with Rotary Cams and Air actuated buttons...
Replies
1
Views
1,502
Hey guys Having a bit of an issue here. I want my SQO to reset on startup. Im using an (res) on the SQO with the first scan bit with nothing...
Replies
3
Views
1,371
Back
Top Bottom