A plea for help...and mentor

well to display an SQO statement you right click on the statement goto display special. These should match up to your outputs in a bit fashion. I see that you are using (if I read the I/O structure correct.)
O:0=blower out 1
0:1=airlock out 1
O:2=outside blower
O:3=appears to be unused correct?
O:4=blower out 2
O:5=airlock out 2
O:6=not used auger out 2
O:7=alarm light.

now I understand you want to add another alarm light correct?

on Inputs you have
I:0=start system 1
I:1=stop pb 1
I:2=start system 2
I:3=stop pb2
I:4=airlock 1 senser
I:5 auger 1 not connected.
I:6airlock 2 senser
I:7auger 2 senser not connected.

plz advise if I missed any I/O's and if these are correct.
 
and one more thing ...

and I did just take a quick peak and noticed this ...

[attachment]

this is sure to give you trouble ... wish I had more time ... the other guys will help you work through this ...

PS edit ... sorry, mordred ... I didn't mean to post right on top of your discussion ...

damian1.jpg
 
Last edited:
I haven't used the SQO instruction so I'm not sure how it executes on false. But the two rungs in question have opposite states of B3/0 in them so only one of the two rungs can execute on any given scan.

Keith
 
I noticed both of those problems was currently working on rewriting them into a format I can follow. I asked for the outputs in order to get a feel for how much of an understanding Damien had on the SQO statements.
 
Thanks Ron,

Don't worry about my stuff, you have to make hay when the sun is shinning.

I did load the current program (with a couple of changes, removing the auger2 startup which isn't physically located in the system) and ran it.....I think it's only 2/3 of a program. I followed the program to where it started System 1, but that was the end of the program so BLOWER_OUT_1 was never activated.

This program seems easier to follow, but there is some new commands I'm unsure of, so it's back to the help screens :confused:


Thanks guys,
Damian
 
Hi Mordred,

I don't know much of anything on PLC. I followed your instruction and got the following:
CURRENT PLC PROGRAM 111104


SQO - Sequencer Output

Address (Symbol) = Value

R6:11 = {...}
FD - Found = 0
IN - Inhibit = 0
UL - Unload = 0
ER - Error = 0
EM - Empty = 0
DN - Done = 1
EU - Enable Unload = 0
EN - Enable = 0
LEN - Length = 3
POS - Position = 3

O:0.0 = 0000 0000 0000 0000
/15 = 0
/14 = 0
/13 = 0
/12 = 0
/11 = 0
/10 = 0
/9 = 0
/8 = 0
/7 (ALARM_LIGHT_1) = 0
/6 (NOT_USED_AUGER_OUT_2) = 0
/5 (AIRLOCK_OUT_2) = 0
/4 (BLOWER_OUT_2) = 0
/3 (ALARM_LIGHT_2) = 0
/2 (OUTSIDE_BLOWER) = 0
/1 (AIRLOCK_OUT_1) = 0
/0 (BLOWER_OUT_1) = 0
N12:30 = 0000 0000 0000 0000
/15 = 0
/14 = 0
/13 = 0
/12 = 0
/11 = 0
/10 = 0
/9 = 0
/8 = 0
/7 = 0
/6 = 0
/5 = 0
/4 = 0
/3 = 0
/2 = 0
/1 = 0
/0 = 0
N12:31 = 0000 0000 0110 0000
/15 = 0
/14 = 0
/13 = 0
/12 = 0
/11 = 0
/10 = 0
/9 = 0
/8 = 0
/7 = 0
/6 = 1
/5 = 1

Page 1 Thursday, November 11, 2004 - 12:13:08
CURRENT PLC PROGRAM 111104


SQO - Sequencer Output

Address (Symbol) = Value

/4 = 0
/3 = 0
/2 = 0
/1 = 0
/0 = 0
N12:32 = 0000 0000 0100 0000
/15 = 0
/14 = 0
/13 = 0
/12 = 0
/11 = 0
/10 = 0
/9 = 0
/8 = 0
/7 = 0
/6 = 1
/5 = 0
/4 = 0
/3 = 0
/2 = 0
/1 = 0
/0 = 0
N12:33 = 0000 0000 0000 0000
/15 = 0
/14 = 0
/13 = 0
/12 = 0
/11 = 0
/10 = 0
/9 = 0
/8 = 0
/7 = 0
/6 = 0
/5 = 0
/4 = 0
/3 = 0
/2 = 0
/1 = 0
/0 = 0
Page 2 Thursday, November 11, 2004 - 12:13:09
 
oops ...

sorry ... Keith is right ... I just tried it out on a spare SLC ...

as long as both SQOs aren't "true" at the same time, they won't "double-coil" ... but it sure ain't pretty ... no offense, Damian ...
 
It gets uglier in ladder 5 essentially the code is using 4 SQO statements
n12:0 mask OOOFh length 3 n12:0=0000 0000
n12:1=0000 0100
n12:2=0000 0110
n12:3=0000 0111
n12:10 mask OOF0h length 3 n12:10=0000 0000
n12:11=0000 0110
n12:12=0000 0100
n12:13=0000 0000
n12:20 mask 00f0h length 3 n12:20=0000 0000
n12:21=0100 0000
n12:22=0110 0000
n12:22=0111 0000
n12:30 mask OOfOh length 3 n12:30=0000 0000
n12:31=0110 0000
n12:32=0100 0000
n12:33=0000 0000
If you look carefully you will notice that n12:0 is the startup sequence n12:10 is the shutdown sequence in the exact reverse order. same applies for seguences n12:20 and n12:30.
This code can work due to the masks and prevention of two sequences activating at the same time. Damien I'm still not sure what modificatiopns you need. You mentioned an additional senser and a change in outputs. In order to get them working were going to need to modify thes SQO tables.
 
I know I'm looking at this to simplistic, but why is the coding so complex? Why isn't it possible to just say start system1 and system2 until there is an error then shutdown the system? Why am I moving words here and data there?

questions from a novice,

Damian
 
Looking at the previos post look at the cases of what if?

what if someone activates 1/0:2 while the first n12:0 SQO statement is in the n12:2 position? because of the mask outputs 2 and 3 will never get rewritten when the n12:20 SQO statement becomes active. If you look at the dest{0.0.0} this has already happened as its current state on the ladder posted is 0110 0100. You posted while I was trying to expalin my concern.
 
To answer your question the SQO statements is actually the controls on your outputs hence all the data files and bit shifts. I'm currently trying to find a way to ensure that you get a proper sequence of events on your first sequence if the second ladder is activated. It will take several tests to make sure we have no surprises or unwanted outputs left on.
 
Last edited:
Unfortunately I don't have an available processor to try this program on, and don't have a copy of RS simulator. Perhaps someone can test the program and force a switch between ladder 3 and 5 while in mid cycle and see if the outputs reset to the original position. In the proper sequence of shutdown.
 
Last edited:
I noticed that on rung 0013 ladder 3 you have output 0:3 is this alarm light #1 with output 7 being alarm light #2?. If so you may be overriding them with the SQO statements.
 
changing the masks to 0007h on n12:0 and n12:10, 0070h on n12:20 and n12:30 will prevent the SQO statements from overriding rungs 0013 on ladder 3 and rung 0013 on ladder 5.
 

Similar Topics

Hi, does anyone have a Markem Printer manual on an X45 or the NGCPL printer protocol please. John.
Replies
7
Views
3,329
I know that someone here, at some point, has been involved in the design of whatever machine it is that twists bread bag ties. Please, for the...
Replies
4
Views
2,344
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
34
Hi all, hope you are having a great day, I am in need of your help to create a AOI or program that does this kind of job: I have a IO Link...
Replies
21
Views
336
please help me . I have to make this ladder diagram and I can’t figure it out :(
Replies
12
Views
352
Back
Top Bottom