Rising and Falling Edge-SoMachine Basic

QasimFSH

Member
Join Date
Apr 2018
Location
Adelaide
Posts
142
Hi All,

Does anyone of you know what is the function of rising and falling edges? I essentially want to trigger a timer once the state of a coil is changed (turns off after being on). I am using Somachine Basic..

Any help will be really appreciated.

Thanks guys
 
These are also called On Shots in other PLC's. Basically they are instructions that will remain true for one scan of the PLC when the bit that is referenced in the instruction goes from off to on (Rising Edge) or if the bit goes from on to off (Falling Edge).

The bit that is referenced can be a Digital Input or any Boolean memory location. There are many uses for these instructions. I use these a lot to move data when a day changes. I only want to move the data once and only when the day changes. So I will have some logic that looks at today's date and compare it to the PLC clock date. As soon as they are not equal I will trigger a rising edge that will move my data to the next register. Since the rising edge is only true for one scan the next scan it will no longer be true so there is no data move.

You can use a RE or FE to start a timer it can get complicated because a timer will only count as long as the rung is true. If you use a RE or FE it is only true for one scan and the timer will not complete the cycle. You dont really need to use a RE or FE to start a timer. There is a much simpler way to make a timer start when a bit goes from on to off. You can use a NC contact in the rung so that when the input is off you start the timer. I will attach a snip of a rung that may do what you want.

I hope this makes sense. If you need more info post back.

SoM Snip.PNG
 
I haven't really understood it unfortunately.. I essentially want to run M1 for 9 seconds once M0 goes to LOW, from HIGH..

Falling Edge.PNG
 
Qasim > I essentially want to trigger a timer once the state of a coil is changed (turns off after being on).

>>>

Sounds to me . . .
Like you need to use the falling edge from the coil change to latch in a latch relay. Then
have the latch relay start (and keep running) the timer . . which then unlatches the
latch relay when it finishes?

Poet.
 

Similar Topics

I have a FX3U clone that I am failing to get a simple Structured Text example working on and would really appreciate some help. I created a...
Replies
30
Views
950
Can you place one shot rising/falling pulse contacts using the IEC Dev v7 ladder editor (LDP, LDF Etc..)? If possible can someone tell me how...
Replies
2
Views
1,773
Hi all, Does any body know what the rising edge code is for GX Works in structured text. I have several manuals but can't find anything relating...
Replies
9
Views
2,560
I am using RS 5000 v30. I am trying to use the OSRI AOI to detect a Rising Edge. OSR_EnableACC is of Type FBD_ONESHOT EnableACC is what I want...
Replies
4
Views
2,457
Hi everyone first of all. This is first question in the forum. I am using HSC application. I'm reading A and B pulse count. 1 round of the motor...
Replies
12
Views
4,360
Back
Top Bottom