need help one more time

hidroela

Member
Join Date
Sep 2003
Location
Across from nasa
Posts
74
This time I need help with this one
There is two limit switch an I want to measurement the time
From when the first limit switch is closed to when the second
limit switch is open

:D :D
dia.JPG



:D :D
 
Sorry but this is to much for me

I don’t understand in this way


BST ????? ,NXB ????

i just get this from the help file inrslogic5
Branch structures on rungs consist of a minimum of three instructions: BST, NXB and BND. These correspond to Branch Start, Next Branch and Branch End. Using branch instruction mnemonics is only necessary when creating branched rungs in the Rung Edit Buffer or when editing .PC5 files.
The BND instruction must always be preceded by at least one pair of BST/NXB's. A BND must be present for each preceding BST mnemonic. For example, a complete rung with parallel branched outputs would appear as:

SOR XIO I:001/00 BST OTE O:000/00 NXB OTE O:000/01 BND EOR



but I am still lost
 
Last edited:
hidroela,

Your drawing is not very clear...

Are the limit switches more than a truck length apart?

Is it possible for both switches to be tripped at the same time?
 
I am not at the office so I can't provide example. I believe you could use just one timer and use the input from the limit switch like a traditional stop start. Use normally close from LS 2 and normally open from LS 1. You would need holding bit off timer.

Momentary signal from LS 1 would start (the switch would have to release prior to reaching LS 2) ans LS 2 would stop. Even if the LS 1 is held closed the entire travel you could use latching bit to accomplish task. IMHO this would be a much cleaner program.
 
While I'm waiting for your reply...

The process is as simple as you stated...

When Limit Switch-1 goes ON... start a timer.

When Limit Switch-2 goes OFF... grab the time and disable the timer.

OK, I see your reply... what I said above applies.

Here is a very simplified code...

+--------+
LS2 | Copy |
---|\/|--------+ Time +------( ) RST & DISABLE TMR
| some |
| where |
+--------+

RST
LS1 TMR
---|/\|--+---|/|------( ) RUN TMR
|
RUN |
TMR |
---| |---+



RUN
TMR
---| |-----| TIMER |---( )





 
---|\/|-- means Transition from ON-to-OFF

---|/\|-- means Transition from OFF-to-ON

If you don't have this function available, there are simple ways to create it.

In your last visual...

If I:001(0) represents Limit Switch-1 and...
I:001(1) represents Limit Switch-2 then...

You are running the timer and repeatedly saving the accumulated time until Limit Switch-1 goes OFF. Then you no longer run the timer nor do you grab accumulated time. Not good.

Try this...


LS2
----|\/|---------------( ) RST TMR



RST
LS1 TMR
----| |---+-----|/|------( ) RUN TMR
|
RUN |
TMR |
----| |---+

RUN
TMR
----| |----------+--------| TIMER |---+----( )
| |
| |
+--------| MOV |---+




This will begin moving the accumulated time as soon as LS-1 goes ON and continue to do so until LS-2 GOES OFF.

LS-2 can not GO OFF until it has first gone ON.
 
In your line 0000 the timer is Reset before the time starts.

Since the truck is NOT at Limit Switch-2 when it IS at Limit Switch-1, your RESET TIMER will be asserted at the time that Limit Switch-1 comes ON!

All the time that Limit Switch-2 is NOT ON your timer is being DISABLED!

You are looking at the STATE of the switch... not the ACTION!

If you do not have a Transition detector then try this...

WAS
LS2 LS2
----| |--------|/|----+----( SET ) WAS LS2
|
+----( ) LS2 OFF-to-ON ...This is equivalent to ---|/\|---

WAS
LS2 LS2
----|/|--------| |----+----( RST ) WAS LS2
|
+----( ) LS2 ON-to-OFF ...This is equivalent to ---|\/|---





Hey... not fair... you editied your previous code after I read it... didn't you?

Now I have to look at your new code...

Your new code is confusing and complicated.
 
Last edited:

Similar Topics

Dear sir. i have one Automation Direct hmi, if you have the CMORE Programming software,i will send you .eap file in email, can you please...
Replies
3
Views
2,440
Hello as some of you may remember I was a new student to PLCs and the teacher was not doing a good job of teaching the class. So update on...
Replies
18
Views
7,862
Well I Believe I Have Figured Out The Counter But Now Im Not Sure How To Start Writing A Program. I Have Read Alot On The 06 And Ive Filled In The...
Replies
13
Views
5,558
I'm fairly new to Rockwell software, I've had some basic training in the past but nothing too advanced. My company and I use Reliable products for...
Replies
11
Views
336
Hi all, I am having issues accessing my Cimplicity software - the site code changed after re-install and I am no longer able to attain a new key...
Replies
10
Views
162
Back
Top Bottom