Sign in to follow this  
Followers 0
Svethski

FC/FB Scan cycle

3 posts in this topic

Hello all, I'm a beginner in S7 programming and I'm trying to detect the first cycle of an FC/FB who's conditionally called, so first cycle can occur several times unlike the OB1_SCAN_1 "1" state. To do so, I try this but I'm not sure it's the better way cause I experiment some undesired behavior (maybe not related with but I ask in case you guys have some clues for instruct me .) A #ENSignal BLD 100 FP #PrevENSignal = #FirstScan First, I thought it can do the job but I'm stuck there now and I think it can be the problem source. So, it would be very nice if I can get your point. (Forgive me if my English is sometimes weird, I'm French speaking native).

Share this post


Link to post
Share on other sites
The "undesired behavior" may be caused by the use of temp variables. Try using markers (M) instead! Edited by Moggie

Share this post


Link to post
Share on other sites
Edited by EirikV

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0