Positive edge detection in stepprogram

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
113343.jpg


As you can see I wrote I timer before the step (before JCN M042)


In this step I now need to set something on a rising edge of this step 4.

Can I write an edge detection before the step in the same way as my timer ?

Maybe a tip of how I can do this
 
Work

Should This WOrk:

M60.0 is my edge detection...

will this code work outside the edge:
A "FC303-"
A "DB scherm1".stapknop
R "DB aanvoer1".toestemming

This is the code:

113344.jpg
 
HI

scan 1
if db80.dbx3.6 is true-->proceed and check status of db80.dbx0.0
If db80.dbx0.0 is FALSE then proceed (all code below m061 will be processed)

scan 2
jump tp m062


/////////
removing the bit db80.dbx3.6 before jump instruction wont effect anything
 

Similar Topics

How to make in STL(S7-300) potivite or negative bridge. I want to start pump only on positive edge of the bit "start_pump"
Replies
7
Views
4,302
Does edge detection instruction exist in SCL or I have to write it myself? Can it be done like this? if x and not x_old then //code end_if...
Replies
17
Views
28,397
Hello I have got a problem with positive edge from "system clock memory byte" in Tia Portal. I would like to change byte"system clock memory"...
Replies
27
Views
3,611
Can anyone see why i am not getting an output on this? it is detecting a rising edge and saying that it is true but going any further to the...
Replies
5
Views
2,406
I am using Portal for the first time and I am simply trying to do a one shot. My code wasn't working so I made a new network with all new tags so...
Replies
7
Views
2,535
Back
Top Bottom